Share via


IUIAutomationElement::CachedNativeWindowHandle Property

Retrieves the window handle of the element from the cache.

Syntax

HRESULT IUIAutomationElement::get_CachedNativeWindowHandle(UIA_HWND *retVal);

Parameters

  • retVal
    The address of a variable that receives the value of the cached property. If the element does not have a window, the value is 0.

Return Value

Returns S_OK if successful, or an error value otherwise.

See Also

UIA_NativeWindowHandlePropertyId, IUIAutomationElement, IUIAutomationElement::CurrentNativeWindowHandle