The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
IMetaDataImport::EnumModuleRefs method
Enumerates ModuleRef tokens that represent imported modules.
Syntax
HRESULT EnumModuleRefs( [in, out] HCORENUM *phEnum, [out, size_is(cMax), length_is(*pcModuleRefs)] mdModuleRef rgModuleRefs[], [in] ULONG cMax, [out] ULONG *pcModuleRefs );
Parameters
- phEnum [in, out]
-
A pointer to the enumerator. This must be NULL for the first call of this method.
- rgModuleRefs [out]
-
The array used to store the ModuleRef tokens.
- cMax [in]
-
The maximum size of the rgModuleRefs array.
- pcModuleRefs [out]
-
The number of ModuleRef tokens returned in rgModuleRefs.
Return value
| HRESULT | Description |
|---|---|
| S_OK | EnumModuleRefs returned successfully. |
| S_FALSE | There are no tokens to enumerate. In this case, pcModuleRefs is 0 (zero). |
Requirements
|
IDL |
|
|---|
See also
Show: