I made this code and the game is crashing on injection
I made this code and the game is crashing on injection even without doing anything:
Code:
DWORD WINAPI Hotkeys(LPVOID args)
{
//MessageBox(0,L"Hello",0,0);
while (true)
{
}
}
BOOL WINAPI DllMain(HMODULE hMod, DWORD dwReason, LPVOID lpReserved)
{
DisableThreadLibraryCalls(hMod);
if (dwReason == DLL_PROCESS_ATTACH)
{
CreateThread(0,0,Hotkeys,0,0,0);
}
}
EDIT: I HAVE USED PERX, BLACK DRAGON, and WINJECT to test with.
is this in the right section of cod?..
im confused...
maybe you need osme more than only that?
I had more then i tried to narrow it down to the problem... It is something with my DllMain because the second i inject it crashes.
Did you declare it right?