VixError VixDiskLib_EndAccess(const VixDiskLibConnectParams *connectParams, const char *identity);
This function is used to notify the host of a virtual machine that the virtual machine disks are closed and that the operations which rely on the virtual machine disks to be closed can now be allowed.
This must be called after closing all of the disk belonging to the virtual machine, and after deleting the snapshot of the virtual machine.
Normally, this function is called after previously calling VixDiskLib_PrepareForAccess, but it may be called as a matter of cleaning up after a program crash.
See also VixDiskLib_PrepareForAccess().
VixError vixError; VixDiskLibConnectParams cnxParams = {0}; cnxParams.vmName = NULL; cnxParams.serverName = hostName; cnxParams.credType = VIXDISKLIB_CRED_UID; cnxParams.creds.uid.userName = userName; cnxParams.creds.uid.password = password; cnxParams.port = port; vixError = VixDiskLib_EndAccess(&cnxParams, "myApp");