SysInit.SetDliNotifyHook2
Delphi
function SetDliNotifyHook2(HookProc: TDelayedLoadHook): TDelayedLoadHook;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | SysInit.pas | SysInit | SysInit |
Description
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