cachedLocalizedLandmarkType property

BSTR get cachedLocalizedLandmarkType

Gets a string containing the cached localized landmark type for the automation element.

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

Implementation

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