Skip to content

Instantly share code, notes, and snippets.

View jkriegshauser's full-sized avatar

jkriegshauser

View GitHub Profile
@jkriegshauser
jkriegshauser / detour.c
Last active November 22, 2024 00:20
Intercepting GetSystemInfo
#include <windows.h>
#include <detours.h>
// Our maximum number of CPUs visible to the application
//
#define NUM_CPUS 8u
// Type declaration
//
typedef void (WINAPI *GetSystemInfo_t)(LPSYSTEM_INFO);