tags:

views:

73

answers:

2

Id like to have a tab on my windows form application where there would be a drop down list for each user that shows DLLS, Services, Programs that start up with that user. Where can i look to start this project? iv searched google the closest thing i can find is this:

http://www.dreamincode.net/forums/topic/121859-getting-all-startup-items/

except for all users, and have it display services and DLL's that load as well.

A: 

As the link you've added shows, to list all startup programs, use Win32_StartupCommand. To list all services you can use Win32_Service in a similar fashion. You should be able to use one of the samples on this page as a starting point.

Just make sure that the user account you run under have the correct rights (look at the links above for more info).

ho1
A: 

You could download autoruns and then check the same places in your program. Or put in a link to the autoruns.exe at live.sysinternals.com, which is what I would do.

Stephen Cleary
Autoruns would be PERFECT the everything column is amazingly nice and the ability to load offline accounts is excelent, but the idea is that id like it to be integrated within my application not just link to it, also id like for it to not require a internet connection.
NightsEVil
You could check the same places in your program. Autoruns makes it obvious where it looks for things.
Stephen Cleary
im still learning how can i say get all the items from "CurrentUser\SOFTWARE\Microsoft\Windows\CurrentVersion\Run"andLocalMachine\SOFTWARE\Microsoft\Windows\CurrentVersion\Run"put it in a checklist box? and then have control over it? (like say have all of the enabled ones checked, and all the disabled ones not checked, and if i check one it enables it, and if i uncheck one it disables it?
NightsEVil
Autoruns "disables" entries by moving them to another location; I believe with the registry, it's a subkey named `Disabled` or something similar. If in doubt, run Technet's Process Monitor, and it will tell you what Autoruns is doing.
Stephen Cleary