Name

TModuleUnloadProcLW Type

Syntax

type
  TModuleUnloadProcLW = procedure(HInstance: LongWord);

Description

You can register a callback procedure that Delphi calls when it unloads a package or project module. The procedure signature must match the TModuleUnloadProcLW type, that is, take a handle as an argument.

Tips and Tricks

For backward compatibility, Delphi overloads the AddModuleUnloadProc and RemoveModuleUnloadProc procedures to accept a callback procedure with a LongInt argument. For new code, be sure to use LongWord (or the Windows equivalents DWORD or THandle).

Example

See AddModuleUnloadProc for an example.

See Also

AddModuleUnloadProc Procedure, RemoveModuleUnloadProc Procedure, TModuleUnloadRec Type

Get Delphi in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.