Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Retrieves the window handle of the element.
Syntax
HRESULT IUIAutomationElement::get_CurrentNativeWindowHandle(UIA_HWND *retVal);
Parameters
- retVal
The address of a variable that receives the value of the 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::CachedNativeWindowHandle