May 19th, 2009, 09:25 PM
System.Diagnostics.Process (MainModule throws Wind32 "Access Denied" exception)
I'm trying to thumb through the list of currently running processes and search their descriptions
Here is how I get the list of processes:
Process pList = System.Diagnostics.Process.GetProcesses();
Here is where the description is located:
foobarProcess.MainModule.FileVersionInfo.FileDescription; //String value
However, when I try to access anything under the MainModule property, i get a Win32 exception saying "Access Denied".
textBlock.Text = foobarProcess.MainModule.FileVersionInfo.FileDescription.ToLower();
I'm a noob, any help?
Last edited by Kipp27; May 20th, 2009 at 01:10 AM.
Tags for this Thread
Click Here to Expand Forum to Full Width