VixMntapi_GetVolumeInfo()

Retrieves information about a disk volume. Some information, such as the number of mount points, requires you to set the open read-only flag. Some information is available only if a volume was previously mounted by
VixMntapi_MountVolume()
. The Windows registry returns volume information only for mounted disks. On Windows the
VixMntapi_GetVolumeInfo()
call returns a symbolic link from the
VixVolumeInfo
structure in the form
\\.\vstor2-mntapi10-shared-<longhexnum>\
. You can transform this symbolic link into a target path by replacing
\\.
with
\Device
and deleting the final backslash, then map a drive letter with
DefineDosDevice(DDD_RAW_TARGET_PATH,...)
and proceed as if you have a local drive. Alternatively on Windows, you can open a volume with
CreateFile()
and traverse the file system with
FindFirstFile()
.
VixError VixMntapi_GetVolumeInfo(VixVolumeHandle volumeHandle,                         VixVolumeInfo **info);
Parameters:
  • volumeHandle
    [in] Handle to a volume.
  • info
    [out] Volume information to be filled in.