Name
EnumResourceModules Procedure
Syntax
procedure EnumResourceModules(Func: TEnumModuleFuncLW; Data: Pointer);
Description
The
EnumResourceModules
procedure calls a user-supplied
callback function for each resource module in the application, that
is, the resource DLL for the application’s
.exe file and for every package and DLL the
application loads.
The callback function gets two arguments: the instance handle for
each resource module and the Data argument. It
returns True to continue enumerating modules or False to stop and
cause EnumResourceModules to return
immediately.
EnumResourceModules is a real procedure.
Tips and Tricks
For backward compatibility,
EnumResourceModulesis overloaded and can use a callback function that declares itsHInstanceparameter with typeInteger. For new code, however, you should useLongWord, or if you are using theWindowsunit,THandle.If a module has no separate resource module,
EnumResourceModulesuses the module’s instance handle. You can tell that a module has a resource module because its resource instance handle is different from the module’s instance handle.
See Also
| EnumModules Procedure, FindClassHInstance Function, FindHInstance Function, FindResourceHInstance Function, LoadResourceModule Function, RegisterModule Procedure, TEnumModuleFuncLW Type, UnregisterModule Procedure |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access