CPU (and Memory) usage in C++

Hi,
I need to know, how can I uncover CPU and memory usage, like in the TSKMGR.
I am using Dev-Cpp and I have tried to find it by Google, but I still do not know, how to do it. Please help me.
The answer is dependent upon your OS and has nothing to do with programming language. Since you are using Windows, I suggest looking up Windows API calls or posting in the Windows forum.

TSKMGR uses win32 NAPI (a simple api hooking shows it)
See on Win32 ng news://comp.os.ms-windows.programmer.win32
for source code (C, C++)
Topic archived. No new replies allowed.