getAssemblyFromScope method

void getAssemblyFromScope(
  1. Pointer<Uint32> ptkAssembly
)

Gets a pointer to the assembly in the current scope.

Throws a WindowsException on failure.

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

Implementation

@pragma('vm:prefer-inline')
void getAssemblyFromScope(Pointer<Uint32> ptkAssembly) {
  final hr$ = HRESULT(_GetAssemblyFromScopeFn(ptr, ptkAssembly));
  if (hr$.isError) throw WindowsException(hr$);
}