I want to monitor all running processes and if there is some relevant process for me (determined by file path), doing some logic which include getting StartDate. Problem is that some processes give me "Access denied" Win32Exception
during accessing StartDate property. I wounder if I can determine if I have access to process before trying accessing process StartDate, since exception handling could take some noticeable delay especially when there are a lot of processes running.
So question is: Is there any way to do something like Process.HasAccess(process)
check without dealing with exceptions?