mirror of
https://github.com/GameHackingBook/GameHackingCode
synced 2026-06-08 11:08:54 +00:00
23 lines
451 B
C++
23 lines
451 B
C++
#include <windows.h>
|
|
|
|
|
|
DWORD WINAPI runBot(LPVOID lpParam) {
|
|
// run your bot
|
|
return 1;
|
|
}
|
|
|
|
|
|
BOOL APIENTRY DllMain( HMODULE hModule,
|
|
DWORD ul_reason_for_call,
|
|
LPVOID lpReserved
|
|
)
|
|
{
|
|
switch (ul_reason_for_call)
|
|
{
|
|
case DLL_PROCESS_ATTACH:
|
|
MessageBoxA(NULL, "DLL Attached!\n", "Game Hacking", MB_OK | MB_TOPMOST);
|
|
CreateThread(NULL, 0, &runBot, NULL, 0, NULL);
|
|
break;
|
|
}
|
|
return TRUE;
|
|
} |