RemoteTextConnection.RegisterThread(UInt32) Method

Definition

Registers a thread on which the Remote Desktop client application will present remote 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)

Parameters

threadId
UInt32

unsigned int

uint32_t

The ID of a thread on which a remote application's content will be presented.

Remarks

When a registered thread becomes foreground, built-in input methods provided by Windows will communicate with the RemoteTextConnection that the thread was registered on, instead of with the local window. All local UI hosted on threads that have not been registered for text input virtualization via this method will continue to work with built-in input methods provided by Windows.

If a Remote Desktop client application hosts local and remote UI on the same thread, it may be necessary for the application to disable text input virtualization via the IsEnabled property while the local UI is in focus.

Applies to

See also