IUIAutomationLegacyIAccessiblePattern::GetIAccessible method

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

Syntax

HRESULT GetIAccessible(
  IAccessible **ppAccessible
);

Parameters

ppAccessible

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]
Target Platform Windows
Header uiautomationclient.h (include UIAutomation.h)

See Also

IUIAutomationLegacyIAccessiblePattern