How to get CPU usage or disk usage of application using Windows API from C++?

前端 未结 2 1846
悲哀的现实
悲哀的现实 2021-01-13 12:54

How to proceed to get CPU usage or disk usage of application using API in C++???

I want to get the highest CPU usage or disk usage among the application running on w

2条回答
  •  粉色の甜心
    2021-01-13 13:20

    Windows 7 already has this built-in, as part of the Resource Monitor (realmon.exe). If you want to find this in code, you can either use the Perf Counter API or create a Realtime ETW consumer against the NT kernel provider.

提交回复
热议问题