mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-06 15:14:59 -06:00
52 lines
1.1 KiB
C++
Executable File
52 lines
1.1 KiB
C++
Executable File
// Windows/FileSystem.h
|
|
|
|
#ifndef __WINDOWS_FILESYSTEM_H
|
|
#define __WINDOWS_FILESYSTEM_H
|
|
|
|
#include "../Common/MyString.h"
|
|
#include "../Common/Types.h"
|
|
|
|
#ifndef _UNICODE
|
|
#include "../Common/StringConvert.h"
|
|
#endif
|
|
|
|
namespace NWindows {
|
|
namespace NFile {
|
|
namespace NSystem {
|
|
|
|
bool MyGetVolumeInformation(
|
|
LPCTSTR rootPathName,
|
|
CSysString &volumeName,
|
|
LPDWORD volumeSerialNumber,
|
|
LPDWORD maximumComponentLength,
|
|
LPDWORD fileSystemFlags,
|
|
CSysString &fileSystemName);
|
|
|
|
#ifndef _UNICODE
|
|
bool MyGetVolumeInformation(
|
|
LPCWSTR rootPathName,
|
|
UString &volumeName,
|
|
LPDWORD volumeSerialNumber,
|
|
LPDWORD maximumComponentLength,
|
|
LPDWORD fileSystemFlags,
|
|
UString &fileSystemName);
|
|
#endif
|
|
|
|
inline UINT MyGetDriveType(LPCTSTR pathName) { return GetDriveType(pathName); }
|
|
#ifndef _UNICODE
|
|
inline UINT MyGetDriveType(LPCWSTR pathName) { return GetDriveType(GetSystemString(pathName)); }
|
|
#endif
|
|
|
|
bool MyGetDiskFreeSpace(LPCTSTR rootPathName,
|
|
UInt64 &clusterSize, UInt64 &totalSize, UInt64 &freeSize);
|
|
|
|
#ifndef _UNICODE
|
|
bool MyGetDiskFreeSpace(LPCWSTR rootPathName,
|
|
UInt64 &clusterSize, UInt64 &totalSize, UInt64 &freeSize);
|
|
#endif
|
|
|
|
}}}
|
|
|
|
#endif
|
|
|