CPU Usage for each process
Hi,
I am trying to display a list of process information on Win2000.
I am able to retrive the memory usage (I got the eg in API Guide).
I was not able to get the CPU Usage for each process.
I guess that there is some "UNDOCUMENTED" API by microsoft which could do this.
Has any body doe this before..
Any help is appreciated.
Thanks,
Pradeep
Re: CPU Usage for each process
I just figured it out today using WMI in VB.NET. Perhaps you can find something useful for using it in VB6?
Looks like its "KernalModeTime".
Enumerate Processes with ALL Properties
:)
Re: CPU Usage for each process
Hi,
Hmm.. this is for VB.NET.. I guess in VB.NET you will find wrappers for all stuff.
Wanted to check out in VB or C++.. "unmanaged code"..
Just let me know if you find any..
Thanks,
Pradeep
Re: CPU Usage for each process
But since its wraping WMI I thought you might be able to find some way of using it in VB6?
Re: CPU Usage for each process
Ok.. Let me check the DLL dependencies. In which dll is WMI functions are implemented, do u know?.
-Pradeep