currentItemStatus property

BSTR get currentItemStatus

Retrieves the description of the status of an item in an element.

To learn more, see learn.microsoft.com/windows/win32/api/uiautomationclient/nf-uiautomationclient-iuiautomationelement-get_currentitemstatus.

Implementation

BSTR get currentItemStatus {
  final retVal = adaptiveCalloc<Pointer<Utf16>>();
  final hr$ = HRESULT(_get_CurrentItemStatusFn(ptr, retVal));
  if (hr$.isError) {
    free(retVal);
    throw WindowsException(hr$);
  }
  final result$ = retVal.value;
  free(retVal);
  return BSTR(result$);
}