CreateService创建的服务停止按钮是灰的怎么办?
这样调用之后,控制面板-服务列表中。我创建的服务的停止按钮是灰的不能点。服务已运行。
其它一切正常,我就是想让停止按钮可以使用。谢谢各位了
schService = CreateService(SchSCManager, // handle of service control manager database DriverName, // address of name of service to start DriverName, // address of display name SC_MANAGER_ALL_ACCESS | SERVICE_ALL_ACCESS, // type of access to service SERVICE_WIN32_OWN_PROCESS, // type of service SERVICE_AUTO_START, // when to start service SERVICE_ERROR_NORMAL, // severity if service fails to start ServiceExe, // address of name of binary file NULL, // service does not belong to a group NULL, // no tag requested NULL, // no dependency names NULL, // use LocalSystem account NULL // no password for service account );