From eaba393b123fe2c282d883b05c9fea28d9c6179a Mon Sep 17 00:00:00 2001 From: segfault Date: Fri, 27 Nov 2020 09:16:47 -0800 Subject: CEPacket template class, CMD_CREATETOOLHELP32SNAPSHOT and preps for CMD_PROCESS32FIRST / CMD_PROCESS32NEXT --- CheatEngineServer/CheatEngine.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'CheatEngineServer/CheatEngine.h') diff --git a/CheatEngineServer/CheatEngine.h b/CheatEngineServer/CheatEngine.h index 3cfbc32..9d13183 100644 --- a/CheatEngineServer/CheatEngine.h +++ b/CheatEngineServer/CheatEngine.h @@ -3,6 +3,7 @@ #include #define CE_PORT "52736" +#define MSG_WAITALL 0x8 typedef enum ce_command { CMD_GETVERSION = 0, @@ -64,6 +65,25 @@ static inline char const * ce_command_to_string(enum ce_command cmd) return cmd_map[cmd]; } +#pragma pack(1) +typedef struct { + DWORD dwFlags; + DWORD th32ProcessID; +} CeCreateToolhelp32Snapshot, *PCeCreateToolhelp32Snapshot; + +typedef struct { + int result; + int pid; + int processnamesize; + //processname +} CeProcessEntry, *PCeProcessEntry; +#pragma pack() + +template +class CEPacket { + +}; + class CEConnection { public: explicit CEConnection(SOCKET s) : sock(s) {} -- cgit v1.2.3