static void WINAPI PresentHook(IDXGISwapChain* pSwapChain, UINT SyncInterval, UINT Flags)
#include "xhook/hook.h" int main()
// Entry point called by the loader extern "C" __declspec(dllexport) void Initialize() crossfire account github xhook
Again, this —the DLL merely registers a DirectX draw call that renders text on top of the game window. 5.6 The Overlay Hook (simplified) // hooks/overlay_hook.cpp #include <xhook/hook.h> #include <d3d11.h> #include <string> #include "api/cf_api.h" static void WINAPI PresentHook(IDXGISwapChain* pSwapChain