Click here to Skip to main content
16,008,183 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionTask Manager process CPU usage? Pin
Peter Sjöström22-Oct-01 13:29
Peter Sjöström22-Oct-01 13:29 
AnswerRe: Task Manager process CPU usage? Pin
Bill Wilson22-Oct-01 13:41
Bill Wilson22-Oct-01 13:41 
GeneralRe: Task Manager process CPU usage? Pin
Peter Sjöström23-Oct-01 1:59
Peter Sjöström23-Oct-01 1:59 
GeneralRe: Task Manager process CPU usage? Pin
Bill Wilson23-Oct-01 7:37
Bill Wilson23-Oct-01 7:37 
GeneralRe: Task Manager process CPU usage? Pin
Peter Sjöström23-Oct-01 9:10
Peter Sjöström23-Oct-01 9:10 
GeneralRe: Task Manager process CPU usage? Pin
Bill Wilson23-Oct-01 9:44
Bill Wilson23-Oct-01 9:44 
GeneralRe: Task Manager process CPU usage? Pin
Peter Sjöström23-Oct-01 9:48
Peter Sjöström23-Oct-01 9:48 
GeneralSolved! (new language question) Pin
Peter Sjöström23-Oct-01 9:46
Peter Sjöström23-Oct-01 9:46 
Ok, some guesswork and trial and error...

First, as with another article I found on the net, the processor time parameter is Windows language dependant:

csPath.Format("\\Processor(%d)\\%% processor time", iProcessor);

changes into:

csPath.Format("\\Processor(%d)\\%% processortid", iProcessor);

...to work on my Swedish Windows. I don't know how to find this for any language yet.

To find the CPU Usage for a specific process use:

csPath.Format("\\Process(%s)\\%% processortid", sProcess);

for example:

csPath.Format("\\Process(iexplore)\\%% processortid");

for Internet Explorer CPU usage.

This does what I want now, except for that language dependency which I must solve now... (anyone know?)
GeneralHBITMAP and unsigned char array Pin
mkaltner22-Oct-01 13:13
mkaltner22-Oct-01 13:13 
GeneralRe: HBITMAP and unsigned char array Pin
Shog922-Oct-01 16:51
sitebuilderShog922-Oct-01 16:51 
GeneralQuestion about operator new Pin
22-Oct-01 13:04
suss22-Oct-01 13:04 
GeneralRe: Question about operator new Pin
Bret Faller22-Oct-01 13:41
Bret Faller22-Oct-01 13:41 
QuestionWhich trackbar fired the event? Pin
clintsinger22-Oct-01 12:55
clintsinger22-Oct-01 12:55 
AnswerRe: Which trackbar fired the event? Pin
Christian Graus22-Oct-01 13:07
protectorChristian Graus22-Oct-01 13:07 
GeneralRe: Which trackbar fired the event? Pin
clintsinger22-Oct-01 13:16
clintsinger22-Oct-01 13:16 
GeneralRe: Which trackbar fired the event? Pin
Christian Graus22-Oct-01 13:57
protectorChristian Graus22-Oct-01 13:57 
GeneralRe: Which trackbar fired the event? Pin
Michael Dunn22-Oct-01 15:56
sitebuilderMichael Dunn22-Oct-01 15:56 
GeneralRe: Which trackbar fired the event? Pin
clintsinger22-Oct-01 17:02
clintsinger22-Oct-01 17:02 
GeneralRe: Which trackbar fired the event? Pin
Christian Graus22-Oct-01 18:19
protectorChristian Graus22-Oct-01 18:19 
GeneralRe: Which trackbar fired the event? Pin
clintsinger24-Oct-01 6:21
clintsinger24-Oct-01 6:21 
GeneralRe: Which trackbar fired the event? Pin
Christian Graus24-Oct-01 11:22
protectorChristian Graus24-Oct-01 11:22 
Generalundeclared identifier Pin
Peter Liddle22-Oct-01 12:21
Peter Liddle22-Oct-01 12:21 
GeneralRe: undeclared identifier Pin
Christian Graus22-Oct-01 12:43
protectorChristian Graus22-Oct-01 12:43 
GeneralSynchronization objects Pin
Not Active22-Oct-01 11:03
mentorNot Active22-Oct-01 11:03 
GeneralFlicker-free drawing question Pin
Chen Venkataraman22-Oct-01 10:00
Chen Venkataraman22-Oct-01 10:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.