SysInit.SetDliFailureHook2
Delphi
function SetDliFailureHook2(HookProc: TDelayedLoadHook): TDelayedLoadHook;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | SysInit.pas | SysInit | SysInit |
Description
Sets a hook procedure for failure delay load helper notifications.
Use SetDliFailureHook2 to set a failure hook procedure for the delay load helper. The procedure that is set is called automatically whenever the delay load helper encounters an error.
The SetDliFailureHook2 routine accepts a TDelayedLoadHook procedure and returns the previously registered hook procedure. We recommend that you call the previously registered hook procedure inside your newly registered hook procedure.
The registered failure hook procedure is called only for the following notification messages: dliFailLoadLibrary, dliFailGetProcAddress.