我使用可以通过Delphi启动和停止服务的例程,但是我也需要禁用它们,可以吗?
解决方法
ShellExecute(0,nil,'cmd.exe','sc config "the service name" start=disabled',SW_HIDE); ShellExecute(0,'sc config "the service name" start=auto','sc config "the service name" start=demand',SW_HIDE);
ShellExecute(0,nil,'cmd.exe','sc config "the service name" start=disabled',SW_HIDE); ShellExecute(0,'sc config "the service name" start=auto','sc config "the service name" start=demand',SW_HIDE);