IUIAutomation::ElementFromHandle Method
Retrieves a UI Automation element for the specified window.
Syntax
HRESULT ElementFromHandle( UIA_HWND hwnd, IUIAutomationElement **element );
Parameters
- hwnd
[in] The window handle.- element
[out, retval] The address of a variable that receives a pointer to the IUIAutomationElement interface.
Return Value
Returns S_OK if successful, or an error value otherwise.
See Also