Signature (Visual Basic / VBA)
Public Function GetDriveType( _
ByVal vDrive As Variant _
) As Variant
Code Example
GetDriveType("A") = DRIVE_REMOVABLE
GetDriveType("C") = DRIVE_FIXED
Parameters
| Parameter | Description |
|---|---|
| vDrive | Letter of the drive whose type will be returned. Function returns Null if vDrive is Null or cannot be fixed-up to a String. |
Return Value
This function returns 1 (one) if the drive type cannot be determined.
Notes & Version History
| v1.3 Change | Removed 16-bit support from this function. |