IUIAutomationSelectionPattern::GetCurrentSelection Method
Retrieves the selected elements in the container.
Syntax
HRESULT GetCurrentSelection( IUIAutomationElementArray **retVal );
Parameters
- retVal
[out, retval] The address of a variable that receives a pointer to the IUIAutomationElementArray interface for the collection of selected elements. The default is an empty array.
Return Value
Returns S_OK if successful, or an error value otherwise.