The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



GetDiskDriveType


Unit:SDL_filesys
Class:none
Declaration:function GetDiskDriveType (Drive: byte): integer;

The function GetDiskDriveType returns the type of the drive specified by the parameter Drive. The parameter Drive is the number of the drive to be tested with drive A: having a number of zero, drive B: of one, and so on (Drive = DrvChar-ord('A') ). The function returns the following diagnostic codes:

DRIVE_UNKNOWN 0 the drive type cannot be determined
DRIVE_REMOVABLE 2 removable disk
DRIVE_FIXED 3 harddisk
DRIVE_REMOTE 4 remote (network) drive
DRIVE_CDROM 5 CD-ROM drive
DRIVE_RAMDISK 6 RAM disk

Please note that the constants in the table above are defined in the unit windows.pas.


Last Update: 2013-Mar-23