diff options
author | elfmz <fenix1905@tut.by> | 2021-12-31 00:27:16 +0300 |
---|---|---|
committer | elfmz <fenix1905@tut.by> | 2021-12-31 02:27:02 +0300 |
commit | a14dc1a81c797928d4f1b7d6a6b46ecc63f98308 (patch) | |
tree | c27c61ac33582bc4d469c6608cd042add388f230 /far2l/src/Mounts.hpp | |
parent | d5f1bf245e96834d44390d1723cfef3dfbb1fb02 (diff) |
shuffle a bit far2l sources
Diffstat (limited to 'far2l/src/Mounts.hpp')
-rw-r--r-- | far2l/src/Mounts.hpp | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/far2l/src/Mounts.hpp b/far2l/src/Mounts.hpp new file mode 100644 index 00000000..3c0c3fdd --- /dev/null +++ b/far2l/src/Mounts.hpp @@ -0,0 +1,40 @@ +#pragma once + +#include "FARString.hpp" + +namespace Mounts +{ + struct Entry + { + Entry() = default; + Entry(const Entry&) = default; + + inline Entry(FARString path_, FARString info_, bool unmountable_ = false, INT_PTR id_ = -1) : path(path_), info(info_) + { + unmountable = unmountable_; + id = id_; + } + + FARString path; + FARString usage; + FARString info; + bool unmountable = false; + WCHAR hotkey = 0; + int id = -1; + }; + + struct Enum : std::vector<Entry> + { + Enum(FARString &another_curdir); + + size_t max_path = 4; + size_t max_usage = 0; + size_t max_info = 4; + }; + + bool Unmount(const FARString &path, bool force); + void EditHotkey(const FARString &path, int id); +} + +//BOOL RemoveUSBDrive(char Letter,DWORD Flags); +//BOOL IsDriveUsb(wchar_t DriveName,void *pDevInst); |