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 derfloh 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
Joined
Aug 12, 2002
Messages
11
Location
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
 
That helps. Thanks Jolesen.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top