<-- Previous || Up || Next -->

Get Drive Type Function
Windows API Class

Public Function GetDriveType( _
    ByVal vDrive As Variant _
    ) As Variant

Returns a number describing the type of drive (storage device) that is attached to a drive letter A..Z.
The number returned should be one of the DRIVE Constants.

Examples:
    GetDriveType("A") = DRIVE_REMOVABLE
    GetDriveType("C") = DRIVE_FIXED
See also:
    DRIVE_CDROM Property, et. al.
    DRIVEConstantToString Function
    GetDriveTypeSample Subroutine
    GetDriveType Function (Windows API)
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.
v1.3 Change: Removed 16-bit support from this function.

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.