Volume Management Functions

The following functions are used in volume management.

FunctionDescription
DefineDosDevice Defines, redefines, or deletes MS-DOS device names.
GetDriveType Determines whether a disk drive is a removable, fixed, CD-ROM, RAM disk, or network drive.
GetLogicalDrives Retrieves a bitmask representing the currently available disk drives.
GetLogicalDriveStrings Fills a buffer with strings that specify valid drives in the system.
GetVolumeInformation Retrieves information about the file system and volume associated with the specified root directory.
GetVolumeInformationByHandleW Retrieves information about the file system and volume associated with the specified file.
QueryDosDevice Retrieves information about MS-DOS device names.
SetVolumeLabel Sets the label of a file system volume.

 

The following functions are used with volume mount points (drive letters, volume GUID paths, and mounted folders).

FunctionDescription
DeleteVolumeMountPoint Deletes a drive letter or mounted folder.
FindFirstVolume Retrieves the name of a volume on a computer.
FindFirstVolumeMountPoint Retrieves the name of a mounted folder on the specified volume.
FindNextVolume Continues a volume search started by a call to FindFirstVolume.
FindNextVolumeMountPoint Continues a mounted folder search started by a call to FindFirstVolumeMountPoint.
FindVolumeClose Closes the specified volume search handle.
FindVolumeMountPointClose Closes the specified mounted folder search handle.
GetVolumeNameForVolumeMountPoint Retrieves a volume GUID path for the volume that is associated with the specified volume mount point (drive letter, volume GUID path, or mounted folder).
GetVolumePathName Retrieves the mounted folder that is associated with the specified volume.
GetVolumePathNamesForVolumeName Retrieves a list of drive letters and volume GUID paths for the specified volume.
SetVolumeMountPoint Associates a volume with a drive letter or a directory on another volume.

 

 

 

Send comments about this topic to Microsoft

Build date: 2/4/2010

Tags :


Page view tracker