IAccessibleHostingElementProviders::GetEmbeddedFragmentRoots 方法 (uiautomationcore.h)

检索所有无窗口 Microsoft ActiveX 控件的 Microsoft Active 辅助功能提供程序,这些控件具有 Microsoft UI 自动化 提供程序实现,并且托管在实现 IAccessibleHostingElementProviders 接口的 Microsoft Active Accessibility 对象中。

语法

HRESULT GetEmbeddedFragmentRoots(
  [out, retval] SAFEARRAY **pRetVal
);

参数

[out, retval] pRetVal

类型: SAFEARRAY**

接收 IRawElementProviderFragmentRoot 接口指针。

返回值

类型: HRESULT

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

注解

无窗口 ActiveX 控件的容器在实现 IAccessible 接口的同一对象上实现此方法。 调用此方法时,将查询 IRawElementProviderFragmentRoot 指针的每个包含的无窗口 ActiveX 控件,然后将该指针添加到安全数组。

此方法不应包括不实现 IRawElementProviderFragmentRoot 的任何提供程序。

要求

要求
最低受支持的客户端 Windows 8 [桌面应用 |UWP 应用]
最低受支持的服务器 Windows Server 2012 [桌面应用 |UWP 应用]
目标平台 Windows
标头 uiautomationcore.h (包括 UIAutomation.h)

另请参阅

IAccessibleHostingElementProviders