Share via


LegacyIAccessiblePattern_GetIAccessible函式 (uiautomationcoreapi.h)

注意 此函式已被取代。 用戶端應用程式應該改用 Microsoft 使用者介面自動化 元件物件模型 (COM) 介面。
 
擷取對應至 使用者介面自動化 專案的 IAccessible 物件。

語法

HRESULT LegacyIAccessiblePattern_GetIAccessible(
  [in]  HUIAPATTERNOBJECT hobj,
  [out] IAccessible       **pAccessible
);

參數

[in] hobj

類型: HUIAPATTERNOBJECT

控制件模式物件。

[out] pAccessible

類型: IAccessible**

接收可存取物件 之 IAccessible 介面指標的變數位址。

傳回值

類型: HRESULT

如果成功或錯誤值,則傳回S_OK。

規格需求

需求
最低支援的用戶端 Windows 7、Windows Vista sp2 和 Platform Update for Windows Vista、Windows XP with SP3 和 Platform Update for 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
標頭 uiautomationcoreapi.h
程式庫 Uiautomationcore.lib
Dll Uiautomationcore.dll