IronRDP icon indicating copy to clipboard operation
IronRDP copied to clipboard

feat(connector): expose SUPPORT_DYN_VC_GFX_PROTOCOL early-cap flag for EGFX clients

Open GlassOnTin opened this issue 7 months ago • 1 comments

Currently, early_capability_flags in the GCC core data is built from a fixed set in connection.rs. Clients that want to use the Graphics Pipeline Extension (MS-RDPEGFX) — by attaching a DvcClientProcessor for Microsoft::Windows::RDS::Graphics — have no way to set SUPPORT_DYN_VC_GFX_PROTOCOL without forking the connector, and modern Windows servers won't open the EGFX channel unless the client advertises support.

This PR adds an opt-in Config.support_dyn_vc_gfx_protocol: bool (default false). When set, the flag is OR'd into early_capability_flags alongside the existing WANT_32_BPP_SESSION conditional. Existing consumers are unaffected; the doc comment includes a safety note that setting this without an EGFX implementation will cause Windows to stop sending legacy bitmap updates, leaving the desktop blank.

Used downstream by Haven (an Android RDP/VNC client) which implements EGFX with ClearCodec + RemoteFxProgressive decoders; this lets us drop a vendored fork of ironrdp-connector we currently carry just for this one flag.

Default false to preserve current behaviour. cargo check --workspace clean — six other in-tree Config { … } builders updated with the default-false field.

GlassOnTin avatar Apr 30 '26 08:04 GlassOnTin

Reading through, this is the smallest possible fix and the doc-comment captures the foot-gun precisely. Without wiring a DvcClientProcessor for the Graphics channel, modern Windows servers stop sending legacy bitmap updates entirely and the desktop goes blank, which is exactly the GRD case in #1232 and the failure mode every downstream EGFX client hits.

No conflict with #1098 (multitransport bootstrapping) on my read of the GCC block area, just two independent flags being OR'd in. Looks good from the server-side perspective too: any IronRDP server that already speaks EGFX (lamco-rdp-server, GRD) sees this flag and routes graphics through DVC as expected.

glamberson avatar Apr 30 '26 15:04 glamberson