Skip to content

RdpClient11 ​

Provides safe, logged access to the properties, methods, and events exposed by the underlying RDP ActiveX control.

Type ​

csharp
RoyalApps.Community.Rdp.WinForms.Controls.Clients.RdpClient11

Properties ​

AcceleratorPassthrough (bool) ↗ ​

Specifies whether keyboard accelerators should be passed to the server.

AllowBackgroundInput (bool) ↗ ​

Specifies whether the client can accept input while it does not have focus.

AudioCaptureRedirectionMode (bool) ↗ ​

Specifies whether the default audio input device is redirected from the client to the remote session.

AudioQualityMode (AudioQualityMode) ↗ ​

Specifies the audio quality mode.

AudioRedirectionMode (AudioRedirectionMode) ↗ ​

Specifies how audio output is handled for the remote session.

AuthenticationLevel (AuthenticationLevel) ​

Specifies the server authentication level used for the connection.

AuthenticationServiceClass (string) ↗ ​

Specifies the service principal name (SPN) to use for authentication to the server.

AxName (string) ​

Gets or sets the name of the underlying RDP ActiveX implementation, for example mstsc or msrdc.

BandwidthDetection (bool) ↗ ​

Specifies whether bandwidth changes are detected automatically.

BitmapCaching (bool) ↗ ​

Specifies whether bitmap caching is enabled. Persistent caching can improve performance but requires additional disk space.

ClientProtocolSpec (ClientSpec) ​

Specifies the RDP protocol profile used between the client and the server.

Compression (bool) ↗ ​

Specifies whether compression is enabled.

ConnectionState (ConnectionState) ​

Gets the current connection state of the control.

ConnectToAdministerServer (bool) ↗ ​

Specifies whether the ActiveX control should attempt to connect to the server for administrative purposes.

ContainerHandledFullScreen (int) ↗ ​

Specifies whether the container-handled full-screen mode is enabled.

DesktopScaleFactor (uint) ↗ ​

Gets or sets the desktop scale factor for the monitor.

DeviceScaleFactor (uint) ↗ ​

Gets or sets the device scale factor for the monitor.

DisableClickDetection (bool) ​

When true, a click in the remote session does not focus the control and does not trigger the IRdpClient.OnClientAreaClicked event.

DisableCredentialsDelegation (bool) ↗ ​

When true, reusable credentials are not delegated to the remote server.

DisableUdpTransport (bool) ​

Disables RDP UDP transport and forces TCP transport. This is commonly useful when connecting through UDP-based VPN links.

DisplayConnectionBar (bool) ↗ ​

Specifies whether to use the connection bar. The default value is true, which enables the property.

EnableAutoReconnect (bool) ↗ ​

Specifies whether the client control should reconnect automatically after a network interruption.

EnableHardwareMode (bool) ​

When true, hardware-assisted graphics decoding is attempted.

EnableMouseJiggler (bool) ​

When true, the session is kept alive through periodic, non-intrusive input simulation to help avoid idle-time disconnects.

EnableRdsAadAuth (bool) ↗ ​

Specifies whether Microsoft Entra ID is used to authenticate to the remote PC.

The host executable must embed a Windows compatibility manifest that declares Windows 10 and Windows 11 support with the supportedOS GUID {8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}.

Without this declaration, the ActiveX control can accept EnableRdsAadAuth while presenting the classic Windows Security credential prompt instead of the Microsoft Entra Web Account Manager flow.

EnableWindowsKey (bool) ↗ ​

Specifies whether the Windows key can be used in the remote session.

GatewayCredSharing (bool) ↗ ​

Specifies whether the same credentials should be reused for both the RD Gateway server and the target session host.

GatewayCredsSource (GatewayCredentialSource) ↗ ​

Specifies the Remote Desktop Gateway (RD Gateway) authentication method.

GatewayDomain (string) ↗ ​

Specifies the domain name used to authenticate to the Remote Desktop Gateway (RD Gateway) server.

GatewayHostname (string) ↗ ​

Specifies the host name of the Remote Desktop Gateway (RD Gateway) server.

GatewayPassword (string) ↗ ​

Specifies the password used to authenticate to the Remote Desktop Gateway (RD Gateway) server.

GatewayProfileUsageMethod (GatewayProfileUsageMethod) ↗ ​

Specifies whether to use default Remote Desktop Gateway (RD Gateway) settings.

GatewayUsageMethod (GatewayUsageMethod) ↗ ​

Specifies when to use a Remote Desktop Gateway (RD Gateway) server.

GatewayUsername (string) ↗ ​

Specifies the user name used to authenticate to the Remote Desktop Gateway (RD Gateway) server.

GatewayUserSelectedCredsSource (GatewayCredentialSource) ↗ ​

Specifies the user-selected Remote Desktop Gateway (RD Gateway) credential source.

GrabFocusOnConnect (bool) ↗ ​

Specifies whether the client control should have focus while connecting. The control does not attempt to grab focus from a window running in a different process.

KdcProxyUrl (string?) ​

