enumManifestResources method

void enumManifestResources(
  1. Pointer<Pointer<NativeType>> phEnum,
  2. Pointer<Uint32> rManifestResources,
  3. int cMax,
  4. Pointer<Uint32> pcTokens,
)

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

Throws a WindowsException on failure.

To learn more, see learn.microsoft.com/windows/win32/api/rometadataapi/nf-rometadataapi-imetadataassemblyimport-enummanifestresources.

Implementation

@pragma('vm:prefer-inline')
void enumManifestResources(
  Pointer<Pointer> phEnum,
  Pointer<Uint32> rManifestResources,
  int cMax,
  Pointer<Uint32> pcTokens,
) {
  final hr$ = HRESULT(
    _EnumManifestResourcesFn(ptr, phEnum, rManifestResources, cMax, pcTokens),
  );
  if (hr$.isError) throw WindowsException(hr$);
}