mirror of
https://github.com/Devolutions/IronRDP.git
synced 2026-11-23 08:25:56 +00:00
e4a0d17b8e
Expose `GraphicsPipelineClient::request_protocol_reset()` to rebuild graphics state without reconnecting RDP or interrupting other virtual channels. For negotiated V10.3–V10.7, it re-advertises the confirmed capability version and flags, clears surfaces and codec state, and ignores in-flight graphics until the server confirms that version again. Changed flags are accepted; a processing error while awaiting reset confirmation closes the client and subsequent input is rejected until the channel is recreated with a new processor. The alternate `V10_6Err` value is echoed only if previously confirmed. The ACK count restarts because Windows resets its sent-frame count and rejects cumulative post-reset ACKs. ZGFX history and the last output extent remain intact, while pending pixels and bitmap caches are discarded. The caller must send the returned PDU before processing more input and recreate the channel if sending or reset confirmation fails. Unsupported versions and an already pending reset return `None`. This implements the client-side reset described in [MS-RDPEGFX section 3.3.5.19](https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-rdpegfx/a720af02-0a47-44e2-a934-dc8534062b44) and complements the server support in #1833. --------- Co-authored-by: truebest <truebest@users.noreply.github.com>