malanois
asked on
windows services
Is there any articles on serviceController?
I am trying to create a program the starts and stops services in windows
I am looking for some code or some way to loop through services that are currently running on a either win2k or xp.
Once I have that I should be good.
I am trying to create a program the starts and stops services in windows
I am looking for some code or some way to loop through services that are currently running on a either win2k or xp.
Once I have that I should be good.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
good now
Thanks
Thanks
ASKER
I have created a new project, copied and pasted the above code.
added button for , start, stop,refresh, and exit
added a listview
the first several tries I get an error for:
lvwServices.Items.Clear()
I have rebooted several times and I get the same error everytime:
("Could not initialize Windows Service engine. Restarting your computer may work"
XP srv Pk1
MJ