|
/*
Module : HookImportFunction.h
Purpose: Defines the interface for code to hook a call to any imported Win32 SDK
Created: PJN / 23-10-1999
Copyright (c) 1999 by PJ Naughter.
All rights reserved.
*/
#ifndef __HOOKIMPORTFUNCTION_H__
#define __HOOKIMPORTFUNCTION_H__
////////////// Structures ///////////////////////////
typedef struct tag_HOOKFUNCDESC
{
PCSTR szFunc; // The name of the function to hook.
PROC pProc; // The procedure to blast in.
} HOOKFUNCDESC , * LPHOOKFUNCDESC;
////////////// Functions ////////////////////////////
PIMAGE_IMPORT_DESCRIPTOR GetNamedImportDescriptor(HMODULE hModule, LPCSTR szImportMod);
BOOL HookImportFunctionsByName(HMODULE hModule, LPCSTR szImportMod, UINT uiCount,
LPHOOKFUNCDESC paHookArray, PROC* paOrigFuncs, UINT* puiHooked);
#endif //__HOOKIMPORTEDFUNCTION_H__
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.