cachedLandmarkType property

UIA_LANDMARKTYPE_ID get cachedLandmarkType

Gets the cached landmark type ID for the automation element.

To learn more, see learn.microsoft.com/windows/win32/api/uiautomationclient/nf-uiautomationclient-iuiautomationelement5-get_cachedlandmarktype.

Implementation

UIA_LANDMARKTYPE_ID get cachedLandmarkType {
  final retVal = adaptiveCalloc<Int32>();
  final hr$ = HRESULT(_get_CachedLandmarkTypeFn(ptr, retVal));
  if (hr$.isError) {
    free(retVal);
    throw WindowsException(hr$);
  }
  final result$ = retVal.value;
  free(retVal);
  return .new(result$);
}