Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

statistic information

Status
Not open for further replies.

Zebra2k

Programmer
Aug 12, 2002
11
US
Hi,
Are there APIs for collecting CPU and memory usage of a running process? Any pointers or examples are highly appriciated. Thanks.

Z.
 
Yes,

Use Performance Monitor API.

Functions like

PdhOpenQuery()
PdhAddCounter()
PdhCollectQueryData()
PdhCloseQuery()

will do the job.

/JOlesen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top