The Conroy & Conroy Subroutine Library (2021.3 edition)

TSDevice_Manager
What: class
Ancestor: TObject
File:
Layer: 1
Platforms: C++, C#, Javascript, Pascal (Object), PHP, Python

This is an abstract base class for device managers. It contains the following methods:

Current_Path
string Current_Path( string Device )
function Current_Path( Device : string ) : string
Return name of Indexth device of given class. If Class is unknown, all device classes are assumed.

Device_Info
TCOM_Device_Info* Device_Info( string Device )
function Device_Info( Device : string ) : TCOM_Device_Info
Returns an information object for the requested device.

Device_Name
string Device_Name( int32 Clas, int32 Index )
function Device_Name( Clas, Index : integer ) : string
Return name of Indexth device of given class. If Class is unknown, all device classes are assumed.

Disk_Clusters
int64 Disk_Clusters( string Drive )
function Disk_Clusters( Drive : string ) : int64
Returns number of clusters on specified disk drive. Returns -1 if an error or unknown.

Disk_Sector_Size
int32 Disk_Sector_Size( string Drive )
function Disk_Sector_Size( Drive : string ) : longint
Returns size of disk sectors, in bytes. Returns -1 if an error or unknown.

File_System
string File_System( char* Device )
function File_System( Device : string ) : string
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( string Device )
function File_System_Flags( Device : string ) : longint
Returns the flags for the file system. See DFSF_*.

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

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

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

Media_Present
bool Media_Present( string Device )
function Media_Present( Device : string ) : boolean
Returns true if media is present in the device.

Valid_Device
bool Valid_Device( string Device )
function Valid_Device( Device : string ) : boolean
Returns true if the passed device is valid.

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