[PR #2611] Add a project that produces conpty.dll #25017

Open
opened 2026-01-31 09:06:44 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/2611

State: closed
Merged: Yes


Summary of the Pull Request

This pull request introduces a copy of the code from kernel32.dll that implements CreatePseudoConsole, ClosePseudoConsole and ResizePseudoConsole. Apart from some light modifications to fit into the infrastructure in this project and support launching OpenConsole.exe, it is intended to be 1:1 with the code that ships in Windows.

Any guideline violations in this code are likely intentional. Since this was built into kernel32, it used the STL only very sparingly.

kernel32 is on the default link line, so we need to figure out how to get included before it. Either that, or we should export different function names.

References

#1130

PR Checklist

  • Closes #xxx
  • Tests added/passed
  • Requires documentation to be updated
  • I've discussed this with core contributors already.

Validation Steps Performed

Launched vtpipeterm.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/2611 **State:** closed **Merged:** Yes --- ## Summary of the Pull Request This pull request introduces a copy of the code from kernel32.dll that implements `CreatePseudoConsole`, `ClosePseudoConsole` and `ResizePseudoConsole`. Apart from some light modifications to fit into the infrastructure in this project and support launching `OpenConsole.exe`, it is intended to be 1:1 with the code that ships in Windows. Any guideline violations in this code are likely intentional. Since this was built into kernel32, it used the STL only _very sparingly._ `kernel32` is on the default link line, so we need to figure out how to get included before it. Either that, or we should export different function names. ## References #1130 ## PR Checklist * [ ] Closes #xxx * [ ] Tests added/passed * [ ] Requires documentation to be updated * [x] I've discussed this with core contributors already. ## Validation Steps Performed Launched vtpipeterm.
claunia added the pull-request label 2026-01-31 09:06:44 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#25017