rawViewWalker property

IUIAutomationTreeWalker? get rawViewWalker

Retrieves a tree walker object used to traverse an unfiltered view of the Microsoft UI Automation tree.

To learn more, see learn.microsoft.com/windows/win32/api/uiautomationclient/nf-uiautomationclient-iuiautomation-get_rawviewwalker.

Implementation

IUIAutomationTreeWalker? get rawViewWalker {
  final walker = adaptiveCalloc<VTablePointer>();
  final hr$ = HRESULT(_get_RawViewWalkerFn(ptr, walker));
  if (hr$.isError) {
    free(walker);
    throw WindowsException(hr$);
  }
  final result$ = walker.value;
  free(walker);
  if (result$.isNull) return null;
  return .new(result$);
}