共用方式為


RemoteTextConnection.RegisterThread(UInt32) 方法

定義

註冊遠端桌面用戶端應用程式將呈現遠端 UI 的執行緒。

public:
 virtual void RegisterThread(unsigned int threadId) = RegisterThread;
void RegisterThread(uint32_t const& threadId);
public void RegisterThread(uint threadId);
function registerThread(threadId)
Public Sub RegisterThread (threadId As UInteger)

參數

threadId
UInt32

unsigned int

uint32_t

將呈現遠端應用程式內容之執行緒的識別碼。

備註

當已註冊的執行緒變成前景時,Windows 提供的內建輸入法會與執行緒已註冊的 RemoteTextConnection 進行通訊,而不是與本機視窗通訊。 裝載于尚未透過此方法註冊文字輸入虛擬化之執行緒上的所有本機 UI,都會繼續使用 Windows 提供的內建輸入法。

如果遠端桌面用戶端應用程式在相同的執行緒上裝載本機和遠端 UI,應用程式可能需要在本機 UI 處於焦點時,透過 IsEnabled 屬性停用文字輸入虛擬化。

適用於

另請參閱