Process.StartTime Access Denied

前端 未结 5 1353
既然无缘
既然无缘 2020-12-21 04:30

My code needs to determine how long a particular process has been running. But it continues to fail with an access denied error message on the Process.StartTime

5条回答
  •  失恋的感觉
    2020-12-21 04:49

    The underlying code needs to be able to call OpenProcess, for which you may require SeDebugPrivilege.

    Is the process you're doing the StartTime request on running as a different user to your own process?

提交回复
热议问题