SetThreadPriority, Vista, and Autostart Locations SetThreadPriority, Vista, а также проведения Autostart
I ran across a post on the Я противоречит всей пост Vista Compatibility Team Blog Vista совместимости коллективный блог entitled “ озаглавленный " SetThreadPriority from Run key SetThreadPriority из ключевых Пробег ” that discusses a change in Vista whereby calling SetThreadPriority from an application launched from the Startup folder and the “Run” key in the registry will not cause the thread’s priority to be increased. ", Которые обсуждаются изменения в Vista которой содержится призыв SetThreadPriority от применения запущенная из папки Автозагрузка и" Выполнить "ключ в реестре не будет вызывать нить приоритетом должна быть увеличена.
Wanting to verify and play around with this, I wrote a simple program that called Хотеть для проверки и играть вокруг с этим, я написал простую программу, которая называется SetThreadPriority to set the priority of the thread to THREAD_PRIORITY_HIGHEST. установить приоритет нити к THREAD_PRIORITY_HIGHEST. The program then immediately called Программа затем сразу же называется GetThreadPriority to determine if the call to SetThreadPriority had any effect. для определения того, призыв к SetThreadPriority какие-либо эффекта. Next, in a loop, the program then called SetThreadPriority / GetThreadPriority until either an error was encountered, or GetThreadPriority returned the expected priority. Затем в цикле, то программа называется SetThreadPriority / GetThreadPriority до тех пор, пока либо ошибка, либо GetThreadPriority вернулся ожидается приоритетом. The program logged before and after each call to SetThreadPriority / GetThreadPriority the time, the action, and the either the parameters or the return value. Программа входа до и после каждого звонка с SetThreadPriority / GetThreadPriority время действия, и либо параметров или возвращаемых значений.
I set the program to be launched automatically by placing a shortcut in the “Startup” folder, and rebooted. Я поставил программа будет запускаться автоматически путем размещения ярлыка в "Автозагрузка" папку, и перезагружен. Once the system came back up, I waited a bit and then examined the log. Как только система резервного копирования, я ожидал немного, а затем изучить журнал. The first call to SetThreadPriority( GetCurrentThread(), THREAD_PRIORITY_HIGHEST ); returned TRUE. Первый звонок для SetThreadPriority (GetCurrentThread (), THREAD_PRIORITY_HIGHEST); вернулся TRUE. The first call to GetThreadPriority( GetCurrentThread() ); returned 0 indicating THREAD_PRIORITY_NORMAL. Первый звонок для GetThreadPriority (GetCurrentThread ()); вернулся 0 указав THREAD_PRIORITY_NORMAL. In other В других
…
Written by «/\/\Ø|ö±ò\/»®© on Автор  "/ \ / \ М ~ | М ¶  ² ± М \ / »  ®  © о November 18th, 2007 18 ноября 2007 года with с no comments нет комментариев . .
Read more articles on Читайте больше статей о threads нитей and и GetThreadPriority GetThreadPriority and и priorities приоритеты and и autostart автозагрузки and и run бежать and и startup старте and и otherSoftware otherSoftware and и SetThreadPriority SetThreadPriority and и vista достопримечательность . .














