Get easy access to otherwise cumbersome APIs.
Get the Disk Serial numbers and easy access to the
dreaded ::GetDiskSpaceFreeEx()
API.
The class also wraps the drive network connections API, allowing you
to connect and disconnect network drives.
Interface
Name | Description | |
---|---|---|
CDrive | Various constructors. | |
SetCurrentDrive | Sets the drive. | |
SetDrive | Sets the drive. | |
SetNextFreeDrive | Set the drive to the next avaiable entry. | |
SetFirstNetworkDrive | Set the drive to the next network drive. | |
GetDrive(void) | Returns the drive. | |
GetType | Returns the drive type. | |
GetName | Returns the name (label) of the drive. | |
GetFileSystemName | Returns the File System name. | |
GetSerialNumber | Returns the drive's Serial number. | |
GetComponentLength | Returns the drive's maximum path length. | |
GetAvailableSpace | Returns the free space available. | |
GetSectorsPerCluster | Returns sections pr. clusers supported. | |
GetBytesPerSector | Returns bytes pr. sector supported. | |
GetNumberOfFreeClusters | Returns available clusters. | |
GetTotalNumberOfClusters | Returns total number of clusters on drive. | |
GetConnection | Returns the drive network connection string if any. | |
ConnectTo | Connects a network drive. | |
RemoveConnection | Disconnect network drive. | |
IsConnected | Returns success if the drive is a network drive. | |
HasLongFilenameSupport | Does drive support long filenames? | |
HasCompressionSupport | Does drive support compression? | |
IsCompressed | Is drive compressed? | |
IsCaseSensitive | Are filenames case sensitive? |
Source Code Dependencies
Microsoft MFC LibraryMy Global MFC functions
Download Files
Source Code (4 Kb) |