RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
System.TModuleUnloadProc Type

TModuleUnloadProc defines a procedure that can be called during package unload.

Pascal
TModuleUnloadProc = procedure (HInstance: Integer);
C++
(HInstance: Integer) ( TModuleUnloadProc)();

Before Delphi unloads a package that was used by your application, it can optionally call your TModuleUnloadProc routine. In essence, AddModuleUnloadProc adds your callback routine to the head of the list of internal routines that Delphi invokes to perform the unload.  

Proc is the Handle to the DLL Package instance being unloaded. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!