windows-rs CreateProcessW with EXTENDED_STARTUPINFO_PRESENT

Yuwei Ba 1 Reputation point

I'm using the Rust binding windows-rs to call Win32 APIs to create processes with ConPty.

However the CreateProcessW can only run "some" programs, for example, "notepad.exe",

If I ran "cmd.exe", "powershell.exe", "ping.exe", the program won't start and exit with code: exitcode: 3221225794.

I have a repro at:

To run different programs, change

and "cargo r"

related Github issue:

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,487 questions
{count} votes