diff options
author | segfault <toni@impl.cc> | 2020-11-27 09:16:47 -0800 |
---|---|---|
committer | segfault <toni@impl.cc> | 2020-11-27 09:16:47 -0800 |
commit | eaba393b123fe2c282d883b05c9fea28d9c6179a (patch) | |
tree | b42110c82abbff8baa20f5de44403eb1ed6b637c /CheatEngineServer/CheatEngine.h | |
parent | 11ab26cd9642d6be7496df5e4e14486a51fc5419 (diff) |
CEPacket template class, CMD_CREATETOOLHELP32SNAPSHOT and preps for CMD_PROCESS32FIRST / CMD_PROCESS32NEXT
Diffstat (limited to 'CheatEngineServer/CheatEngine.h')
-rw-r--r-- | CheatEngineServer/CheatEngine.h | 20 |
1 files changed, 20 insertions, 0 deletions
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 <winsock.h> #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 T> +class CEPacket { + +}; + class CEConnection { public: explicit CEConnection(SOCKET s) : sock(s) {} |