如何获得所有服务的列表,在Windows 7? [英] How to get a list of all services on Windows 7?

查看:118
本文介绍了如何获得所有服务的列表,在Windows 7?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法可以在Win 7的所有服务的完整列表,无需安装的API如Net Framework 4的?我想作为本地获取列表越好。

Is there a way to get a complete list of all services in Win 7 without having to install APIs such as Net Framework 4? I want to get the list as natively as possible.

推荐答案

您可以用Win API的 OpenSCManager 功能,然后枚举服务,并与他们的 EnumServicesStatus

You can use Win API OpenSCManager function and then enumerate services and theirs statuses with EnumServicesStatus

有对服务API上的开发中心

这篇关于如何获得所有服务的列表,在Windows 7?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