|
// CDriveInfo : returns info about drives attached
#if !defined ( DRIVEINFO_H )
#define DRIVEINFO_H
enum { DRIVE_HOST = 7 };
class CDriveInfo
{
public:
static float GetFreeBytes(int nDrive); // in MB
static float GetTotalBytes(int nDrive); // in MB
static CString GetVolume(int nDrive);
static CString GetRoot(int nDrive);
static CString GetFullName(int nDrive);
static char GetLetter(int nDrive);
static int GetType(int nDrive);
static BOOL IsDriveAvailable(int nDrive);
static void FormatName(CString& sFileName);
static int GetDrive(CString sPathName);
static BOOL IsMappedPath(CString sPathName);
static BOOL IsRemotePath(CString sPathName);
static BOOL IsFixedPath(CString sPathName);
static int IsReadonlyPath(CString sPathName); // -1 = no such path, else TRUE/FALSE
static DWORD GetSerialNumber(int nDrive);
};
#endif
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
.dan.g. is a naturalised Australian and has been developing commercial windows software since 1998.