Set Process and thread Priority in C++

windows

 

1 process

SetPriorityClass (GetCurrentProcess(),BELOW_NORMAL_PRIORITY_CLASS);

2. thread

SetThreadPriority(m_hThread,THREAD_PRIORITY_HIGHEST);
 

posted @ 2010-06-29 05:04  史莱姆  阅读(298)  评论(0)    收藏  举报