steal pipe server from project asakura

This commit is contained in:
doomertheboomer
2023-07-27 14:41:50 +07:00
parent cdcbd2585a
commit 0648ec7ab2
4 changed files with 152 additions and 39 deletions
+4 -21
View File
@@ -23,30 +23,13 @@ static int returnFalse() {
}
bool init = false;
/*
DWORD WINAPI MainThread(LPVOID lpReserved)
{
bool init_hook = false;
do
{
} while (!init_hook);
return TRUE;
}
*/
BOOL WINAPI DllMain(HMODULE hMod, DWORD dwReason, LPVOID lpReserved)
{
switch (dwReason)
{
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls(hMod);
imageBase = (uintptr_t)GetModuleHandleA(0);
hookDancepad();
DisableThreadLibraryCalls(hMod);
imageBase = (uintptr_t)GetModuleHandleA(0);
break;
}
return TRUE;
hookDancepad(); // drs.cpp
return true;
}