From RAD Studio API Documentation
Jump to: navigation, search


function SetDliFailureHook2(HookProc: TDelayedLoadHook): TDelayedLoadHook;


Type Visibility Source Unit Parent
function public SysInit.pas SysInit SysInit


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.

See Also

Code Samples