IAccessibleEx::ConvertReturnedElement 方法 (uiautomationcore.h)

检索作为属性值返回的元素的 IAccessibleEx 接口。

语法

HRESULT ConvertReturnedElement(
  [in]  IRawElementProviderSimple *pIn,
  [out] IAccessibleEx             **ppRetValOut
);

参数

[in] pIn

类型: IRawElementProviderSimple*

指向作为属性检索的 IRawElementProviderSimple 接口的指针。

[out] ppRetValOut

类型: IAccessibleEx**

接收指向元素的 IAccessibleEx 接口的指针。

返回值

类型: HRESULT

如果该方法成功,则返回 S_OK。 否则,将返回 HRESULT 错误代码。

注解

此方法通过 Microsoft UI 自动化 与 Microsoft Active Accessibility 之间的桥实现。 将 ppRetValOut 设置为 NULL 后,大多数其他实现应返回E_NOTIMPL。

要求

要求
最低受支持的客户端 Windows 7、带 SP2 的 Windows Vista 和适用于 Windows Vista 的平台更新、带 SP3 的 Windows XP 和适用于 Windows Vista 的平台更新 [桌面应用 |UWP 应用]
最低受支持的服务器 Windows Server 2008 R2、Windows Server 2008 SP2 和 Platform Update for Windows Server 2008、Windows Server 2003 SP2 和 Platform Update for Windows Server 2008 [桌面应用 |UWP 应用]
目标平台 Windows
标头 uiautomationcore.h (包括 UIAutomation.h)

另请参阅

IAccessibleEx