I am very new to c++ . I am trying to get performance data from a computer system like cpu utilization , memory , battery etc.. For that i looked up a link where it is suggested to use PDH . Performance Data Helper in windows . But i cannot find any link to download or install pdh.h , pdh.lib or pdh.dll . Please hep me on this .
I am using visual studios 2017.
Here is code to get cpu percentage which i got from some Q&A in stack overflow
How to determine CPU and memory consumption from inside a process?
I got it . You just have to include this line in visual c++.
#pragma comment(lib,"pdh.lib")