System.TEnumModuleFunc

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TEnumModuleFunc = function (HInstance: NativeInt; Data: Pointer): Boolean;

C++

typedef bool __fastcall (*TEnumModuleFunc)(NativeInt HInstance, void * Data);

Properties

Type Visibility Source Unit Parent
type
typedef
public
System.pas
System.hpp
System System

Description

Is the type of the callback function used in module enumeration.

TEnumModuleFunc is the type of a user-defined callback function passed as a parameter to the EnumModules and EnumResourceModules procedures. TEnumModuleFunc receives an instance handle and a user-defined data value for every module enumerated.

The parameters to TEnumModuleFunc are listed in the following table.



Parameter Meaning

HInstance

The instance handle of the module being enumerated.

Data

A 32-bit user-defined value passed to the enumeration procedure.



To continue enumerating modules, TEnumModuleFunc must return True; to stop enumerating modules, it must return False.

See Also