getFieldNames method

void getFieldNames(
  1. Pointer<Uint32> pcNames,
  2. Pointer<Pointer<Utf16>> rgBstrNames
)

Gets the names of the fields of the record.

Throws a WindowsException on failure.

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

Implementation

@pragma('vm:prefer-inline')
void getFieldNames(
  Pointer<Uint32> pcNames,
  Pointer<Pointer<Utf16>> rgBstrNames,
) {
  final hr$ = HRESULT(_GetFieldNamesFn(ptr, pcNames, rgBstrNames));
  if (hr$.isError) throw WindowsException(hr$);
}