recordDestroy method

void recordDestroy(
  1. Pointer<NativeType> pvRecord
)

Releases the resources and deallocates the memory of the record.

Throws a WindowsException on failure.

To learn more, see learn.microsoft.com/windows/win32/api/oaidl/nf-oaidl-irecordinfo-recorddestroy.

Implementation

@pragma('vm:prefer-inline')
void recordDestroy(Pointer pvRecord) {
  final hr$ = HRESULT(_RecordDestroyFn(ptr, pvRecord));
  if (hr$.isError) throw WindowsException(hr$);
}