首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > VC/MFC >

CreateService创建的服务停止按钮是灰的怎么处理

2012-02-08 
CreateService创建的服务停止按钮是灰的怎么办?这样调用之后,控制面板-服务列表中。我创建的服务的停止按钮

CreateService创建的服务停止按钮是灰的怎么办?
这样调用之后,控制面板-服务列表中。我创建的服务的停止按钮是灰的不能点。服务已运行。
其它一切正常,我就是想让停止按钮可以使用。谢谢各位了

C/C++ code
    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        );




[解决办法]
偶都是进程管理器暴力结束进程
[解决办法]
如果是ATL向导生成的服务,你不用程序安装,手动安装一下服务试下,看服务本身是否正常,。

热点排行