#ifndef _COMMON_H #define _COMMON_H #ifdef SAMETIME_EXPORTS #define SAMETIME_API __declspec(dllexport) #else #define SAMETIME_API __declspec(dllimport) #endif #define _WIN32_WINNT 0x400 // for QueueUserAPC #pragma warning( disable : 4503 4786 ) #include //#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "resource.h" // sametime stuff extern "C" { #include #include #include //#include #include #include #include #include #include #include #include #include #include #include #include }; // globals extern char PROTO[64]; extern char PROTO_GROUPS[128]; extern HINSTANCE hInst; extern PLUGINLINK *pluginLink; extern PLUGININFOEX pluginInfo; extern MM_INTERFACE mmi; extern UTF8_INTERFACE utfi; extern HANDLE mainThread; extern DWORD mainThreadId; extern "C" SAMETIME_API PLUGININFO* MirandaPluginInfo(DWORD mirandaVersion); extern "C" SAMETIME_API int Load(PLUGINLINK *link); extern "C" SAMETIME_API int Unload(void); extern HANDLE hNetlibUser; static inline void NLog(char *msg) { CallService(MS_NETLIB_LOG, (WPARAM)hNetlibUser, (LPARAM)msg); } extern int previous_status, current_status; extern bool is_idle; int DBGetContactSettingUtf(HANDLE hContact, char *module, char *setting, DBVARIANT *dbv); void SetAllOffline(); extern bool unicode_chat; extern int code_page; #define MAX_MESSAGE_SIZE (10 * 1024) // verified limit in official client, thx Periferral #endif