How can I get windows data like CPU usage etc.?

How can I get Windows data, such as CPU usage, physical memory, network usage and bandwidth, similar to what I see in the task manager? I am using C ++.

+5
source share
2 answers

You can get CPU usage using performance data. If you need data for only one (or several processes), it may be easier to call GetProcessTimesevery few seconds.

As a rule, it is difficult to determine exactly what the use of physical memory means. While you do this, trying to describe how to measure it is pretty pointless.

GetIpStatistics.

GetIfTable.

+6

msdn

+2

All Articles