You must create a .cpp and .header
You can explore a lot more of that there and with you. Good luck. :ott1:
ZAntiHack.cpp
ZAntiHack.h
main.cpp
You can explore a lot more of that there and with you. Good luck. :ott1:
ZAntiHack.cpp
Code:
#include "stdafx.h"
#include "ZAntiHack.h"
void Main(void*)
{
DWORD getTickCount = (DWORD)GetProcAddress(GetModuleHandleA("kernel32.dll"), "GetTickCount");
DWORD queryPerformanceCounter = (DWORD)GetProcAddress(GetModuleHandleA("kernel32.dll"), "QueryPerformanceCounter");
while(1)
{
if (IsAddressHooked(getTickCount) || IsAddressHooked(queryPerformanceCounter) || GetModuleHandleA("hook.dll") != NULL)
{
ExitProcess(NULL);
}
}
}
Code:
extern void Main(void*);
Code:
(HANDLE)_beginthread(Main, 0, 0);