Tag

API Hooking

0 views collected around this technical thread.

Tencent Cloud Developer
Tencent Cloud Developer
Jul 21, 2022 · Information Security

Generic System API Hooking, Parameter Logging, and Data Filtering with C++ Templates

This note shows how C++ templates and a one‑line macro can generate a universal wrapper that hooks any system API, logs and filters its parameters—including variadic and pointer arguments—while handling special cases such as const and void* buffers, eliminating repetitive custom wrappers.

API HookingData FilteringParameter Logging
0 likes · 15 min read
Generic System API Hooking, Parameter Logging, and Data Filtering with C++ Templates