Access Denied

Sired22

Newcomer
Joined
Mar 13, 2010
Messages
2
I'm sorry to disturb you find folks but I'm at my wits end with this.

My problem involves getting a list of process's and there module's.
i know what your saying right now 'use system.diagnostics' stupid.

My problem comes from the fact that i need a FULL list of EVERYTHING with no access denied exceptions. Just catching it and moving on is not an option.

My OS I'm developing on is Windows 7 and yes administrator.

If you go to run and type 'cmd' and then 'tasklist /m' it seems to do what i cant.

Now normally i would be lazy and just reroute the output and parse it but the application must have no outside dependency except what we make for it.

Any help would be appreciated.
 
Is there any reason why you can't just catch the exception and move on?

If you write code to loop over the modules and look at which ones throw the access denied exception and then look at the output from tasklist /m you will see that the output from takslist simply puts "n/a" for these entries - so it looks like they are just doing the same thing.
 
Not true take for instance Explorer.exe tasklist list's all of its modules while it is one of the ones with access denied on my computer.

after donwloading and comparing with process explorer task list does return a full list the N/A is because there are none. but how do i get the full list in my program.
 
Last edited:
Back
Top