#define WIN32_LEAN_AND_MEAN #define NETLIB_LOG #define _CRT_SECURE_NO_WARNINGS #define mir_itoa _itoa #define mir_unlink _unlink #ifndef WINVER #define WINVER 0x0501 #endif #ifndef _WIN32_WINNT #define _WIN32_WINNT 0x0501 #endif #ifndef _WIN32_IE #define _WIN32_IE 0x0501 #endif #ifndef M_SIM_COMMONHEADERS_H #define M_SIM_COMMONHEADERS_H #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "secureim.h" #include "version.h" #include "resource.h" #include "..\SecureIM_icons\src\resource.h" #include "language.h" #include "mmi.h" #include "crypt.h" #include "gettime.h" #include "language.h" #include "options.h" #include "popupoptions.h" #include "loadicons.h" #include "rtfconv.h" #include "cryptopp.h" #include "loadlib.h" #include "images.h" #include "dbevent.h" #include "splitmsg.h" #include "svcs_proto.h" #include "svcs_clist.h" #include "svcs_menu.h" #include "svcs_srmm.h" #include "svcs_rsa.h" #define MODULENAME "SecureIM" extern LPCSTR szVersionStr; extern char TEMP[MAX_PATH]; extern int TEMP_SIZE; // shared vars extern HINSTANCE g_hInst, g_hIconInst; extern PLUGININFOEX pluginInfoEx; #define PREF_METANODB 0x2000 //!< Flag to indicate message should not be added to db by filter when sending #define PREF_SIMNOMETA 0x4000 //!< Flag to indicate message should not be inspected by filter on metacontact extern HANDLE g_hEvent[2], g_hMenu[15], g_hCLIcon, g_hFolders; extern int iService, iHook; extern HICON g_hICO[ICO_CNT], g_hIEC[1+IEC_CNT*MODE_CNT], g_hPOP[POP_CNT]; extern HANDLE g_IEC[1+IEC_CNT*MODE_CNT]; extern int iBmpDepth; extern BOOL bMetaContacts, bPopupExists; extern BOOL bPGPloaded, bPGPkeyrings, bUseKeyrings, bPGPprivkey; extern BOOL bGPGloaded, bGPGkeyrings, bSavePass; extern BOOL bSFT, bSOM, bASI, bMCD, bSCM, bDGP, bAIP, bNOL, bAAK, bMCM; extern BYTE bPGP, bGPG; extern DWORD iCoreVersion; extern CRITICAL_SECTION localQueueMutex; int onModulesLoaded(WPARAM, LPARAM); int onSystemOKToExit(WPARAM, LPARAM); int ModuleLoad(WPARAM wParam, LPARAM lParam); LPSTR myDBGetString(HANDLE,const char *,const char *); LPSTR myDBGetStringDecode(HANDLE,const char *,const char *); int myDBWriteStringEncode(HANDLE,const char *,const char *,const char *); #if defined(_DEBUG) || defined(NETLIB_LOG) extern HANDLE hNetlibUser; void InitNetlib(); void DeinitNetlib(); int Sent_NetLog(const char *,...); #endif /* int DBWriteString(HANDLE,const char *,const char *,const char *); int DBGetByte(HANDLE,const char *,const char *,int); int DBWriteByte(HANDLE,const char *,const char *,BYTE); int DBGetWord(HANDLE,const char *,const char *,int); int DBWriteWord(HANDLE,const char *,const char *,WORD); */ void GetFlags(); void SetFlags(); /* LPSTR u2a( LPCWSTR src ); LPWSTR a2u( LPCSTR src ); */ LPSTR TranslateU( LPCSTR lpText ); int msgbox( HWND hWnd, LPCSTR lpText, LPCSTR lpCaption, UINT uType ); void CopyToClipboard(HWND hwnd,LPSTR msg); #define msgbox0(a,b,c,d) msgbox(a,b,c,d) #define msgbox1(a,b,c,d) msgbox(a,b,c,d) #endif // EOF