diff options
author | George Hazan <george.hazan@gmail.com> | 2013-12-05 20:46:18 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-12-05 20:46:18 +0000 |
commit | 41ab2ffa22eab57c55ba73a8a6292a490414eabc (patch) | |
tree | 6cd8811f1599f45d4e0af940bda08dc5fe3e58c0 /plugins/Db3x_mmap/src/dbintf.h | |
parent | 0b0980ca4414e0f3771db1e70b16d81914e75596 (diff) |
full cycle: setting, resetting, changing password
git-svn-id: http://svn.miranda-ng.org/main/trunk@7058 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Db3x_mmap/src/dbintf.h')
-rw-r--r-- | plugins/Db3x_mmap/src/dbintf.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/Db3x_mmap/src/dbintf.h b/plugins/Db3x_mmap/src/dbintf.h index d0919c28c8..9415524871 100644 --- a/plugins/Db3x_mmap/src/dbintf.h +++ b/plugins/Db3x_mmap/src/dbintf.h @@ -153,6 +153,7 @@ struct CDb3Base : public MIDatabase, public MIDatabaseChecker, public MZeroedObj __forceinline HANDLE getFile() const { return m_hDbFile; }
__forceinline bool isEncrypted() const { return m_bEncrypted; }
+ __forceinline bool usesPassword() const { return m_bUsesPassword; }
public:
STDMETHODIMP_(void) SetCacheSafetyMode(BOOL);
@@ -220,7 +221,7 @@ protected: HANDLE m_hDbFile;
DBHeader m_dbHeader;
DWORD m_ChunkSize;
- bool m_safetyMode, m_bReadOnly, m_bEncrypted;
+ bool m_safetyMode, m_bReadOnly, m_bEncrypted, m_bUsesPassword;
////////////////////////////////////////////////////////////////////////////
// database stuff
@@ -317,6 +318,7 @@ protected: void ReMap(DWORD needed);
void InitDialogs();
+ bool EnterPassword(const BYTE *pKey, const size_t keyLen);
};
typedef int (CDb3Base::*CheckWorker)(int);
|