Delete Windows services

xiaoxiao2021-03-05  25

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.

转载请注明原文地址:https://www.9cbs.com/read-34750.html

New Post(0)