IUIAutomationMultipleViewPattern::GetCurrentSupportedViews 方法 (uiautomationclient.h)

检索特定于控件的视图标识符的集合。

语法

HRESULT GetCurrentSupportedViews(
  [out, retval] SAFEARRAY **retVal
);

参数

[out, retval] retVal

类型: SAFEARRAY**

接收指向视图标识符数组的指针。

返回值

类型: HRESULT

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

要求

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

另请参阅

使用安全数组的最佳做法

IUIAutomationMultipleViewPattern