The Conroy & Conroy Subroutine Library (2021.3 edition)

TCOM_Device_Info
What: class
Ancestor: TCommon_COM_Interface
File: _TPM
Layer: 1
Platforms: C++, Pascal (Object)

This is an abstract base class for device information. All methods use the stdcall calling convention. It contains the following methods:

File_System
char* File_System()
function File_System : PChar
Returns the name of the file system used on the device. Returns a null string if the device is invalid or the file system is unknown.

File_System_Flags
int File_System_Flags()
function File_System_Flags : longint
Returns the flags for the file system. See DFSF_*.

Fixed
bool Fixed()
function Fixed : boolean
Returns true if the passed device is fixed (non-removable).

Media_ID
int Media_ID()
function Media_ID : longint
Return type of media in/on device. -1 if error or unknown.

Max_Filename_Length
int Max_Filename_Length()
function Max_Filename_Length : longint
Returns the maximum filename length for this device's file system.

Version
int Version()
function Version : longint
Returns version number of this object. 11 = 1.1.