microsoft / microsoft/terminal
Using ConPTY with CreateProcessWithLogon and CreateProcessWithToken
- 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
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