Gets or sets the KDC proxy URL used by MsRdpEx for Kerberos over HTTPS scenarios.

KeepAliveInterval (int) ↗ ​

Gets or sets the interval, in milliseconds, between keep-alive packets.

KeyboardHookMode (int) ↗ ​

Specifies how Windows keyboard shortcuts, for example ALT+TAB, are redirected to the remote session.

KeyBoardLayoutStr (string) ↗ ​

Specifies the input locale identifier, formerly called the keyboard layout, used for the connection.

LoadBalanceInfo (string) ↗ ​

Specifies the load-balancing cookie written into the initial X.224 connection request.

Logger (ILogger) ​

Gets or sets the logger used by the RDP client wrapper.

MaximizeShell (bool) ↗ ​

Specifies whether programs launched with IRdpClient.StartProgram should be maximized.

MaxReconnectAttempts (int) ↗ ​

Specifies the number of times to try to reconnect during automatic reconnection. Valid values are 0 to 200.

MouseJigglerInterval (int) ​

Gets or sets the interval, in seconds, between mouse-jiggler keep-alive actions.

MouseJigglerMethod (KeepAliveMethod) ​

Gets or sets the mouse-jiggler method. MouseMove simulates mouse input and KeyboardInput simulates an F15 key press.

NetworkConnectionType (uint) ↗ ​

Gets or sets the network connection type reported to the server.

NetworkLevelAuthentication (bool) ↗ ​

Specifies whether the Credential Security Support Provider (CredSSP) and network-level authentication are enabled for this connection. Availability depends on the underlying ActiveX client version.

Password (string?) ↗ ​

Sets the Remote Desktop ActiveX control password in plaintext form. After it is set, it cannot be retrieved in plaintext form.

PasswordContainsSmartCardPin (bool) ​

Specifies whether the password contains a smart card PIN.

PCB (string) ↗ ​

Specifies the pre-connection BLOB (PCB) value sent to the server before connecting.

PerformanceFlags (int) ↗ ​

Specifies a set of features that can be set at the server to improve performance.

PinConnectionBar (bool) ↗ ​

Specifies whether the UI connection bar is pinned in the lowered state.

PluginDlls (string) ↗ ​

Specifies the comma-separated names of virtual channel plug-in DLLs to load.

Port (int) ↗ ​

Specifies the connection port. The default value is 3389.

PublicMode (bool) ↗ ​

Specifies whether public mode is enabled. Public mode prevents the client from caching user data locally.

RdpExDll (string) ​

Gets or sets the path to the MsRdpEx hook library used by the underlying ActiveX client.

RedirectClipboard (bool) ↗ ​

Specifies whether clipboard redirection is enabled.

RedirectDevices (bool) ↗ ​

Specifies whether general device redirection is enabled.

RedirectDirectX (bool) ↗ ​

Specifies whether DirectX redirection is enabled.

RedirectDrives (bool) ↗ ​

Specifies whether drive redirection is allowed.

RedirectedAuthentication (bool) ​

When true, authentication is redirected back to the local device. This property and IRdpClient.DisableCredentialsDelegation must both be enabled for IRdpClient.RemoteCredentialGuard.

RedirectLocation (bool) ↗ ​

Specifies whether location redirection is allowed.

RedirectPorts (bool) ↗ ​

Specifies whether local port redirection, for example COM and LPT, is allowed.

RedirectPOSDevices (bool) ↗ ​

Specifies whether Point of Service device redirection is enabled.

RedirectPrinters (bool) ↗ ​

Specifies whether printer redirection is allowed.

RedirectSmartCards (bool) ↗ ​

Specifies whether smart card redirection is allowed.

RelativeMouseMode (bool) ↗ ​

Specifies whether the mouse should use relative mode instead of absolute mode.

RestrictedLogon (bool) ​

When true, restricted logon mode is enabled. This is one of the building blocks used by restricted administration scenarios together with IRdpClient.DisableCredentialsDelegation.

ShowConnectionInformation (bool) ​

Shows the Connection Information dialog.

SmartSizing (bool) ↗ ​

Specifies whether the display should be scaled to fit the client area of the control. This property can be changed while connected.

StartProgram (string) ↗ ​

Specifies the program to be started on the remote server upon connection.

UseRedirectionServerName (bool) ↗ ​

Specifies whether the redirected server name should be used when the broker redirects the connection.

VideoPlaybackMode (VideoPlaybackMode) ↗ ​

Specifies whether video decoding and rendering are redirected to the client.

WorkDir (string) ↗ ​

Specifies the working directory of the start program.

Events ​

OnClientAreaClicked ​

Handler Type: EventHandler?

Raised when the user clicks inside the remote desktop session and IRdpClient.DisableClickDetection is disabled.

Methods ​

GetErrorDescription(Int32) ​

Returns: string. The error message text.

Retrieves the error description for the session disconnect events.

Parameters

  • disconnectReasonCode (int): The disconnect code.

RaiseClientAreaClicked() ​

Returns: void

Raises the OnClientAreaClicked event.

Back to API index

MIT Licensed