Skip to content

GetDriveIDFromLetter

Return the drive ID based on a drive letter.

Declaration

Source position: diskh.inc line 25

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
DiskSize Return the total amount of diskspace.
DiskFree Return the amount of free diskspace.