stupid error
hi just got back into hacking in c++, made a simple dll hack.
code:
i inject but nothing happens... using windows 7
code:
Code:
#include <windows.h>
#define SV_CHEATS 0x000EA59C
void thread()
{
for(;;)
{
*(int*)(SV_CHEATS) = 1;
Sleep(100);
}
}
BOOL WINAPI DllMain( HINSTANCE hinstDLL, DWORD dwReason, LPVOID lpReserved )
{
if( dwReason == DLL_PROCESS_ATTACH )
{
CreateThread( NULL, NULL, (LPTHREAD_START_ROUTINE)thread, NULL, NULL, NULL);
}
return TRUE;
}
