getIDsOfNames method

void getIDsOfNames(
  1. Pointer<GUID> riid,
  2. Pointer<Pointer<Utf16>> rgszNames,
  3. int cNames,
  4. int lcid,
  5. Pointer<Int32> rgDispId,
)

Maps a single member and an optional set of argument names to a corresponding set of integer DISPIDs, which can be used on subsequent calls to Invoke.

Throws a WindowsException on failure.

To learn more, see learn.microsoft.com/windows/win32/api/oaidl/nf-oaidl-idispatch-getidsofnames.

Implementation

@pragma('vm:prefer-inline')
void getIDsOfNames(
  Pointer<GUID> riid,
  Pointer<Pointer<Utf16>> rgszNames,
  int cNames,
  int lcid,
  Pointer<Int32> rgDispId,
) {
  final hr$ = HRESULT(
    _GetIDsOfNamesFn(ptr, riid, rgszNames, cNames, lcid, rgDispId),
  );
  if (hr$.isError) throw WindowsException(hr$);
}