chore: initial commit (extracted from Launchers monorepo)
Plugin: ns7zip v2.0.0 Architectures: x86-ansi, x86-unicode, amd64-unicode License: LGPL-2.1-or-later
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
// FSDrives.h
|
||||
|
||||
#ifndef ZIP7_INC_FS_DRIVES_H
|
||||
#define ZIP7_INC_FS_DRIVES_H
|
||||
|
||||
#include "../../../Common/MyCom.h"
|
||||
#include "../../../Common/MyString.h"
|
||||
|
||||
#include "IFolder.h"
|
||||
|
||||
struct CDriveInfo
|
||||
{
|
||||
FString Name;
|
||||
FString FullSystemName;
|
||||
UInt64 DriveSize;
|
||||
UInt64 FreeSpace;
|
||||
UInt64 ClusterSize;
|
||||
// UString Type;
|
||||
UString VolumeName;
|
||||
UString FileSystemName;
|
||||
UINT DriveType;
|
||||
|
||||
bool KnownSize;
|
||||
bool KnownSizes;
|
||||
bool IsPhysicalDrive;
|
||||
|
||||
FString GetDeviceFileIoName() const;
|
||||
CDriveInfo(): KnownSize(false), KnownSizes(false), IsPhysicalDrive(false) {}
|
||||
};
|
||||
|
||||
Z7_CLASS_IMP_NOQIB_3(
|
||||
CFSDrives
|
||||
, IFolderFolder
|
||||
, IFolderOperations
|
||||
, IFolderGetSystemIconIndex
|
||||
)
|
||||
CObjectVector<CDriveInfo> _drives;
|
||||
bool _volumeMode;
|
||||
bool _superMode;
|
||||
|
||||
HRESULT BindToFolderSpec(CFSTR name, IFolderFolder **resultFolder);
|
||||
void AddExt(FString &s, unsigned index) const;
|
||||
HRESULT GetFileSize(unsigned index, UInt64 &fileSize) const;
|
||||
public:
|
||||
void Init(bool volMode = false, bool superMode = false)
|
||||
{
|
||||
_volumeMode = volMode;
|
||||
_superMode = superMode;
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user