Determine whether a disk is fixed, removable, etc.
'-----------------------------------------------------------
' FUNCTION: GetDriveType
' Determine whether a disk is fixed, removable, etc. by
' calling Windows GetDriveType()
'-----------------------------------------------------------
'
Function GetDriveType(ByVal intDriveNum As Integer) As Integer
'
' This function expects an integer drive number in Win16 or a string in Win32
'
Dim strDriveName As String
strDriveName = Chr$(Asc("A") + intDriveNum) & gstrSEP_DRIVE & gstrSEP_DIR
GetDriveType = CInt(GetDriveType32(strDriveName))
End Function
Share:
These icons link to social bookmarking sites where readers can share and discover new web pages.
