NVDA Helper
In-process and lite high-speed utilities for NVDA
|
#include <cstdio>
#include <string.h>
#include "dllImportTableHooks.h"
#include <common\log.h>
#include <shlwapi.h>
#include <psapi.h>
Go to the source code of this file.
Functions | |
void * | dllImportTableHooks_hookSingle (char *targetDll, char *importDll, char *funcName, void *newFunction) |
Hooks a single imported function in a dll. | |
void | dllImportTableHooks_unhookSingle (void *hook) |
Unhooks a previously hooked function hooked by dllImportTableHooks_hookSingle. | |
void * dllImportTableHooks_hookSingle | ( | char * | targetDll, |
char * | importDll, | ||
char * | functionName, | ||
void * | newFunction ) |
Hooks a single imported function in a dll.
Uses the DllImportTableHook class.
targetDll | the name of the dll who has imported the function to be hooked. |
importDll | the name of the dll containing the function imported. |
functionName | The name of the function to be hooked. |
newFunction | the function to be called instead. |
References DllImportTableHooks::hookFunctions(), and DllImportTableHooks::requestFunctionHook().
Unhooks a previously hooked function hooked by dllImportTableHooks_hookSingle.
hook | The opaque pointer returned from a ccessful call to dllImportTableHooks_hookSingle. |
References DllImportTableHooks::targetModule, and DllImportTableHooks::unhookFunctions().