When I call some VixCOM apis I get a memory access exception when it's called.
Specifically the FileExistsInGuest API is called when I call it:
_virtualMachine.FileExistsInGuest("C:\Windows\Notepad.exe", null);
this throws an AccessViolationException.
Is this function not supported in VMWare server 1.0?
If not, is there a note as to what APIs are not supported by VMWare server 1.0?
This was the same exception I got with the FindItems API I believe.
No, VM::FileExistsInGuest() is not supported with VMware Server 1.0
To determine which functions are supported with Server 1.0, you will have to look at the function reference for the C API. In the per function documentation, look under the "Requirements" section. Only functions that say "since VMware Server 1.0" will work.
There is two exceptions two this; the documentation erroneously states that CopyFileFromHostToGuest() and CopyFileFromGuestToHost() are only supported by Workstation 6.0. They are in fact supported by Server 1.0.
I believe that all the helper functions that are present in VixCOM, but not in the C API (such as WaitWithoutResults(), ErrorIndicatesSuccess(), etc.) will work against Server 1.0.
Thanks. That's better than just seeing if I get a memory access violation when I use it
Can you give me any idea whether there is any plan on putting this kind of support into the vmware server product?
For now I think I'll just try to copy the file from the guest and if it fails, the file doesn't exist.
Thanks.
