IMetaDataImport::EnumModuleRefs Method
Enumerates ModuleRef tokens that represent imported modules.
HRESULT EnumModuleRefs (
HCORENUM *phEnum,
mdModuleRef rModuleRefs[],
ULONG cMax,
ULONG *pcModuleRefs
);
Parameters
Parameter | Description |
---|---|
phEnum |
[in, out] A pointer to the enumerator. This must be NULL for the first call of this method. |
rModuleRefs |
[out] The array used to store the ModuleRef tokens. |
cMax |
[in] The maximum size of the rModuleRefs array. |
pcModuleRefs |
[out] The number of ModuleRef tokens returned in rModuleRefs. |
Return Value
HRESULT | Description |
---|---|
S_OK |
EnumModuleRefs returned successfully. |
S_FALSE |
There are no tokens to enumerate. In that case, pcModuleRefs is zero. |
Requirements
Platforms: Windows 2000, Windows XP, Windows Server 2003 family
Header: Cor.h
Library: Included as a resource in Mscoree.dll
.NET Framework Version: 2.0, 1.1, 1.0