Thanks in advance.
Enable and disable startup programs in c#
I am trying to make a program in which I can view all startup services and their status such as whether they are enabled or disable. As well as I would like to provide functionality toenable and disable startup program. But I am not able to perform this task. Can somebody help me to perform this task? I am using visual studio 2010 and C# language.
VulpesPosted Apr 2, 2011, 1:40 PM
http://msdn.microsoft.com/en-us/library/system.serviceprocess.servicecontroller.aspx
http://msdn.microsoft.com/en-us/library/aa394418(VS.85).aspx
http://www.dotnetspider.com/resources/30243-How-start-stop-service-using-C.aspx
http://www.codeproject.com/KB/system/WMI_Services_Manipulation.aspx
Suthish NairPosted Apr 2, 2011, 10:13 AM
Sam HobbsPosted Apr 2, 2011, 9:34 AM
See Autoruns for Windows. I don't know if there is source code for it and if there is it is probably in C++. You could at least see all the possible places to look for autorun software and then you need to figure out how to read each one. Note that there are multiple places to look at and each place is a separate question. For example reading the registry is different from other places that need to be looked at.