System.EnumModules

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure EnumModules(Func: TEnumModuleFunc; Data: Pointer);
procedure EnumModules(Func: TEnumModuleFuncLW; Data: Pointer);

C++

extern DELPHI_PACKAGE void __fastcall EnumModules(TEnumModuleFunc Func, void * Data)/* overload */;

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.pas
System.hpp
System System

Description

Executes a callback for all the modules in an application.

EnumModules enumerates the executable and all packages in an application by passing the handle of the executable and then of each package, in turn, to a user-defined callback function. EnumModules continues until the last module in the application is enumerated, or until the callback function returns False. The parameters to EnumModules areas are listed in the following table.



Parameter Meaning

Func

The procedure-instance address of the callback function.

Data

A 32-bit user-defined value that is passed to the callback function.



See Also