microsoft / microsoft/terminal

Using ConPTY with CreateProcessWithLogon and CreateProcessWithToken

Open
#11,865 4 comments 3 reactions 0 assignees View on GitHub
Area-Server Issue-Feature Product-Conpty
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

The documentation only covers same-user scenario with `CreateProcess` function. There is no mention whether `CreatePseudoConsole` also works with `CreateProcessWithLogon`, `CreateProcessWithToken` and similar functions.

It seems as if this scenario is not supported. `CreateProcessWithLogon` fails with `ERROR_INVALID_PARAMETER` (87) message. However, given how cryptic the message is, the underlying issue might be also elsewhere.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the existing documentation for CreatePseudoConsole and CreateProcess, then reproduce the reported CreateProcessWithLogon failure with ERROR_INVALID_PARAMETER (87). Determine whether CreateProcessWithLogon, CreateProcessWithToken, and similar functions support ConPTY, and document the confirmed support or limitation with the relevant error details.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
documentation, operating-systems
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.