Changeset 142 for Include/Classes/System/IO/DriveInfo.ab
- Timestamp:
- Mar 9, 2007, 10:15:34 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/Classes/System/IO/DriveInfo.ab
r64 r142 35 35 36 36 Function DriveFormat() As String 37 Dim systemName As String 38 systemName.ReSize(15) 39 If GetVolumeInformation(m_DriveName, NULL, NULL, NULL, NULL, NULL, systemName, 16) Then 37 Dim systemName[15] As TCHAR 38 If GetVolumeInformation(m_DriveName, NULL, NULL, NULL, NULL, NULL, systemName, Len (systemName)) Then 40 39 Return systemName 41 40 Else … … 48 47 End Function 49 48 50 Function IsReady() As B OOL49 Function IsReady() As Boolean 51 50 If GetVolumeInformation(m_DriveName, NULL, NULL, NULL, NULL, NULL, NULL, NULL) Then 52 Return _System_TRUE51 Return True 53 52 Else 54 Return _System_FALSE53 Return False 55 54 End If 56 55 End Function … … 82 81 83 82 Function VolumeLabel() As String 84 Dim volumeName As String 85 volumeName.ReSize(63) 83 Dim volumeName[63] As TCAHR 86 84 If GetVolumeInformation(m_DriveName, volumeName, 64, NULL, NULL, NULL, NULL, NULL) Then 87 85 Return volumeName
Note:
See TracChangeset
for help on using the changeset viewer.