mirror of
https://github.com/Devolutions/IronRDP.git
synced 2026-11-24 01:04:51 +00:00
98413f16cc
Hosts written against Microsoft's mstscax control (RDM, MsRdpEx, scripting hosts, mstsc-style shells) still hit members that IronRDP's ActiveX control left unimplemented. A comparison against mstscax.dll 10.0.26100 (its embedded MSTSCLib type library, AdvancedSettings vtable and property handlers) identified the most-used gaps; this change closes six of them. Late-bound Automation: every published MSTSCLib member of the control and of the Advanced, Secured, Transport and RemoteProgram settings objects is reachable through `IDispatch` by name and DISPID, with arguments coerced to the published Automation types and calls routed to the existing vtable slots through `DispCallFunc`. The control also implements `IProvideClassInfo2`, `IQuickActivate` and `IPersistPropertyBag`/`IPersistPropertyBag2`. No type library is created or registered, so `GetTypeInfo` still returns `E_NOTIMPL`. Events: the control raises `OnRequestContainerMinimize`, `OnLogonError`, `OnUserNameAcquired`, `OnNetworkStatusChanged`, `OnRemoteProgramDisplayed`, `OnRemoteWindowDisplayed`, `OnIdleTimeoutNotification`, `OnFocusReleased` and `OnMouseInputModeChanged` with mstscax's argument layout, and the modern facade gains `OnNetworkStatusChanged` and `OnKeyCombinationPressed`. Events without an IronRDP source stay unraised and are documented. Keyboard and input policy: the `HotKey*` and focus-release hotkeys, `AcceleratorPassthrough`, `SasSequence`, `DisableCtrlAltDel`, `DoubleClickDetect` and `RelativeMouseMode` follow mstscax defaults, and the extended properties `AllowRelativeMouseMode`, `IgnoreServerGeneratedMouseMoves`, `IgnoreClientSideMouseInput`, `DisableFullScreenHotkey` and `AllowSasSequenceTransmission` are honored. Relative pointer input is sent only when the server's Input Capability Set allows it, and the client then advertises `RNS_UD_CS_RELATIVE_MOUSE_INPUT` with RDP version 10.12, the lowest version for which servers honor it. AdvancedSettings compatibility: deprecated slots that mstscax answers with `S_FALSE` now do the same instead of failing with `E_NOTIMPL`, and `overallConnectionTimeout`, `singleConnectionTimeout`, `shutdownTimeout`, `MinutesToIdleTimeout` and `CanAutoReconnect` are wired to the client. Extended settings and `.rdp` properties: `IMsRdpExtendedSettings` accepts the mstscax names that map to IronRDP behavior (desktop and device scale, physical size and orientation, selected monitors, audio devices, location, touch, manual clipboard sync, `RemoteSessionId` and others) and documents the rest. The connector can advertise physical size, orientation, device scale and Client Monitor Extended Data (only when it describes every monitor of Client Monitor Data), and the `.rdp` mapping reads `session bpp`, `devicescalefactor`, `connection type`, `redirectsmartcards` and `redirectlocation`. `IMsRdpClientShell` and publisher trust: `MsRdpClientShell` returns a working `.rdp` record store. Its `Launch` applies the records to the owning control and connects in-process instead of starting `mstsc.exe`, subject to the `DisableClientLaunchingFromActiveXControl` policy. `ApplySettings` verifies signed `.rdp` files with the Windows client's format and policies, and `ShowRedirectionWarningDialog`, `RedirectionWarningType`, `WarnAboutPrinterRedirection`, `LaunchedViaClientShellInterface` and `PublisherCertificateChain` drive a fail-closed consent prompt before connecting. A signed file whose signature no longer matches is rejected, where Windows downgrades it to an unverifiable publisher. Save Session Info logon errors now decode NTSTATUS failure types ([MS-RDPBCGR] 2.2.10.1.1.4.1.1), which previously ended the session with a decode error, and relative mouse fast-path events now carry their body. The FFI reports the new session outputs as `ActiveStageOutputType::LogonErrors` (17) and `ActiveStageOutputType::SessionId` (18), after the existing `WindowSurfaceUpdates` (15) and `ServerRedirection` (16). 🤖 Generated with [Claude Code](https://claude.com/claude-code) BREAKING CHANGE: `ironrdp_session::ActiveStageOutput` and `ironrdp_session::x224::ProcessorOutput` gain `LogonErrors` and `SessionId` variants; `ironrdp_client::rdp::RdpOutputEvent` gains `ServerInputFlags`, `LogonError`, `NetworkCharacteristics` and `RemoteSessionId` variants; `ironrdp_connector::Config` and `ironrdp_client::config::ChannelConfig` have new public fields; `ironrdp_pdu::rdp::session_info::LogonErrorNotificationType` gains an `NtStatus(u32)` variant and is no longer `#[repr(u32)]`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
92 lines
3.6 KiB
TOML
92 lines
3.6 KiB
TOML
# Typos CLI configuration file
|
|
# ============================
|
|
# ## Running `typos-cli`.
|
|
# Execute `cargo xtask check typos` to run `typos-cli` with the same configuration as on CI.
|
|
#
|
|
# ## Updating `typos-cli`.
|
|
# Please regularly update `typos-cli` to the latest version. If a new version is available, please
|
|
# update the version string in `xtask\src\bin_version.rs`.
|
|
#
|
|
# ## How to properly fix `typos-cli` errors:
|
|
# 1. If a typo is obvious: just fix it.
|
|
# 2. False-positive in the binary/test asset/generated file: add it to `extend-exclude` glob list.
|
|
# 3. False-positive in the source code: (in order of preference)
|
|
# 3.1. Place correction in `extend-identifiers` if a false-positive is in the identifier name.
|
|
# 3.2. Place correction in `extend-words` if a false-positive is in the arbitrary word (docs,
|
|
# comments, etc.) or text was not recognized as an identifier.
|
|
# 3.3. Place regex in `extend-ignore-re` if the correction cannot be expressed as a single word.
|
|
# 3.4. Last resort: add file ignore to `extend-exclude` list.
|
|
|
|
[files]
|
|
extend-exclude = ["*.bin", "*.bmp", "package-lock.json"]
|
|
|
|
[default.extend-words]
|
|
# "look-alikes" is a legitimate hyphenated word
|
|
alikes = "alikes"
|
|
# Retransmission timeout, the RFC 6298 term used by the RDP-UDP state machine.
|
|
rto = "rto"
|
|
RTO = "RTO"
|
|
# Windows PostScript printer driver name.
|
|
Imagesetter = "Imagesetter"
|
|
# Windows Plug and Play field names use this abbreviation.
|
|
Pn = "Pn"
|
|
# "writeable" is an accepted alternate spelling of "writable".
|
|
writeable = "writeable"
|
|
# CBOR Object Signing and Encryption (WebAuthn COSE algorithms / Windows APIs).
|
|
COSE = "COSE"
|
|
cose = "cose"
|
|
# Microsoft's spelling of the IMsTscAdvancedSettings::BitmapPeristence ActiveX property.
|
|
Peristence = "Peristence"
|
|
# Windows notification icon callback messages (`NIN_SELECT`, `NIN_BALLOONUSERCLICK`).
|
|
NIN = "NIN"
|
|
|
|
[default.extend-identifiers]
|
|
# COM FORMATETC target-device field.
|
|
ptd = "ptd"
|
|
# Retransmission timeout, the RFC 6298 term used by the RDP-UDP state machine.
|
|
rto = "rto"
|
|
# Windows TRACKMOUSEEVENT flag.
|
|
TME_LEAVE = "TME_LEAVE"
|
|
# Misspelled property in Microsoft's published IMsRdpClientAdvancedSettings interface.
|
|
BitmapPeristence = "BitmapPeristence"
|
|
# WebAuthn COSE algorithm parameter identifiers / locals.
|
|
cose_params = "cose_params"
|
|
WEBAUTHN_COSE_CREDENTIAL_PARAMETER = "WEBAUTHN_COSE_CREDENTIAL_PARAMETER"
|
|
WEBAUTHN_COSE_CREDENTIAL_PARAMETER_CURRENT_VERSION = "WEBAUTHN_COSE_CREDENTIAL_PARAMETER_CURRENT_VERSION"
|
|
WEBAUTHN_COSE_CREDENTIAL_PARAMETERS = "WEBAUTHN_COSE_CREDENTIAL_PARAMETERS"
|
|
|
|
[default]
|
|
extend-ignore-re = [
|
|
# Ignore false-positives for auth tokens in the following file:
|
|
# - web-client\iron-svelte-client\src\lib\login\login.svelte
|
|
"(?m)let authtoken =\\s+'.+';\\s?$",
|
|
|
|
# False-positive fix for Base64 ironrdp-testsuite-core\tests\pcb.rs:
|
|
# URL-safe Base64 with 83 and 84 characters
|
|
"\\b[a-zA-Z0-9_-]{82,83}\\b",
|
|
|
|
# False-positive fix for test case name at ironrdp-testsuite-core\tests\graphics\rle.rs:
|
|
"\\bcase::[a-z0-9]{33}\\b",
|
|
|
|
# False-positive fix for intentional typo in ironrdp-graphics\src\zgfx\mod.rs:
|
|
"\\bfox jumps ove\\b",
|
|
|
|
"cll",
|
|
"CLL",
|
|
|
|
# False-positive fix for compression length variable in ironrdp-bulk benchmarks:
|
|
"\\bclen\\b",
|
|
|
|
# False-positive fix for literal test data "BA" in ironrdp-bulk tests:
|
|
"\\bBA\\b",
|
|
"\\bba\\b",
|
|
"hash_ba",
|
|
|
|
# Commit hashes in CHANGELOG.md files.
|
|
"\\b[0-9a-f]{7,40}\\b",
|
|
|
|
# Hex dumps in eight-digit uppercase groups, as in the protocol specification examples
|
|
# (MS-RDPEVOR and MS-RDPEGT fixtures in ironrdp-testsuite-core).
|
|
"\\b[0-9A-F]{8}\\b",
|
|
]
|