The HookCodeNt function can intercept a function and call another function instead.
function HookCodeNt( pOrigFunction: Pointer; pCallbackFunction: Pointer; var pNewFunction: Pointer ): Boolean; stdcall;
Remarks
HookCodeNt uses code overwriting to intercept a function. Therefore almost every function can be intercepted. Use this function only for functions which are stored inside the local memory of Win9x or WinNt. Better use HookCode which supports Win9x and WinNT code overwriting.
If the function succeeds, the return value is true.
If the function fails, the return value is false.
Requirements
| Client | Requires Windows XP, Windows 2000 Professional, Windows NT Workstation |
|---|---|
| Header |
Declared in uallHook.pas |