且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何以编程方式获取服务的状态(运行/停止)

更新时间:2023-02-12 18:08:10

使用 QueryServiceStatusQueryServiceStatusEx.网络上有很多关于如何使用它们的示例.

Use QueryServiceStatus or QueryServiceStatusEx. There are plenty of examples on the web on how these are used.