SetThreadPriority, Vista, and Autostart Locations SetThreadPriority, Vista, e Autostart Locais
I ran across a post on the Eu decorreu em todo um post sobre o Vista Compatibility Team Blog Equipas blog Vista compatibilidade entitled “ intitulada " SetThreadPriority from Run key SetThreadPriority de Run-chave ” 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. ", Que discute uma mudança no qual Vista chamando SetThreadPriority lançado a partir de uma aplicação a partir da pasta de inicialização e os" Executar "chave na secretaria não irá causar o fio da prioridade a ser aumentado.
Wanting to verify and play around with this, I wrote a simple program that called Querer verificar e brincar com isso, eu escrevi um programa simples que chamou SetThreadPriority to set the priority of the thread to THREAD_PRIORITY_HIGHEST. para definir a prioridade do thread a THREAD_PRIORITY_HIGHEST. The program then immediately called O programa então imediatamente chamado GetThreadPriority to determine if the call to SetThreadPriority had any effect. a fim de determinar se o convite para SetThreadPriority teve qualquer efeito. Next, in a loop, the program then called SetThreadPriority / GetThreadPriority until either an error was encountered, or GetThreadPriority returned the expected priority. Em seguida, em um loop, então o programa chamado SetThreadPriority / GetThreadPriority até quer um erro foi encontrado, ou GetThreadPriority retornou a esperada prioridade. The program logged before and after each call to SetThreadPriority / GetThreadPriority the time, the action, and the either the parameters or the return value. O programa registrado antes e após cada chamada a SetThreadPriority / GetThreadPriority o tempo, a ação, e quer os parâmetros ou o valor de retorno.
I set the program to be launched automatically by placing a shortcut in the “Startup” folder, and rebooted. Eu definir o programa a ser lançado automaticamente, colocando um atalho no "Inicializar" pasta, e reiniciado. Once the system came back up, I waited a bit and then examined the log. Uma vez que o sistema voltou-se, eu esperei um pouco e, depois, analisou o log. The first call to SetThreadPriority( GetCurrentThread(), THREAD_PRIORITY_HIGHEST ); returned TRUE. O primeiro convite para SetThreadPriority (GetCurrentThread (), THREAD_PRIORITY_HIGHEST); retornado TRUE. The first call to GetThreadPriority( GetCurrentThread() ); returned 0 indicating THREAD_PRIORITY_NORMAL. O primeiro convite para GetThreadPriority (GetCurrentThread ()); retornou 0 indicando THREAD_PRIORITY_NORMAL. In other Noutros
…
Written by «/\/\Ø|ö±ò\/»®© on Escrito por  «/ \ / \ à ~ | à ¶  ± à ² \ / Â"  ®  © em November 18th, 2007 18 de novembro de 2007 with com no comments sem comentários . .
Read more articles on Leia mais artigos sobre threads threads and e GetThreadPriority GetThreadPriority and e priorities Prioridades and e autostart automaticamente and e run correr and e startup startup and e otherSoftware otherSoftware and e SetThreadPriority SetThreadPriority and e vista Vista . .














