iw4x-client/src/Components/Modules/AntiCheat.hpp

32 lines
664 B
C++
Raw Normal View History

2016-02-29 08:47:21 -05:00
namespace Components
{
class AntiCheat : public Component
{
public:
AntiCheat();
~AntiCheat();
const char* GetName() { return "Component"; }; // Wrong name :P
static void CrashClient();
static void EmptyHash();
2016-03-07 16:52:53 -05:00
static void InitLoadLibHook();
2016-02-29 08:47:21 -05:00
private:
2016-02-29 11:30:04 -05:00
static int LastCheck;
2016-02-29 08:47:21 -05:00
static std::string Hash;
static void Frame();
2016-02-29 14:38:14 -05:00
static void PerformCheck();
2016-03-01 07:37:51 -05:00
static void PatchWinAPI();
2016-02-29 14:38:14 -05:00
static void NullSub();
2016-03-07 16:52:53 -05:00
2016-05-14 09:32:43 -04:00
static void SoundInitStub();
2016-03-14 16:29:21 -04:00
static BOOL WINAPI VirtualProtectStub(LPVOID lpAddress, SIZE_T dwSize, DWORD flNewProtect, PDWORD lpflOldProtect);
2016-03-07 16:52:53 -05:00
static Utils::Hook LoadLibHook[4];
2016-03-14 16:29:21 -04:00
static Utils::Hook VirtualProtectHook;
2016-02-29 08:47:21 -05:00
};
}