Base Simples.
Code:
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
INT FPS;
void Funçoes()
{
if(GetAsyncKeyState(VK_F2) & 1) FPS = ! FPS;
if(FPS)
*(float*)0x3791EED4 = 1.000f;
else
*(float*)0x3791EED4 = 0.000f;
}
void dwHook (void)
{
while(true) {
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
if(CShell)
{
Funçoes();
}
}
}
INT WINAPI DllMain(HMODULE hModule, DWORD dwReason, LPVOID lpReserved)
{
DisableThreadLibraryCalls(hModule);
if(dwReason == DLL_PROCESS_ATTACH)
{
CreateThread(NULL,NULL,(LPTHREAD_START_ROUTINE)dwHook,NULL,NULL,NULL);
}
return TRUE;
}
@WE11ington




