Download Virtual Disk API Programming Guide
Transcript
Virtual Disk API Programming Guide VixMntapi_FreeDiskSetInfo() Frees memory allocated by VixMntapi_GetDiskSetInfo(). void VixMntapi_FreeDiskSetInfo(VixDiskSetInfo *diskSetInfo); Parameter: diskSetInfo [in] OS info to be freed. VixMntapi_CloseDiskSet() Closes the disk set. VixError VixMntapi_CloseDiskSet(VixDiskSetHandle diskSet); Parameter: diskSet [in] Handle to an open disk set. VixMntapi_GetVolumeHandles() Retrieves handles to the volumes in the disk set. VixError VixMntapi_GetVolumeHandles(VixDiskSetHandle diskSet, int *numberOfVolumes, VixVolumeHandle *volumeHandles[]); Parameters: diskSet [in] Handle to an open disk set. numberOfVolumes [out] Number of volume handles needed. volumeHandles [out] Array of volume handles to be filled in. VixMntapi_FreeVolumeHandles() Frees memory allocated by VixMntapi_GetVolumeHandles(). void VixMntapi_FreeVolumeHandles(VixVolumeHandle *volumeHandles); Parameter: volumeHandles [in] Volume handle to be freed. VixMntapi_GetOsInfo() Retrieves information about the default operating system in the disk set. To get operating system information, VixMntapi_GetOsInfo() requires the system and boot volumes to be already mounted. It does not dismount the system volume at the end of this function. Your application should be prepared to handle the “volume already mounted” error gracefully. VixError VixMntapi_GetOsInfo(VixDiskSetHandle diskSet, VixOsInfo **info); Parameters: 48 diskSet [in] Handle to an open disk set. info [out] OS information to be filled in. VMware, Inc.