VirtualQueryEx(...) /* This call is expensive */
About WMI API and
Performance Monitor Counters
You can read
Programming Server-Side Applications for Microsoft Windows 2000
-- Jeffrey Richter, Jason D. Clark
Quote:> Hi everybody
> I need to write a code to monitor CPU and memory usage for a process
> (similar to the info given by task manager) in win2000.
> I really can't find how to do this... any idea?