blob: a0cfd9bed8dc5e95d1718a66375e1950f3a70620 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
// FSDrives.h
#ifndef __FS_DRIVES_H
#define __FS_DRIVES_H
#include "Common/MyCom.h"
#include "Common/MyString.h"
#include "IFolder.h"
struct CDriveInfo
{
FString Name;
FString FullSystemName;
bool KnownSizes;
UInt64 DriveSize;
UInt64 FreeSpace;
UInt64 ClusterSize;
// UString Type;
UString VolumeName;
UString FileSystemName;
UINT DriveType;
FString GetDeviceFileIoName() const;
};
class CFSDrives:
public IFolderFolder,
public IFolderOperations,
public IFolderGetSystemIconIndex,
public CMyUnknownImp
{
CObjectVector<CDriveInfo> _drives;
bool _volumeMode;
HRESULT BindToFolderSpec(CFSTR name, IFolderFolder **resultFolder);
UString GetExt(int index) const;
HRESULT GetLength(int index, UInt64 &length) const;
public:
MY_UNKNOWN_IMP2(IFolderGetSystemIconIndex, IFolderOperations)
INTERFACE_FolderFolder(;)
INTERFACE_FolderOperations(;)
STDMETHOD(GetSystemIconIndex)(UInt32 index, Int32 *iconIndex);
void Init(bool volMode = false)
{
_volumeMode = volMode;
}
};
#endif
|