cachedProcessId property

int get cachedProcessId

Retrieves the cached ID of the process that hosts the element.

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

Implementation

int get cachedProcessId {
  final retVal = adaptiveCalloc<Int32>();
  final hr$ = HRESULT(_get_CachedProcessIdFn(ptr, retVal));
  if (hr$.isError) {
    free(retVal);
    throw WindowsException(hr$);
  }
  final result$ = retVal.value;
  free(retVal);
  return result$;
}