VMware {code} Community
jjenglish123
Contributor
Contributor

Problem connecting to Host (VixHost_Connect)

Hi all

I'v installed workstation 6 on my PC, with Vista OS

I compiled the sample code file "PowerOn.c" from the VMWare automization SDK. when running the function

VixHost_Connect(VIX_API_VERSION,

VIX_SERVICEPROVIDER_VMWARE_WORKSTATION,

NULL,

0,

NULL,

NULL,

0,

VIX_INVALID_HANDLE,

NULL,

NULL);

The Returned VixHandle jobHandle was"63", witch seems to be fine, but, when running the next instruction -

err = VixJob_Wait(jobHandle,

VIX_PROPERTY_JOB_RESULT_HANDLE,

&hostHandle,

VIX_PROPERTY_NONE);

the returned error code was"3" - that is "VIX_E_INVALID_ARG"

What did I do wrong?

Thanks

Reply
0 Kudos
1 Reply
admin
Immortal
Immortal

How did you configure your project to link with VIX?

Which copy of the Vix.dll is your program running with? If you're not sure how to determine this, you can use the Dependency Walker tool which comes with some versions of Visual Studio, or else is available as freeware on-line. Just open you executable in Dependency Walker and look for Vix.dll and see what path it finds it at.

Message was edited by:

mattrich

Reply
0 Kudos