C# 2.0 Display ALL Windows start up items (programs,dlls,services) for all users and be able to enable or disable them
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 fo开发者_开发知识库r all users, and have it display services and DLL's that load as well.
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).
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.
精彩评论