VIX API

 View Only
  • 1.  Problem connecting to Host (VixHost_Connect)

    Posted Aug 26, 2007 12:40 PM

    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



  • 2.  RE: Problem connecting to Host (VixHost_Connect)

    Posted Aug 26, 2007 07:52 PM

    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