cachedNativeWindowHandle property
HWND
get
cachedNativeWindowHandle
Retrieves the cached window handle of the element.
To learn more, see learn.microsoft.com/windows/win32/api/uiautomationclient/nf-uiautomationclient-iuiautomationelement-get_cachednativewindowhandle.
Implementation
HWND get cachedNativeWindowHandle {
final retVal = adaptiveCalloc<Pointer>();
final hr$ = HRESULT(_get_CachedNativeWindowHandleFn(ptr, retVal));
if (hr$.isError) {
free(retVal);
throw WindowsException(hr$);
}
final result$ = retVal.value;
free(retVal);
return .new(result$);
}