Skip to content

Propagate Ctrl+C to executed processes #9

@rgl

Description

@rgl

After executing:

.\createprocess.exe /w /systemtoken c:\Windows\System32\cmd.exe

And pressing the Ctrl+C (or Ctrl+Break) key combination, only the first createprocess.exe process is terminated, the processes running as SYSTEM are still left running.

Would it be possible to propagate the key combination to the other processes? Maybe using SetConsoleCtrlHandler/GenerateConsoleCtrlEvent.

PS Ah, the signal is reaching all the processes (including the ones running as SYSTEM). Maybe createprocess.exe should ignore the signal instead? I mean, when using /w, createprocess.exe should wait for the actual application to exit despite receiving the signal?

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