Skip to content

Add coverage for spawning GUI subsystem programs #1

@rprichard

Description

@rprichard

The current docs leave this open:

I have not tested whether or how these flags affect non-console programs (i.e. programs whose PE header subsystem is WINDOWS rather than CONSOLE).

I did some exploration of this issue while digging into a winpty bug involving ConEmu.

I did very minimal testing, and only on WIndows 7 SP1 64-bit. The behavior I saw when spawning a process with a GUI executable was:

  • Specifying both CREATE_NEW_CONSOLE and DETACHED_PROCESS is still an error.
  • The flags are otherwise ignored, and CreationConsoleMode is Detach.
  • I can still use STARTF_USESTDHANDLES to set an stdout handle.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions