SafeArrayDestroy function oleaut32
Destroys an existing array descriptor and all of the data in the array.
Throws a WindowsException on failure.
To learn more, see learn.microsoft.com/windows/win32/api/oleauto/nf-oleauto-safearraydestroy.
Implementation
@pragma('vm:prefer-inline')
void SafeArrayDestroy(Pointer<SAFEARRAY> psa) {
final hr$ = HRESULT(_SafeArrayDestroy(psa));
if (hr$.isError) throw WindowsException(hr$);
}