Click here to Skip to main content
15,881,803 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Com Automation latest library for working with ms excel. Pin
_Flaviu22-May-23 20:28
_Flaviu22-May-23 20:28 
AnswerRe: Com Automation latest library for working with ms excel. Pin
Victor Nijegorodov22-May-23 22:47
Victor Nijegorodov22-May-23 22:47 
QuestionCPU Usage Pin
Richard Andrew x6419-May-23 15:56
professionalRichard Andrew x6419-May-23 15:56 
AnswerRe: CPU Usage Pin
Dave Kreskowiak19-May-23 17:48
mveDave Kreskowiak19-May-23 17:48 
GeneralRe: CPU Usage Pin
harold aptroot19-May-23 18:53
harold aptroot19-May-23 18:53 
AnswerRe: CPU Usage Pin
Greg Utas20-May-23 0:13
professionalGreg Utas20-May-23 0:13 
AnswerRe: CPU Usage Pin
Gerry Schmitz20-May-23 4:04
mveGerry Schmitz20-May-23 4:04 
AnswerRe: CPU Usage Pin
Randor 20-May-23 6:38
professional Randor 20-May-23 6:38 
Hi,

If you mean you want to limit the process to a specific percentage (say 10% for example), then you can do this by attaching the process to a Job object.

Job Objects - Win32 apps | Microsoft Learn

I think you would want JOB_OBJECT_CPU_RATE_CONTROL_ENABLE | JOB_OBJECT_CPU_RATE_CONTROL_HARD_CAP

JOBOBJECT_CPU_RATE_CONTROL_INFORMATION (winnt.h) - Win32 apps | Microsoft Learn
GeneralRe: CPU Usage Pin
Richard Andrew x6420-May-23 10:21
professionalRichard Andrew x6420-May-23 10:21 
GeneralRe: CPU Usage Pin
Dave Kreskowiak20-May-23 19:30
mveDave Kreskowiak20-May-23 19:30 
QuestionRe: CPU Usage Pin
David Crow22-May-23 7:49
David Crow22-May-23 7:49 
AnswerRe: CPU Usage Pin
Dave Kreskowiak22-May-23 8:43
mveDave Kreskowiak22-May-23 8:43 
GeneralRe: CPU Usage Pin
Dave Kreskowiak20-May-23 10:28
mveDave Kreskowiak20-May-23 10:28 
QuestionA two-dimensional std::vector for use by all Pin
polcott18-May-23 10:06
polcott18-May-23 10:06 
AnswerRe: A two-dimensional std::vector for use by all Pin
Gerry Schmitz18-May-23 18:25
mveGerry Schmitz18-May-23 18:25 
GeneralRe: A two-dimensional std::vector for use by all Pin
Richard MacCutchan19-May-23 0:09
mveRichard MacCutchan19-May-23 0:09 
GeneralMessage Closed Pin
19-May-23 5:03
polcott19-May-23 5:03 
GeneralRe: A two-dimensional std::vector for use by all Pin
jschell19-May-23 7:49
jschell19-May-23 7:49 
QuestionNot able to set header and footer in excel on multiple (even or odd pages) Pin
I_am_nayak16-May-23 19:19
I_am_nayak16-May-23 19:19 
AnswerRe: Not able to set header and footer in excel on multiple (even or odd pages) Pin
David Crow17-May-23 2:23
David Crow17-May-23 2:23 
QuestionMessage Closed Pin
14-May-23 13:20
polcott14-May-23 13:20 
AnswerRe: Can D simulated by H terminate normally? Pin
Richard MacCutchan14-May-23 21:39
mveRichard MacCutchan14-May-23 21:39 
AnswerRe: Can D simulated by H terminate normally? Pin
jschell15-May-23 4:58
jschell15-May-23 4:58 
GeneralMessage Closed Pin
15-May-23 8:30
polcott15-May-23 8:30 
GeneralRe: Can D simulated by H terminate normally? Pin
harold aptroot15-May-23 9:20
harold aptroot15-May-23 9:20 

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.