RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
System.EnumResourceModules Function

Executes a callback for all resource modules in an application.

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

EnumResourceModules executes the callback specified by the Func parameter for all of the instance handles associated with resources of the current program. The instance handle (HInstance) of each resource is passed to Func. EnumResourceModules continues until the last resource module in the application is enumerated, or until the callback returns false. The parameters to EnumResourceModules are as 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) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!