WORD GetDriveType(nDrive)
This function determines whether a disk drive is removeable, fixed, or remote.
| Parameter | Type/Description |
| nDrive | int Specifies the drive for which the type is to be determined. Drive A: is 0, drive B: is 1, drive C: is 2, and so on. |
The return value specifies the type of drive. It can be one of the following values:
| Value | Meaning | |
| DRIVE_REMOVEABLE | Disk can be removed from the drive. | |
| DRIVE_FIXED | Disk cannot be removed from the drive. | |
| DRIVE_REMOTE | Drive is a remote (network) drive. |
The return value is zero if the function cannot determine the drive type, or 1 if the specified drive does not exist.