TCOM_Device_Manager
What: class
Ancestor: TCommon_COM_Interface
File: _TPM
Layer: 1
Platforms: C++, Pascal (Object)
This is an abstract base class for device managers. All methods use
the stdcall calling convention. It contains the following methods:
Current_Path
char* Current_Path( char* Device )
function Current_Path( Device : PChar ) : PChar
Return name of Indexth device of given class. If Class is unknown, all device classes
are assumed.
Device_Info
TCOM_Device_Info* Device_Info( char* Device )
function Device_Info( Device : PChar ) : TCOM_Device_Info
Returns an information object for the requested device.
Device_Name
char* Device_Name( int32 Clas, int32 Index )
function Device_Name( Clas, Index : integer ) : PChar
Return name of Indexth device of given class. If Class is unknown, all device classes
are assumed.
Disk_Clusters
int64 Disk_Clusters( char* Drive )
function Disk_Clusters( Drive : PChar ) : int64
Returns number of clusters on specified disk drive. Returns -1 if an error or unknown.
Disk_Sector_Size
int32 Disk_Sector_Size( char* Drive )
function Disk_Sector_Size( Drive : PChar ) : longint
Returns size of disk sectors, in bytes. Returns -1 if an error or unknown.
File_System
char* File_System( char* Device )
function File_System( Device : PChar ) : 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
int32 File_System_Flags( char* Device )
function File_System_Flags( Device : PChar ) : longint
Returns the flags for the file system. See DFSF_*.
Fixed_Device
bool Fixed_Device( char* Device )
function Fixed_Device( Device : PChar ) : boolean
Returns true if the passed device is fixed (non-removable).
Max_Filename_Length
int32 Max_Filename_Length( char* Device )
function Max_Filename_Length( Device : PChar ) : longint
Returns the maximum filename length for this device's file system.
Media_ID
int32 Media_ID( char* Device )
function Media_ID( Device : PChar ) : longint
Return type of media in/on device. -1 if error or unknown.
Media_Present
bool Media_Present( char* Device )
function Media_Present( Device : PChar ) : boolean
Returns true if media is present in the device.
Valid_Device
bool Valid_Device( char* Device )
function Valid_Device( Device : PChar ) : boolean
Returns true if the passed device is valid.
Version
int32 Version()
function Version : longint
Returns version number of this object. 11 = 1.1.