Click here to Skip to main content
15,894,825 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralHelp ! hook java application by VC++ Pin
crazymanhehe13-Oct-04 1:32
susscrazymanhehe13-Oct-04 1:32 
GeneralCreating Server application using CAsyncSocket Pin
prasanna kankanalapalli13-Oct-04 0:52
prasanna kankanalapalli13-Oct-04 0:52 
GeneralInterfacing with C# .net web service from C++ .net Pin
Member 131514813-Oct-04 0:31
Member 131514813-Oct-04 0:31 
Generalagain IContextMenu Pin
mazur197313-Oct-04 0:01
mazur197313-Oct-04 0:01 
QuestionRealTime Priority? Pin
Manikandan12-Oct-04 23:40
Manikandan12-Oct-04 23:40 
AnswerRe: RealTime Priority? Pin
Arsalan Malik13-Oct-04 2:07
Arsalan Malik13-Oct-04 2:07 
AnswerRe: RealTime Priority? Pin
Antony M Kancidrowski13-Oct-04 2:33
Antony M Kancidrowski13-Oct-04 2:33 
GeneralRe: RealTime Priority? Pin
Manikandan13-Oct-04 5:22
Manikandan13-Oct-04 5:22 
I tried...but it doesn't work. I am in VC6. Does this stuffs work under VC6? In the loader program i am using the below code,

STARTUPINFO suInfo;
PROCESS_INFORMATION procInfo;
CString m_Process;
m_Process.Format(_T("%s\\my.exe"),curDir);

memset (&suInfo, 0, sizeof(suInfo));
suInfo.cb = sizeof(suInfo);

::CreateProcess(m_Process,
NULL, // can also be NULL
NULL,
NULL,
FALSE,
REALTIME_PRIORITY_CLASS,
NULL,
NULL,
&suInfo,
&procInfo);

if (procInfo.dwThreadId == NULL)
{
AfxMessageBox("nope");
}
else
{
::SetThreadPriority(&procInfo.dwThreadId,THREAD_PRIORITY_HIGHEST);
}

When I check in process viewer the class priority is "Very High", the thread priority remain "normal". Also when a thread runs in "my.exe" it's not given the highest priorities, i am free to access other programs.
GeneralRe: RealTime Priority? Pin
Antony M Kancidrowski13-Oct-04 5:33
Antony M Kancidrowski13-Oct-04 5:33 
GeneralRe: RealTime Priority? Pin
Manikandan13-Oct-04 6:20
Manikandan13-Oct-04 6:20 
GeneralRe: RealTime Priority? Pin
Antony M Kancidrowski13-Oct-04 11:41
Antony M Kancidrowski13-Oct-04 11:41 
AnswerRe: RealTime Priority? Pin
geo_m13-Oct-04 21:42
geo_m13-Oct-04 21:42 
GeneralRe: RealTime Priority? Pin
Manikandan13-Oct-04 21:51
Manikandan13-Oct-04 21:51 
GeneralRe: RealTime Priority? Pin
geo_m14-Oct-04 0:28
geo_m14-Oct-04 0:28 
GeneralVectors vs Arrays Pin
mcsherry12-Oct-04 23:03
mcsherry12-Oct-04 23:03 
GeneralRe: Vectors vs Arrays Pin
V.12-Oct-04 23:37
professionalV.12-Oct-04 23:37 
GeneralRe: Vectors vs Arrays Pin
mcsherry12-Oct-04 23:47
mcsherry12-Oct-04 23:47 
GeneralRe: Vectors vs Arrays Pin
Mike Beckerleg13-Oct-04 0:05
Mike Beckerleg13-Oct-04 0:05 
GeneralRe: Vectors vs Arrays Pin
Kevin McFarlane13-Oct-04 6:36
Kevin McFarlane13-Oct-04 6:36 
GeneralRe: Vectors vs Arrays Pin
Maximilien13-Oct-04 0:56
Maximilien13-Oct-04 0:56 
GeneralRe: Vectors vs Arrays Pin
mcsherry13-Oct-04 2:40
mcsherry13-Oct-04 2:40 
GeneralRe: Vectors vs Arrays Pin
Kevin McFarlane13-Oct-04 6:37
Kevin McFarlane13-Oct-04 6:37 
QuestionCString += CString :: doesn't do the trick? Pin
V.12-Oct-04 22:39
professionalV.12-Oct-04 22:39 
AnswerRe: CString += CString :: doesn't do the trick? Pin
RChin12-Oct-04 23:21
RChin12-Oct-04 23:21 
GeneralRe: CString += CString :: doesn't do the trick? Pin
V.12-Oct-04 23:32
professionalV.12-Oct-04 23:32 

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.