我使用了一个可以通过Delphi启动和停止服务的例程,但我还需要能够禁用它们,这是可能的吗?
发布于 2010-03-09 00:19:28
ShellExecute(0, nil, 'cmd.exe', 'sc config "the service name" start=disabled', nil, SW_HIDE);
ShellExecute(0, nil, 'cmd.exe', 'sc config "the service name" start=auto', nil, SW_HIDE);
ShellExecute(0, nil, 'cmd.exe', 'sc config "the service name" start=demand', nil, SW_HIDE);
https://stackoverflow.com/questions/2401528
复制相似问题