How to Get Elevated Process Path in .Net

added by mcnamaragio
12/22/2011 2:50:23 AM

0 Kicks, 117 Views

As you know retrieving process path in .Net is quite straightforward. For example if you have process instance someProcess you can get the process path by accessing someProcess.MainModule.FileName However for elevated processes the previous code snippet throws Win32Exception.