如何在Win SDK中获取单个进程的CPU使用率 [英] how to get cpu usage of a single process In win SDK
本文介绍了如何在Win SDK中获取单个进程的CPU使用率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Internet上的大多数代码都使用NTQuery ....()API,但我不希望这样做,请帮助我.我的Gmail:[已删除电子邮件].
Mostly code in the internet use NTQuery....() API ,but I don''t want this ,Please Help me. My Gmail : [Email Removed].
thanks!
推荐答案
^ ]可能会有所帮助.
有关如何使用CodeProject的文章:
GetProcessTimes [
GetProcessTimes[^] may help.
An article on CodeProject on how to use it:
GetProcessTimes[^]
This function doesn''t return the CPU usage, it returns the time spent by a process. But you can easily deduct the CPU usage from it.
有关Windows Management Instrumentation(WMI)服务的研究.它将为您提供CPU使用率和其他系统信息.
Study about Windows Management Instrumentation (WMI) service. It will give you CPU usage and other system information.
通过搜索google或任何搜索引擎网站.
By searching google or any search engine site.
这篇关于如何在Win SDK中获取单个进程的CPU使用率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文