IUIAutomationLegacyIAccessiblePattern::GetIAccessible method

Retrieves an IAccessible object that corresponds to the Microsoft UI Automation element.

Syntax


HRESULT GetIAccessible(
  [out, retval] IAccessible **ppAccessible
);

Parameters

ppAccessible [out, retval]

Type: IAccessible**

Receives a pointer to an IAccessible interface for the accessible object.

Return value

Type: HRESULT

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

Remarks

This method returns NULL if the underlying implementation of the UI Automation element is not a native Microsoft Active Accessibility server; that is, if a client attempts to retrieve the IAccessible interface for an element originally supported by a proxy object from OLEACC.dll, or by the UIA-to-MSAA Bridge.

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

UIAutomationClient.h (include UIAutomation.h)

IDL

UIAutomationClient.idl

See also

IUIAutomationLegacyIAccessiblePattern

 

 

Show: