Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 213
  • Last Modified:

Accessing live results from taskmgr.exe

I would like to access live results from taskmgr.exe and depending on CPU usage initiate processes.
0
lazarcw
Asked:
lazarcw
  • 2
1 Solution
 
mahesh1402Commented:
An undocumented API, NtQuerySystemInformation in ntdll.dll, would help us retrieve the CPU usage..

However here is an article which retrieves CPU usage by using performance counters..
http://www.codeproject.com/system/cpuusage.asp

Other task manager related articles with src code may be also useful for this :
http://www.codeproject.com/threads/processes.asp
http://www.codeproject.com/system/Task_Manager_Extension.asp

-MAHESH
0
 
mahesh1402Commented:
This may be also useful to 'Get CPU Usage with GetSystemTimes'
http://www.codeproject.com/threads/Get_CPU_Usage.asp

-MAHESH
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now