[Help] Timer in C++ DLL
Hello, i want to do a 10 second timer before using WriteProcessMemory in my dll hack, but i dont know how to make it work, im getting a error
i dont know how to fix
please provide me a example or full fix :/
Code:
#include "stdafx.h"
#include <Windows.h>
#include <iostream>
DWORD WINAPI LoopFunction( LPVOID lpParam )
{
HANDLE gta3 = GetCurrentProcess();
SetTimer(HWND hWnd , 10000, 1); // ERROR: expected ")", and type name is not allowed
BYTE StandingON[] = {0x00, 0x00, 0x00};
WriteProcessMemory(gta3,(void*)(0x05F2D54),&StandingON,1, 0);
Sleep(200);
return 0;
}
BOOL WINAPI DllMain (HINSTANCE hModule, DWORD dwAttached, LPVOID lpvReserved)
{
if (dwAttached == DLL_PROCESS_ATTACH) {
CreateThread(NULL,0,&LoopFunction,NULL,0,NULL);
}
return 1;
}
i dont know how to fix
please provide me a example or full fix :/
