Stores information about the currently available disk drives into an array.

ADriveInfo(cArrayName)

Parameters

cArrayName
The name of the array as a string into which the function should store the information.
ColumnContent
1Drive letter
2Drive type (returned from GetDriveType)
3Device number or -1 if DeviceIoControl failed
4Partition number or -1 if DeviceIoControl failed

Return Value

The number of drives.

See Also

Reference

ADirectoryInfo
ADirEx
AFileAttributes
AFileAttributesEx
CancelFileChange
CompareFileTimes
CopyFileEx
DeleteDirectory
DeleteFileEx
FindFileChange
GetFileAttributes
GetFileOwner
GetFileSize
GetFileTimes
GetLongPathName
GetShortPathName
MoveFileEx
SetFileAttributes
SetFileTimes

Used WinApi functions

GetLogicalDrives
GetDriveType
DeviceIoControl
CreateFile
CloseHandle