HookCodeKernel9x

The HookCodeKernel9x function can intercept a function and call another function instead.

function HookCodeKernel9x(
  pOrigFunction: Pointer;
  pCallbackFunction: Pointer;
  var pNewFunction: Pointer
): Boolean; stdcall;

Parameters

pOrigFunction
[in] Pointer to the function which is intercepted.
 
 
pCallbackFunction
[in] Pointer to the function which is called instead.
 
 
pNewFunction
[out] Pointer to the function which must be used instead of the function which is intercepted.

Remarks

HookCodeKernel9x 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 global memory of Win9x. Better use HookCode which supports Win9x and WinNT Code overwriting.

 

Return Values

If the function succeeds, the return value is true.

If the function fails, the return value is false.

 

Requirements

Client Requires Windows Me, Windows 98, or Windows 95.
Header

Declared in uallHook.pas