Create a "conpty" framework package to bundle up the PseudoConsole APIs and conhost #1502

Open
opened 2026-01-30 22:29:00 +00:00 by claunia · 0 comments
Owner

Originally created by @DHowett-MSFT on GitHub (Jun 4, 2019).

This deliverable tracks pulling out the source for the PseudoConsole API set.

Rationale

Right now, we're using conhost.exe directly as a pseudoconsole host. If we ship it as a framework package, we can switch to the "official" PseudoConsole APIs (CreatePseudoConsole, ClosePseudoConsole, etc.) and offer conpty as an independently-upgradable package on which WT and third party applications can depend. This will allow us to more fully undock from the OS release cycle.

Requirements

  • Document/open HPCON
  • Translate winconpty.c (which currently lives in kernelbase) from C to C++
    • produce conpty.dll, which hosts the three pseudoconsole APIs
  • Produce a framework package

see also: #3577

Originally created by @DHowett-MSFT on GitHub (Jun 4, 2019). This deliverable tracks pulling out the source for the PseudoConsole API set. ### Rationale Right now, we're using conhost.exe directly as a pseudoconsole host. If we ship it as a framework package, we can switch to the "official" PseudoConsole APIs (`CreatePseudoConsole`, `ClosePseudoConsole`, etc.) and offer conpty as an independently-upgradable package on which WT and third party applications can depend. This will allow us to more fully undock from the OS release cycle. ### Requirements * [x] Document/open `HPCON` * [x] Translate winconpty.c (which currently lives in kernelbase) from C to C++ * [x] produce `conpty.dll`, which hosts the three pseudoconsole APIs * [ ] Produce a framework package see also: #3577
claunia added the Issue-FeatureNeeds-Tag-FixArea-InteropProduct-Conpty labels 2026-01-30 22:29:00 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#1502