wangbaomi / CpuInfo

C, NtQuerySystemInformation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

获取进程的cpu占有率

使用NtQuerySystemInformation来获取进程的cpu占有率, 大部分都是copy网上的代码

测试时发现,NtQuerySystemInformation 在win7 64位环境下,枚举出的进程数量一直都是0,在win7 32位和win2012环境都能正常使用。

About

C, NtQuerySystemInformation


Languages

Language:C++ 72.6%Language:C 27.4%