Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

UiaIAccessibleFromProvider function

Retrieves an IAccessible implementation that provides Microsoft Active Accessibility data on behalf of a Microsoft UI Automation provider.

Syntax


HRESULT WINAPI UiaIAccessibleFromProvider(
  _In_   IRawElementProviderSimple *pProvider,
  _In_   DWORD dwFlags,
  _Out_  IAccessible **ppAccessible,
  _Out_  VARIANT *pvarChild
);

Parameters

pProvider [in]

Type: IRawElementProviderSimple*

A pointer to the UI Automation object.

dwFlags [in]

Type: DWORD

One of the following values:

UIA_IAFP_DEFAULT
UIA_IAFP_UNWRAP_BRIDGE
ppAccessible [out]

Type: IAccessible**

Receives the pointer to the IAccessible implementation for the provider.

pvarChild [out]

Type: VARIANT*

Receives the child identifier of the accessible element in the lVal member.

Return value

Type: HRESULT

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

Remarks

In most cases, this function retrieves a wrapper object, provided by Windows, that implements IAccessible on behalf of the IRawElementProviderSimple object. If the provided IRawElementProviderSimple pointer is itself a wrapper object, this function retrieves the wrapped IAccessible pointer and returns that instead, to prevent the creation of multiple layers of wrappers.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

UIAutomationCoreApi.h

Library

Uiautomationcore.lib

DLL

Uiautomationcore.dll

See also

Functions for Providers
UiaProviderFromIAccessible

 

 

Community Additions

Show:
© 2014 Microsoft