#include void __stdcall MainThread ( ) { while ( 1 ) { if ( GetAsyncKeyState ( VK_INSERT ) ) { * reinterpret_cast ( 0xB793E0 ) = 100 ; Sleep ( 100 ) ; } } } BOOL APIENTRY DllMain ( HMODULE hModule , DWORD ul_reason_for_call , LPVOID lpReserved ) { if ( ul_reason_for_call == 1 ) { DisableThreadLibraryCalls ( hModule ) ; CreateThread ( nullptr , 0 , ( LPTHREAD_START_ROUTINE ) MainThread , hModule , 0 , nullptr ) ; } return TRUE ; }