How to pause / resume any external process under Windows?

后端 未结 6 1456
粉色の甜心
粉色の甜心 2020-12-16 19:56

I am looking for different ways to pause and resume programmatically a particular process via its process ID under Windows XP.

Process suspend/resume tool does it wi

6条回答
  •  青春惊慌失措
    2020-12-16 20:14

    I think there is a good reason why there is no SuspendProcess() function in Windows. Having such a function opens the door for an unstable system. You shall not suspend a process unless you created that process yourself. If you wrote that process yourself, you could use an event (see ::SetEvent() etc. in MSDN) or another kind of messaging to trigger a pause command in the process.

提交回复
热议问题