System.AddModuleUnloadProc
Delphi
procedure AddModuleUnloadProc(Proc: TModuleUnloadProc);
procedure AddModuleUnloadProc(Proc: TModuleUnloadProcLW);
C++
extern DELPHI_PACKAGE void __fastcall AddModuleUnloadProc(TModuleUnloadProc Proc)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.pas System.hpp |
System | System |
Description
AddModuleUnloadProc adds a call to your defined routine when a package is unloaded.
Before Delphi unloads a package that was used by your application, it can optionally call your Proc routine. In essence, AddModuleUnloadProc adds your callback routine to the head of the list of internal routines that Delphi invokes to perform the unload.
Use RemoveModuleUnloadProc to reverse the effect of AddModuleUnloadProc.