C++, How to determine if a Windows Process is running?

前端 未结 13 1148
清酒与你
清酒与你 2020-11-27 15:27

This is concerning Windows XP processes.

I have a process running, let\'s call it Process1. Process1 creates a new process, Process2, and saves its id.

Now,

13条回答
  •  庸人自扰
    2020-11-27 16:26

    call EnumProcesses() and check if the PID is in the list.

    http://msdn.microsoft.com/en-us/library/ms682629%28VS.85%29.aspx

提交回复
热议问题