Deleting Windows services For programming masters, this topic is a bit boring, but in some cases it is quite useful. As I deleted uninstall a software, the result is deleted, the service is still there, very indiscriminate, the registration form can't be found, I have to write a small program to delete the service.
First do the interface, as follows:
This should be used to use Windows service management function group, first turn on the service manager, which is to include Winsvc.h in the header file to the SC_HANDLE SH; Define Add to the dialog box class. Add the following code to the OnInitDialog member function to initialize service management.