UnHookCode

The UnHookCode function replaces the intercepted function with the original function.

function UnhookCode(
  var pNewFunction: Pointer
): Boolean; stdcall;

Parameters

pNewFunction
[in] Pointer to the function which is used instead of the original function. This is the third parameter which was returned by HookCode.
 

Remarks

UnHookCode writes the original bytes back, which where overwritten by HookCode.

 

Return Values

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, Windows Me, Windows 98, or Windows 95.
Header

Declared in uallHook.pas