Skip to content

Add mstsc embedding feasibility analysis based on existing COM/native-host architecture#2

Draft
Copilot wants to merge 4 commits into
mainfrom
copilot/research-mstsc-feasibility
Draft

Add mstsc embedding feasibility analysis based on existing COM/native-host architecture#2
Copilot wants to merge 4 commits into
mainfrom
copilot/research-mstsc-feasibility

Conversation

Copilot AI commented May 21, 2026

Copy link
Copy Markdown

This issue asks whether the project’s current COM-based, WinForms-independent embedding approach (used for WebView1/WebView2) can be extended to mstsc. This PR adds a focused technical analysis of feasibility, implementation strategy, and key risks.

  • What was added

    • New investigation document: docs/mstsc-feasibility.md
  • Repository findings (project-specific)

    • Maps current embedding architecture relevant to mstsc:
      • adapter abstraction (IWebViewAdapter / WebViewAdapter)
      • native host integration (NativeWebViewControlHost)
      • Windows-side COM/HWND lifecycle patterns (WebView1/WebView2 paths)
  • mstsc feasibility conclusion

    • Assesses Remote Desktop ActiveX (mstscax.dll) integration as feasible with medium-high complexity
    • Clarifies that Avalonia-side hosting patterns are reusable; primary difficulty is ActiveX host behavior, lifecycle, focus/input, and compatibility
  • Implementation guidance captured

    • Recommends PoC-first scope:
      • create/embed control
      • connect/disconnect
      • resize/focus/dispose stability
    • Defines key engineering concerns:
      • STA/thread affinity
      • COM/event teardown ordering
      • security defaults (credentials, cert handling, redirection policy)
      • Windows/version dependency boundaries
# 研究:在 Avalonia.Controls.WebView 思路下内嵌 mstsc(Remote Desktop ActiveX)可行性
## 3. 可行性结论
**可行,但复杂度中到高,建议以 PoC 先行。**

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • learn.microsoft.com
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)
  • nuget-feed-all.avaloniaui.net
    • Triggering command: /usr/bin/dotnet dotnet build Avalonia.Controls.WebView.slnx -nologo (dns block)
    • Triggering command: /usr/bin/dotnet dotnet test tests/Avalonia.Controls.WebView.Tests/Avalonia.Controls.WebView.Tests.csproj -nologo (dns block)
  • xpf-nuget-feed.avaloniaui.net
    • Triggering command: /usr/bin/dotnet dotnet build Avalonia.Controls.WebView.slnx -nologo (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI linked an issue May 21, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Investigate feasibility of embedding mstsc client Add mstsc embedding feasibility analysis based on existing COM/native-host architecture May 21, 2026
Copilot AI requested a review from Soar360 May 21, 2026 06:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

研究 mstsc 的可行性

2 participants