From 367b37d773f30de8a104e8707e381b9a92ad0b9c Mon Sep 17 00:00:00 2001 From: mrexodia Date: Thu, 1 Sep 2016 21:15:57 +0200 Subject: [PATCH] added ThreaderCreateRemoteThread --- TitanEngineEmulator/Emulator.h | 7 +++++++ TitanEngineEmulator/TitanEngineEmulator.cpp | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/TitanEngineEmulator/Emulator.h b/TitanEngineEmulator/Emulator.h index c0aba2f..71b74f9 100644 --- a/TitanEngineEmulator/Emulator.h +++ b/TitanEngineEmulator/Emulator.h @@ -470,6 +470,13 @@ public: return false; } + //Threader + ULONG_PTR ThreaderCreateRemoteThread(ULONG_PTR ThreadStartAddress, bool AutoCloseTheHandle, LPVOID ThreadPassParameter, LPDWORD ThreadId) + { + //TODO + return 0; + } + protected: void cbCreateProcessEvent(const CREATE_PROCESS_DEBUG_INFO & createProcess, const Process & process) override { diff --git a/TitanEngineEmulator/TitanEngineEmulator.cpp b/TitanEngineEmulator/TitanEngineEmulator.cpp index 7a3ca4d..46a186a 100644 --- a/TitanEngineEmulator/TitanEngineEmulator.cpp +++ b/TitanEngineEmulator/TitanEngineEmulator.cpp @@ -268,4 +268,10 @@ __declspec(dllexport) void TITCALL SingleStep(DWORD StepCount, LPVOID StepCallBa __declspec(dllexport) void TITCALL StepInto(LPVOID traceCallBack) { emu.StepInto(traceCallBack); +} + +//Threader +__declspec(dllexport) ULONG_PTR TITCALL ThreaderCreateRemoteThread(ULONG_PTR ThreadStartAddress, bool AutoCloseTheHandle, LPVOID ThreadPassParameter, LPDWORD ThreadId) +{ + return emu.ThreaderCreateRemoteThread(ThreadStartAddress, AutoCloseTheHandle, ThreadPassParameter, ThreadId); } \ No newline at end of file