Show: Delphi C++
Display Preferences

SysInit.dliNotification

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

dliNotification = (
dliStartProcessing,            { used to bypass or note helper only     }
dliNoteStartProcessing = dliStartProcessing,
dliNotePreLoadLibrary,         { called just before LoadLibrary, can    }
{  override w/ new HMODULE return val    }
dliNotePreGetProcAddress,      { called just before GetProcAddress, can }
{  override w/ new Proc address return   }
{  value                                 }
dliFailLoadLibrary,            { failed to load library, fix it by      }
{  returning a valid HMODULE             }
dliFailGetProcAddress,         { failed to get proc address, fix it by  }
{  returning a valid Proc address        }
dliNoteEndProcessing           { called after all processing is done,   }
{  no bypass possible at this point      }
{  except by raise, or
RaiseException.                       }
);

Properties

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

Description

Lists the notification messages for which the delay load hook procedure is called.

A variable of type dliNotification stores the message for which the delay load hook procedure is called (either SetDliNotifyHook2 or SetDliFailureHook2).

The following table lists the cases in which the registered hook is called by the delay load helper.

Value of dliNotify parameter Description

dliNoteStartProcessing

Sent to a delayed-load notification hook when a delayed-load session is starting. Called before the library containing the delay loaded external procedure is processed. Used to bypass or notify helper only.

dliNotePreLoadLibrary

Sent before LoadLibrary is called, allowing a new HMODULE to be returned. Called before the library containing the delay loaded external procedure is loaded. Can override with the new HMODULE return value.

dliNotePreGetProcAddress

Sent before GetProcAddress, allowing for a new procedure address to be returned if desired. Called before the address of the delay loaded procedure is found. Can override with new HMODULE return value.

dliNoteEndProcessing

Sent to a delayed-load notification hook when all delayed-load processing completes. Cannot be bypassed except for raise or RaiseException.

dliFailLoadLibrary

Sent to a delayed-load failure hook when LoadLibrary fails; allows you to specify a different valid HMODULE handle.

dliFailGetProcAddress

Sent to a delay-load failure hook when GetProcAddress fails; allows you to replace the procedure address with the address of a valid procedure.


See Also


Code Examples


Personal tools
In Other Languages
Previous Versions
Assistance