aboutsummaryrefslogtreecommitdiff
path: root/CheatEngineServer/CheatEngine.h
diff options
context:
space:
mode:
authorsegfault <toni@impl.cc>2020-12-15 18:49:34 +0100
committersegfault <toni@impl.cc>2020-12-15 18:49:34 +0100
commit0d68295e7697cad2ec0d39251213f143b199673d (patch)
treefb1d980b8eb6bb7104589d7ccd0dc1979dd05e1d /CheatEngineServer/CheatEngine.h
parentd9fa838219ba5e3bb0b0612e78afc2eb21154621 (diff)
CheattEngineServer: CMD_OPENPROCESS, CMD_PROCESS32FIRST, CMD_PROCESS32NEXT, CMD_CLOSEHANDLE
* KMemDriver integration * generic MT-Support achieved by synchronized wrapper functions * ability to spawn a Ping-Only Thread
Diffstat (limited to 'CheatEngineServer/CheatEngine.h')
-rw-r--r--CheatEngineServer/CheatEngine.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/CheatEngineServer/CheatEngine.h b/CheatEngineServer/CheatEngine.h
index d2f4d41..ad75b59 100644
--- a/CheatEngineServer/CheatEngine.h
+++ b/CheatEngineServer/CheatEngine.h
@@ -1,7 +1,10 @@
#pragma once
+#include "KInterface.h"
#include <winsock.h>
+#include <vector>
+
#define CE_PORT "52736"
#define MSG_WAITALL 0x8
@@ -84,9 +87,11 @@ typedef struct {
class CEConnection {
public:
- explicit CEConnection(SOCKET s) : sock(s) {}
- SOCKET getSocket(void) { return sock; }
- void closeSocket(void) { closesocket(sock); }
+ explicit CEConnection(SOCKET s) : m_sock(s) {}
+ SOCKET getSocket(void) { return m_sock; }
+ void closeSocket(void) { closesocket(m_sock); }
+
+ std::vector<PROCESS_DATA> m_cachedProcesses;
private:
- SOCKET sock;
+ SOCKET m_sock;
}; \ No newline at end of file