Original Post
I''d like my code running at RealTime priority, I do it like this
DWORD dwOldProcessP = GetPriorityClass(GetCurrentProcess()); DWORD dwOldThreadP = GetThreadPriority(GetCurrentThread()); SetPriorityClass(GetCurrentProcess(), REALTIME_PRIORITY_CLASS); SetThreadPriority(GetCurrentThread(),THREAD_PRIORITY_TIME_CRITICAL); // //...some instructions // SetThreadPriority(GetCurrentThread(), dwOldThreadP); SetPriorityClass(GetCurrentProcess(), dwOldProcessP);it does works on a AMD 2200+ cpu,when the instauctions been executed,I can''t move the mouse, but on a P4 2.4c cpu,it seems not running at Realtime priority,I can move my mouse or alt+tab to another apps,just like the instructions is running at normal priority!!! All OS is win2000 pro+sp4! can u tell me why this happened?thanks!
