| 137 | }; |
| 138 | |
| 139 | class CryptOpenFiles { |
| 140 | private: |
| 141 | mutex m_mutex; |
| 142 | unordered_map<wstring, shared_ptr<CryptOpenFile> > m_openfiles; |
| 143 | public: |
| 144 | CryptOpenFiles() = default; |
| 145 | virtual ~CryptOpenFiles() = default; |
| 146 | |
| 147 | bool OpenFile(LPCWSTR path, HANDLE h); |
| 148 | |
| 149 | bool CloseFile(LPCWSTR path, HANDLE h); |
| 150 | |
| 151 | bool Rename(LPCWSTR from, LPCWSTR to); |
| 152 | |
| 153 | shared_ptr<CryptOpenFile> GetOpenFile(LPCWSTR path); |
| 154 | |
| 155 | // disallow copying |
| 156 | CryptOpenFiles(CryptOpenFiles const&) = delete; |
| 157 | void operator=(CryptOpenFiles const&) = delete; |
| 158 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected