#ifndef _GLOBAL_H #define _GLOBAL_H #define _WIN32_WINNT 0x0501 #define WINVER 0x0501 #define _WIN32_IE 0x0500 #include #include #include #include #include #include #include #include #include #include #include #include "..\x64_dbg_bridge\bridgemain.h" #include "sqlite\sqlite3.h" #ifdef __GNUC__ #include "dbghelp\dbghelp.h" #else #include #endif //__GNUC__ #ifndef __GNUC__ #define and && #define or || #endif #ifndef DLL_EXPORT #define DLL_EXPORT __declspec(dllexport) #endif //DLL_IMPORT #ifndef DLL_IMPORT #define DLL_IMPORT __declspec(dllimport) #endif //DLL_IMPORT #include "dbg.h" //defines #define deflen 1024 #ifdef _WIN64 //defined by default #define fhex "%.16llX" #define fext "ll" typedef unsigned long long uint; typedef long long sint; #else #define fhex "%.8X" #define fext "" typedef unsigned long uint; typedef long sint; #endif // _WIN64 enum BITMASK { BIT1=0x1, BIT2=0x2, BIT3=0x4, BIT4=0x8, BIT5=0x10, BIT6=0x20, BIT7=0x40, BIT8=0x80, BIT9=0x100, BIT10=0x200, BIT11=0x400, BIT12=0x800, BIT13=0x1000, BIT14=0x2000, BIT15=0x4000, BIT16=0x8000, BIT17=0x10000, BIT18=0x20000, BIT19=0x40000, BIT20=0x80000, BIT21=0x100000, BIT22=0x200000, BIT23=0x400000, BIT24=0x800000, BIT25=0x1000000, BIT26=0x2000000, BIT27=0x4000000, BIT28=0x8000000, BIT29=0x10000000, BIT30=0x20000000, BIT31=0x40000000, BIT32=0x80000000 }; //superglobal variables extern HINSTANCE hInst; extern char sqlitedb_basedir[deflen]; extern char dbpath[3*deflen]; //functions void* emalloc(size_t size); void efree(void* ptr); void* emalloc(size_t size, const char* reason); void efree(void* ptr, const char* reason); bool arraycontains(const char* cmd_list, const char* cmd); bool scmp(const char* a, const char* b); void formathex(char* string); void formatdec(char* string); bool FileExists(const char* file); bool DirExists(const char* dir); bool GetFileNameFromHandle(HANDLE hFile, char* szFileName); bool settingboolget(const char* section, const char* name); #endif // _GLOBAL_H