RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
System.EnumModules Function

Executes a callback for all the modules in an application.

Pascal
procedure EnumModules(Func: TEnumModuleFunc; Data: Pointer); overload;
procedure EnumModules(Func: TEnumModuleFuncLW; Data: Pointer); overload;
C++
EnumModules(TEnumModuleFunc Func, void * Data);
EnumModules(TEnumModuleFuncLW Func, void * Data);

System

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 follows:

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.  

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!