From c2df6e7bbf6efdb36f751379c154623191864a1f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 21 Jul 2012 18:25:03 +0000 Subject: Dbx_mmap_SA ready git-svn-id: http://svn.miranda-ng.org/main/trunk@1094 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Dbx_mmap_SA/commonheaders.h | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to 'plugins/Dbx_mmap_SA/commonheaders.h') diff --git a/plugins/Dbx_mmap_SA/commonheaders.h b/plugins/Dbx_mmap_SA/commonheaders.h index 56a9d54ddd..a098644dad 100644 --- a/plugins/Dbx_mmap_SA/commonheaders.h +++ b/plugins/Dbx_mmap_SA/commonheaders.h @@ -57,18 +57,13 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "m_folders.h" //own headers -#include "database.h" -#include "dbintf.h" +#include "dbintf_sa.h" +#include "..\Db3x_mmap\database.h" #include "resource.h" #include "version.h" -extern CRITICAL_SECTION csDbAccess; -extern struct DBHeader dbHeader; -extern HANDLE hDbFile; -extern BOOL bEncoding; extern HINSTANCE g_hInst; extern HANDLE hSetPwdMenu; -extern CDdxMmap* g_Db; #ifdef __GNUC__ #define mir_i64(x) (x##LL) @@ -88,6 +83,13 @@ BOOL CALLBACK DlgStdNewPass(HWND hDlg, UINT uMsg,WPARAM wParam,LPARAM lParam); BOOL CALLBACK DlgChangePass(HWND hDlg, UINT uMsg,WPARAM wParam,LPARAM lParam); void xModifyMenu(HANDLE hMenu,long flags,const TCHAR* name, HICON hIcon); +extern DBSignature dbSignature, dbSignatureSecured; + +extern LIST g_Dbs; + +int InitPreset(); +void UninitPreset(); + typedef struct{ void* (__stdcall *GenerateKey)(char* pwd); void (__stdcall *FreeKey)(void* key); @@ -106,7 +108,10 @@ typedef struct{ } Cryptor; typedef struct{ - char dllname[255]; + TCHAR dllname[MAX_PATH]; HMODULE hLib; Cryptor* cryptor; -} CryptoModule; \ No newline at end of file +} CryptoModule; + +extern Cryptor* CryptoEngine; +extern void* key; -- cgit v1.2.3