IUIAutomationLegacyIAccessiblePattern::GetIAccessible Method

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

Syntax

HRESULT GetIAccessible(      
    IAccessible **ppAccessible
);

Parameters

  • ppAccessible
    [out, retval] The address of a variable that receives a pointer to an IAccessible interface for the accessible object.

Return Value

Returns S_OK if successful, or an error value otherwise.

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 inteface for an element originally supported by a proxy object from OLEACC.dll, or by the UIA-to-MSAA Bridge.