From RAD Studio API Documentation
Jump to: navigation, search


function SetDliNotifyHook2(HookProc: TDelayedLoadHook): TDelayedLoadHook;


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


Sets a hook procedure for delay load helper notifications.

Use SetDliNotifyHook2 to set a hook procedure for the delay load helper. The procedure that is set is called automatically whenever the delay load helper is internally invoked.

The SysInit.SetDliNotifyHook2 routine accepts a SysInit.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 hook procedure is called only for the following SysInit.dliNotification notification messages:

  • dliNoteStartProcessing
  • dliNotePreLoadLibrary
  • dliNotePreLoadLibrary
  • dliNoteEndProcessing

See Also

Code Examples