相关疑难解决方法(0)

Windows服务状态C++?

如何在C++中获取Windows服务的状态?

这是一个C#示例:

ServiceController sc = new ServiceController("Spooler", "Server1");
if (sc.Status == ServiceControllerStatus.Running)
{
    MessageBox.Show("The service is running.");
}
Run Code Online (Sandbox Code Playgroud)

但是我如何在C++中做相同的操作呢?

c++ windows service status

4
推荐指数
1
解决办法
3150
查看次数

标签 统计

c++ ×1

service ×1

status ×1

windows ×1