GetDriveIDFromLetter
Return the drive ID based on a drive letter
Declaration
Source position: diskh.inc line 24
function GetDriveIDFromLetter(const ADrive: RawByteString) : Byte;
function GetDriveIDFromLetter(const ADrive: UnicodeString) : Byte;
Description
GetDriveIDFromLetter returns the drive ID based on a drive letter. The drive ID can then be used in the DiskSize and DiskFree calls.
See also
Name | Description |
---|---|
DiskFree | Return the amount of free diskspace |
DiskSize | Return the total amount of diskspace. |