uiaLookupId 函数 (uiautomationcoreapi.h)

注意 此函数已弃用。 客户端应用程序应改用 Microsoft UI 自动化 组件对象模型 (COM) 接口。
 
获取可用于需要 PROPERTYID、PATTERNID、CONTROLTYPEID、TEXTATTRIBUTEID 或 EVENTID 的方法的整数标识符。

语法

int UiaLookupId(
  [in] AutomationIdentifierType type,
  [in] const GUID               *pGuid
);

参数

[in] type

类型: AutomationIdentifierType

AutomationIdentifierType 枚举类型的值,该值指定要查找的标识符的类型。

[in] pGuid

类型: GUID*

属性、模式、控件类型、文本属性或事件的唯一标识符的地址。

返回值

类型: int

返回整数标识符。

要求

要求
最低受支持的客户端 Windows XP [仅限桌面应用]
最低受支持的服务器 Windows Server 2003 [仅限桌面应用]
目标平台 Windows
标头 uiautomationcoreapi.h
Library Uiautomationcore.lib
DLL Uiautomationcore.dll

请参阅

概念性

GUID

属性标识符