Process.StartTime Access Denied

前端 未结 5 1331
既然无缘
既然无缘 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 05:06

    I can enumerate the process (ie, the GetProcessById function works), and we have other code that gets the EXE name and other bits of information.

    I will give the test app a try. I'm also going to attempt to use WMI to get this information if I can't get the C# implementation working properly in short order (this is not critical functionality, so I can't spend days on it).

提交回复
热议问题