mirror of
https://github.com/sslab-gatech/winnie
synced 2026-06-08 17:35:47 +00:00
11 lines
371 B
C++
11 lines
371 B
C++
#include "stdafx.h"
|
|
|
|
static HMODULE ntdll = GetModuleHandleA("ntdll.dll");
|
|
#define CACHE_PROC(mod, name) name##_t name = (name##_t)GetProcAddress(mod, #name)
|
|
|
|
CACHE_PROC(ntdll, NtQueryInformationProcess);
|
|
CACHE_PROC(ntdll, NtCreateUserProcess);
|
|
CACHE_PROC(ntdll, RtlRegisterThreadWithCsrss);
|
|
CACHE_PROC(ntdll, NtQuerySystemInformation);
|
|
CACHE_PROC(ntdll, NtQueryObject);
|