共用方式為


ITfConfigureSystemKeystrokeFeed::EnableSystemKeystrokeFeed 方法 (msctf.h)

讓 TSF 管理員在 DisableSystemKeystrokeFeed 停用之後處理按鍵。

Syntax

HRESULT EnableSystemKeystrokeFeed();

傳回值

這個方法可以傳回下列其中一個值。

描述
S_OK
此方法成功。
E_UNEXPECTED
沒有對 DisableSystemKeystrokeFeed 的對應呼叫。

備註

根據預設,TSF 管理員會處理擊鍵,並將其傳遞至文字服務。 應用程式會呼叫 DisableSystemKeystrokeFeed 來防止此情況。

DisableSystemKeystrokeFeed的呼叫是累積的,因此每次對DisableSystemKeystrokeFeed的呼叫都需要後續呼叫EnableSystemKeystrokeFeed。 如果DisableSystemKeystrokeFeed 多次呼叫 DisableSystemKeystrokeFeed,呼叫EnableSystemKeystrokeFeed將不會啟用按鍵處理。

需求

   
最低支援的用戶端 Windows 2000 專業版 [傳統型應用程式 |UWP 應用程式]
最低支援的伺服器 Windows 2000 Server [傳統型應用程式 |UWP 應用程式]
目標平台 Windows
標頭 msctf.h
Dll Msctf.dll
可轉散發套件 Windows 2000 專業版上的 TSF 1.0

另請參閱

ITfConfigureSystemKeystrokeFeed 介面ITfConfigureSystemKeystrokeFeed::D isableSystemKeystrokeFeed