Click here to Skip to main content
15,938,325 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Mostly code in the internet use NTQuery....() API ,but I don't want this ,Please Help me. My Gmail : [Email Removed].
Updated 17-May-11 16:35pm
HimanshuJoshi 17-May-11 22:36pm    
Do not post your mail. You will get notification automatically if anyone answers your question or comments on it.

GetProcessTimes[^] may help.

An article on CodeProject on how to use it:

This function doesn't return the CPU usage, it returns the time spent by a process. But you can easily deduct the CPU usage from it.
Share this answer
Study about Windows Management Instrumentation (WMI) service. It will give you CPU usage and other system information.
Share this answer
Olivier Levrey 18-May-11 3:56am    
It is generally not very easy to use WMI. I would suggest something simpler.
By searching google or any search engine site.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900