#pragma once #pragma warning(disable : 4996) #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers // Windows Header Files: #include // C RunTime Header Files #include #include #include #include #include #include "keyproph.h" #include "timer.h" bool InjectCode(HANDLE gwHand, unsigned long address, unsigned long size, unsigned char *data); bool InjectCodeRestore(HANDLE gwHand, unsigned long address, unsigned long size, unsigned char *data); void KillGuildWars(); BOOL PauseResumeThreadList(DWORD dwOwnerPID, bool bResumeThread); int KeyInjection(HANDLE gwHand); #define ERROR_THRESHOLD -1000 #define MACRO_IFNOGW FindWindowEx(NULL, NULL, "ArenaNet_Dx_Window_Class", NULL)==NULL && FindWindowEx(NULL, NULL, "ArenaNet_Dialog_Class", NULL)==NULL #define MACRO_IFGW FindWindowEx(NULL, NULL, "ArenaNet_Dx_Window_Class", NULL)!=NULL || FindWindowEx(NULL, NULL, "ArenaNet_Dialog_Class", NULL)!=NULL struct GWMEMS { unsigned long injectKeyAddr; unsigned long injectPassAddr; unsigned long injectSendFlagAddr; unsigned long injectRecvFlagAddr; unsigned long codeCave; GWMEMS() { injectKeyAddr=0; injectPassAddr=0; injectSendFlagAddr=0; injectRecvFlagAddr=0; codeCave=0; } }; int InjectPacketDump(int filter, int (*dumpProcessing)(DATA *d)); void UpdateASM(GWMEMS *gw); bool FindMemoryLocations(GWMEMS *gw, HANDLE gwHand);