NVDA Helper
In-process and lite high-speed utilities for NVDA
|
#include <dllImportTableHooks.h>
Public Member Functions | |
DllImportTableHooks (HMODULE targetModule) | |
void * | requestFunctionHook (const char *moduleName, const char *functionName, void *newHookProc) |
Requests that the given function from the given module should be hooked with the given hook procedure. | |
BOOL | hookFunctions () |
Hooks all the functions requested with requestFunctionHook. | |
BOOL | unhookFunctions () |
Unhooks any functions previously hooked. | |
Public Attributes | |
const HMODULE | targetModule |
DllImportTableHooks::DllImportTableHooks | ( | HMODULE | targetModule | ) |
void * DllImportTableHooks::requestFunctionHook | ( | const char * | moduleName, |
const char * | functionName, | ||
void * | newHookProc ) |
Requests that the given function from the given module should be hooked with the given hook procedure.
Note that hooking does not automatically take place when this function is called, so this function can be called many times before the actual hooking can be done in bulk with apiHooks_hookFunctions.
moduleName | the name of the module the function you wish to hook is located in. |
functionName | the name of the function you wish to hook. |
newHookProc | the function you wish to be called instead of the original one. |
References LOG_DEBUG, and LOG_ERROR.
Referenced by dllImportTableHooks_hookSingle().
BOOL DllImportTableHooks::hookFunctions | ( | ) |
Hooks all the functions requested with requestFunctionHook.
References LOG_DEBUG, LOG_ERROR, and targetModule.
Referenced by dllImportTableHooks_hookSingle().
BOOL DllImportTableHooks::unhookFunctions | ( | ) |
Unhooks any functions previously hooked.
References LOG_DEBUG, and targetModule.
Referenced by dllImportTableHooks_unhookSingle().
const HMODULE DllImportTableHooks::targetModule |
Referenced by dllImportTableHooks_unhookSingle(), hookFunctions(), and unhookFunctions().