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