VMware

This Question is Not Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
0 Replies Last post: Nov 5, 2009 4:00 PM by dblock  

How do you VixPropertyList_AllocPropertyList in VixCOM (or how to open an encrypted VM)? posted: Nov 5, 2009 4:00 PM

Click to view dblock's profile Enthusiast 110 posts since
Dec 9, 2008

I've added support to VixCOM 1.8 to VMWareTasks (Player, etc.), but I can't figure out how to allocate a new property list from C# via VIXCOM to support encrypted virtual machines. I want this code basically in C#. Ideas?

err = VixPropertyList_AllocPropertyList(hostHandle,
&propertyHandle,
VIX_PROPERTY_VM_ENCRYPTION_PASSWORD,
"vmPassword",
VIX_PROPERTY_NONE);
if (err != VIX_OK) {
// Handle the error...
goto abort;
}

// Open the virtual machine:
jobHandle = VixHost_OpenVM(hostHandle,
"c:
Virtual Machines\\vm1
win2000.vmx",
VIX_VMOPEN_NORMAL,
propertyHandle,
NULL, // callbackProc
NULL); // clientData

Developer Social Media

Communities