Share via


LegacyIAccessiblePattern_DoDefaultAction函式 (uiautomationcoreapi.h)

注意 此函式已被取代。 用戶端應用程式應該改用 Microsoft UI 自動化元件物件模型 (COM) 介面。
 
執行 專案的 Microsoft Active Accessibility 預設動作。

語法

HRESULT LegacyIAccessiblePattern_DoDefaultAction(
  [in] HUIAPATTERNOBJECT hobj
);

參數

[in] hobj

類型: HUIAPATTERNOBJECT

控制項模式物件。

傳回值

類型: HRESULT

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

規格需求

   
最低支援的用戶端 Windows 7、Windows Vista SP2 和 Platform Update for Windows Vista、Windows XP 含 SP3 和適用于 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