Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

  • Administrators
Posted

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.

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Posted (edited)

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.

Edited by Sired22

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...