#pragma once #pragma warning(disable: 4311) //Pointer truncation (I dont support 64 bits, fuck off) #pragma warning(disable: 4996) #pragma comment(lib, "udiss.lib") #define PACKET_CODE_SIZE 32 #define WIN32_LEAN_AND_MEAN #include #include #include #include #include #include "udis86.h" #include #include #include #include using namespace std; typedef enum { CC_BLACK, CC_BLUE, CC_GREEN, CC_CYAN, CC_RED, CC_MAGENTA, CC_BROWN, CC_LIGHTGRAY, CC_DARKGRAY, CC_LIGHTBLUE, CC_LIGHTGREEN, CC_LIGHTCYAN, CC_LIGHTRED, CC_LIGHTMAGENTA, CC_YELLOW, CC_WHITE } CONSOLE_COLORS; struct SigData { char packetName[100]; unsigned short opcode; unsigned char* pSignature; int sigSize; int fileOffset; bool wroteChange; }; struct OpUpdate { char packetName[100]; unsigned short opcode; int fileOffset; }; extern std::list opcodes; extern std::list gOpUpdates; extern unsigned char* CallHookStart; extern unsigned char* CallHookReturn; extern unsigned char CallHookCode[]; extern unsigned char** PacketCodeData; extern int gMonitorMode; extern int gSuppressWriteSigPrompt; const void SetConsoleColor( long textcolor, long backcolor ); unsigned long HexToDecimal(char* hexNumber); void ReverseShortByteOrder(short* pShort); unsigned short REV(unsigned short s); void WriteUpdate(OpUpdate pU); void SetWrittenByName(char* pName); int MaxCanUpdate(); void Log(char* pString, ...);