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

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

问题描述

有没有办法在不安装 Net Framework 4 等 API 的情况下获得 Win 7 中所有服务的完整列表?我想尽可能以原生方式获取列表.

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

开发中心

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

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