Detecting if a process is still running

后端 未结 4 2050
花落未央
花落未央 2021-01-01 04:01

I need to check if a process with a given HANDLE is still running, I tried to do it using the following code however it always returns at the second return false, even if th

4条回答
  •  长发绾君心
    2021-01-01 05:05

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

    Return Value

    If the function succeeds, the return value is nonzero.

    If the function fails, the return value is zero. To get extended error information, call GetLastError.

提交回复
热议问题