SafeArraySetIID function oleaut32

void SafeArraySetIID(
  1. Pointer<SAFEARRAY> psa,
  2. Pointer<GUID> guid
)

Sets the GUID of the interface for the specified safe array.

Throws a WindowsException on failure.

To learn more, see learn.microsoft.com/windows/win32/api/oleauto/nf-oleauto-safearraysetiid.

Implementation

@pragma('vm:prefer-inline')
void SafeArraySetIID(Pointer<SAFEARRAY> psa, Pointer<GUID> guid) {
  final hr$ = HRESULT(_SafeArraySetIID(psa, guid));
  if (hr$.isError) throw WindowsException(hr$);
}