cachedControlType property
UIA_CONTROLTYPE_ID
get
cachedControlType
Retrieves a cached value that indicates the control type of the element.
To learn more, see learn.microsoft.com/windows/win32/api/uiautomationclient/nf-uiautomationclient-iuiautomationelement-get_cachedcontroltype.
Implementation
UIA_CONTROLTYPE_ID get cachedControlType {
final retVal = adaptiveCalloc<Int32>();
final hr$ = HRESULT(_get_CachedControlTypeFn(ptr, retVal));
if (hr$.isError) {
free(retVal);
throw WindowsException(hr$);
}
final result$ = retVal.value;
free(retVal);
return .new(result$);
}