Share via


ILegacyIAccessibleProvider::GetSelection Method

Retrieves the selected item or items in the control.

Syntax

HRESULT GetSelection(      
    SAFEARRAY **pvarSelectedChildren
);

Parameters

  • pvarSelectedChildren
    [out] The address of a variable that receives a pointer to a SAFEARRAY containing the selected items.

Return Value

Returns S_OK if successful, or an error value otherwise.

See Also

ILegacyIAccessibleProvider, Working with Safe Arrays