IMetaDataAssemblyImport::EnumManifestResources method (rometadataapi.h)

Gets a pointer to an enumerator for the resources referenced in the current assembly manifest.

Syntax

HRESULT EnumManifestResources(
  [in, out] HCORENUM              *phEnum,
  [out]     mdManifestResource [] rManifestResources,
  [in]      ULONG                 cMax,
  [out]     ULONG                 *pcTokens
);

Parameters

[in, out] phEnum

A pointer to the enumerator. This must be a null value when the EnumManifestResources method is called for the first time.

[out] rManifestResources

The array used to store the mdManifestResource metadata tokens.

[in] cMax

The maximum number of mdManifestResource tokens that can be placed in rManifestResources.

[out] pcTokens

The number of mdManifestResource tokens actually placed in rManifestResources.

Return value

HRESULT Description
S_OK EnumManifestResources returned successfully.
S_FALSE There are no tokens to enumerate. In this case, pcTokens is set to zero.

Requirements

Requirement Value
Target Platform Windows
Header rometadataapi.h

See also

IMetaDataAssemblyImport