Share via


SynchronizedInputPattern_Cancel函式 (uiautomationcoreapi.h)

注意 此函式已被取代。 用戶端應用程式應該改用 Microsoft 使用者介面自動化 元件物件模型 (COM) 介面。
 
導致 使用者介面自動化 提供者停止接聽滑鼠或鍵盤輸入。

語法

HRESULT SynchronizedInputPattern_Cancel(
  [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