Volume Management Functions

The following functions are used in volume management.

FunctionDescription
DefineDosDeviceDefines, redefines, or deletes MS-DOS device names.
GetDriveTypeDetermines whether a disk drive is a removable, fixed, CD-ROM, RAM disk, or network drive.
GetLogicalDrivesRetrieves a bitmask representing the currently available disk drives.
GetLogicalDriveStringsFills a buffer with strings that specify valid drives in the system.
GetVolumeInformationRetrieves information about the file system and volume associated with the specified root directory.
GetVolumeInformationByHandleWRetrieves information about the file system and volume associated with the specified file.
QueryDosDeviceRetrieves information about MS-DOS device names.
SetVolumeLabelSets 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
DeleteVolumeMountPointDeletes a drive letter or mounted folder.
FindFirstVolumeRetrieves the name of a volume on a computer.
FindFirstVolumeMountPointRetrieves the name of a mounted folder on the specified volume.
FindNextVolumeContinues a volume search started by a call to FindFirstVolume.
FindNextVolumeMountPointContinues a mounted folder search started by a call to FindFirstVolumeMountPoint.
FindVolumeCloseCloses the specified volume search handle.
FindVolumeMountPointCloseCloses the specified mounted folder search handle.
GetVolumeNameForVolumeMountPointRetrieves a volume GUID path for the volume that is associated with the specified volume mount point (drive letter, volume GUID path, or mounted folder).
GetVolumePathNameRetrieves the mounted folder that is associated with the specified volume.
GetVolumePathNamesForVolumeNameRetrieves a list of drive letters and volume GUID paths for the specified volume.
SetVolumeMountPointAssociates a volume with a drive letter or a directory on another volume.

 

Send comments about this topic to Microsoft

Build date: 10/22/2009

Tags :


Page view tracker