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
Process.StartTime
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?