mirror of
https://github.com/Devolutions/IronRDP.git
synced 2026-11-23 08:25:56 +00:00
4f01653c70
Allow connecting to a Hyper-V virtual machine (VMConnect) by setting the new `vmconnect` field of the connector `Config` to the target VM ID. When set, the connection sequence follows the flow expected by Hyper-V hosts instead of the regular one: 1. A V2 preconnection blob containing "<vm-id>;EnhancedMode=1" is sent (new `PreconnectionBlob` initial connector state). 2. The security upgrade (TLS) and CredSSP are performed immediately. 3. The X.224 connection initiation is only performed afterwards, over the secured channel, without a routing cookie. The regular (non-VMConnect) sequence is unchanged. Additionally, the extended client info packet now always encodes the auto-reconnect cookie length (empty when unset) and the reserved1 and reserved2 fields once the performance flags are present, as some servers (e.g. Hyper-V hosts) expect them. The decoder already accepted them. The `--vmconnect <ID>` CLI option is added to ironrdp-viewer, and a `vmconnect` config setter is exposed through the FFI. https://claude.ai/code/session_01YR2dvq8AVtyMb6F4XKeZAZ
IronRDP FFI
Diplomat-based FFI for IronRDP.
Currently, only the .NET target is officially supported.
How to build
-
Install required tools:
cargo xtask ffi install- For .NET, note that
dotnetis also a requirement that you will need to install on your own.
- For .NET, note that
-
Build the shared library:
cargo xtask ffi build(alternatively, in release mode:cargo xtask ffi build --release) -
Build the bindings:
cargo xtask ffi bindings
At this point, you may build and run the examples for .NET:
dotnet run --project Devolutions.IronRdp.ConnectExampledotnet run --project Devolutions.IronRdp.AvaloniaExample