![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cFileDir.h>
Public Member Functions | |
cFileDevice () | |
~cFileDevice () | |
HRESULT | UpdateInfo (const FILECHAR_t *pszDeviceId=nullptr) |
FILESYS_TYPE | get_FileSysType () const |
bool | isCaseSensitive () const |
Static Public Member Functions | |
static UINT __stdcall | GetDeviceType (const FILECHAR_t *pszDeviceId) |
static FILE_SIZE_t __stdcall | GetDeviceFreeSpace (const FILECHAR_t *pszDeviceId=nullptr) |
static HRESULT __stdcall | GetSystemDeviceList (cArrayString< FILECHAR_t > &a) |
Public Attributes | |
cStringF | m_sVolumeName |
can be empty. More... | |
cStringF | m_sTypeName |
File system format/type e.g. "NTFS", "FAT". More... | |
FILESYS_TYPE | m_eType |
Enumerate known types for m_sTypeName (file system type) More... | |
UINT64 | m_nSerialNumber |
Volume serial number (time stamp of last format) e.g. 0x0ca0e613 for _WIN32. More... | |
DWORD | m_dwMaximumComponentLength |
block size? e.g. 255 bytes More... | |
bool | m_bCaseSensitive |
e.g. 0x03e700ff, FILE_CASE_SENSITIVE_SEARCH. else IgnoreCase More... | |
Static Public Attributes | |
static const char * | k_FileSysName [FILESYS_QTY] |
File system types i might support. More... | |
Info for a particular Disk/Device/Volume. e.g. 'C:\'
Gray::cFileDevice::cFileDevice | ( | ) |
Gray::cFileDevice::~cFileDevice | ( | ) |
|
inline |
|
static |
Get disk space on the pszDeviceId.
|
static |
Determines whether a disk drive is a removable, fixed, CD-ROM, RAM disk, or network drive. https://msdn.microsoft.com/en-us/library/windows/desktop/aa364939(v=vs.85).aspx
|
static |
list all the devices/volumes available to the system.
bool Gray::cFileDevice::isCaseSensitive | ( | ) | const |
The file system is case sensitive ? linux = true, _WIN32 = false A network mounted SAMBA share will use whatever rules the native OS/FileSystem uses. m_sTypeName = "FAT","NTFS" system = non case sensitive. "NFS" = case sensitive.
HRESULT Gray::cFileDevice::UpdateInfo | ( | const FILECHAR_t * | pszDeviceId = nullptr | ) |
|
static |
File system types i might support.
bool Gray::cFileDevice::m_bCaseSensitive |
e.g. 0x03e700ff, FILE_CASE_SENSITIVE_SEARCH. else IgnoreCase
DWORD Gray::cFileDevice::m_dwMaximumComponentLength |
block size? e.g. 255 bytes
FILESYS_TYPE Gray::cFileDevice::m_eType |
Enumerate known types for m_sTypeName (file system type)
UINT64 Gray::cFileDevice::m_nSerialNumber |
Volume serial number (time stamp of last format) e.g. 0x0ca0e613 for _WIN32.
cStringF Gray::cFileDevice::m_sTypeName |
File system format/type e.g. "NTFS", "FAT".
cStringF Gray::cFileDevice::m_sVolumeName |
can be empty.