IUIAutomationLegacyIAccessiblePattern::GetCurrentSelection Method
Retrieves the Microsoft Active Accessibility property that identifies the selected children of this element.
Syntax
HRESULT GetCurrentSelection( IUIAutomationElementArray **pvarSelectedChildren );
Parameters
- pvarSelectedChildren
[out, retval] The address of a variable that receives a pointer to an IUIAutomationElementArray interface representing the collection of the selected children, as UI Automation elements.
Return Value
Returns S_OK if successful, or an error value otherwise.