GetSelection method
Collapse the table of content
Expand the table of content

ISelectionProvider::GetSelection method

Retrieves a Microsoft UI Automation provider for each child element that is selected.

Syntax


HRESULT GetSelection(
  [out, retval] SAFEARRAY **pRetVal
);

Parameters

pRetVal [out, retval]

Type: SAFEARRAY**

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

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client

Windows XP [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2003 [desktop apps | Windows Store apps]

Header

UIAutomationCore.h (include UIAutomation.h)

IDL

UIAutomationCore.idl

See also

Reference
ISelectionProvider
Conceptual
UI Automation Providers Overview
Best Practices for Using Safe Arrays

 

 

Show:
© 2016 Microsoft