Has anyone had problems using the Vix C API to connect with an ESXi host? I can't get VixHost_Connect to connect with the C API, but if I use vmrun.exe with the same parameters it connects fine. A colleague has also been able to connect to the same host using COM (VBScript).
I'm building the .dll in Visual C++ Express Edition and running it from Java with JNI. The code I'm using is:
jobHandle = VixHost_Connect(VIX_API_VERSION, // VIX_API_VERSION (or '1' on VMWareServer 1.0)
VIX_SERVICEPROVIDER_VMWARE_VI_SERVER, // VIX_SERVICEPROVIDER_VMWARE_SERVER,
server, // "[https://<IPAddress>:443/sdk]"
0, // ignored
user, // "root"
password, // "password"
0, // options
VIX_INVALID_HANDLE, // properties handle,
NULL, // callbackProc,
NULL); // clientData);