ISelectionProvider::GetSelection Method
Retrieves a UI Automation provider for each child element that is selected.
Syntax
HRESULT GetSelection( SAFEARRAY **pRetVal );
Parameters
- pRetVal
[out, retval] The address of a variable that receives a pointer to a SAFEARRAY that contains an array of pointers to the IRawElementProviderSimple interfaces of the selected elements. This parameter is passed uninitialized.
Return Value
Returns S_OK if successful, or an error value otherwise.
See Also