displayUI method

void displayUI(
  1. int hWnd,
  2. BSTR title,
  3. BSTR typeOfUI,
  4. Pointer<VARIANT> extraData,
  5. IUnknown? object,
)

Throws a WindowsException on failure.

Implementation

@pragma('vm:prefer-inline')
void displayUI(
  int hWnd,
  BSTR title,
  BSTR typeOfUI,
  Pointer<VARIANT> extraData,
  IUnknown? object,
) {
  final hr$ = HRESULT(
    _DisplayUIFn(
      ptr,
      hWnd,
      title,
      typeOfUI,
      extraData,
      object?.ptr ?? nullptr,
    ),
  );
  if (hr$.isError) throw WindowsException(hr$);
}