[DriveType is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions.]
Determines the drive type based on the drive number.
int DriveType( int iDrive );
The number of the drive that you want to test. "A:" corresponds to 0, "B:" to 1, and so on.
Returns one of the following values.
||The drive type cannot be determined.|
||The root path is invalid. For example, no volume is mounted at the path.|
||The disk can be removed from the drive.|
||The disk cannot be removed from the drive.|
||The drive is a remote (network) drive.|
||The drive is a CD-ROM drive.|
||The drive is a RAM disk.|
DriveType is equivalent to calling RealDriveType. RealDriveType is the preferred function.
|Minimum supported client||Windows XP [desktop apps only]|
|Minimum supported server||Windows Server 2003 [desktop apps only]|
|Header||shlobj.h (include Shlobj.h)|
|DLL||Shell32.dll (version 5.0 or later)|