ConPTY Version probing #19112
Replies: 3 comments 14 replies
-
As a good Microsoft employee, I have to repeat our official recommendation against testing for version numbers in place of feature detection. We would never! 😏
There is not. Is there anything in particular you'd like to know?
"Yes", but for both old and new versions. Support for overlapped IO was only added late last year (#17510) which was after the feature cutoff for Windows 11 24H2 (build 26100). It'll be part of the next big Windows OS update. Maybe that could be 26H2? There are no official dates for that yet.
I believe so. I've only ever tried that with ConPTY after #17510 merged though. I currently don't see how it wouldn't work with older ConPTY versions though.
You don't have to, but if you have to use synchronous pipes is there another way to do it correctly? After all, your read/write can legitimately block indefinitely (backpressure / pipe full, etc.). It depends on your use case!
More specifically, it sends a
In this case I do recommend feature detection for our new I recommend doing a Let me know if I forgot anything or if you have any other questions! |
Beta Was this translation helpful? Give feedback.
-
@lhecker Thanks for this very extensive reply and for updating the docs! I've adapted my code accordingly.
The
Do you have any hunch what could cause that behavior? |
Beta Was this translation helpful? Give feedback.
-
All my questions are answered. Thanks lhecker++ once more! I'm closing this discussion. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
This is more of a question than a feature request.
I'm currently working on adding PTY support to libuv. Bundling ConPTY is not an option, so I have to work with the version kernel32.dll gives me. There are some relevant developments in the last few years/months.
ConptyReleasePseudoConsole
(#14544)How do I know which features are available in the ConPTY version bundled with Windows? Is there some version number I can retrieve? Is there a Matrix of Windows version and ConPTY version?
Also: Is there any documentation on how to use these older ConPTY versions? I find it pretty difficult to find any in-depth information on this. For example, here are some of the questions I've stumbled over:
CTRL-C
to the process.)Beta Was this translation helpful? Give feedback.
All reactions