SetThreadPriority, Vista, and Autostart Locations setthreadpriority, 비스타, 그리고 위치를 자동으로 시작
I ran across a post on the 나는에 게시물을 가로질러 Vista Compatibility Team Blog 비스타 호환성 팀 블로그 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. "그것을 설명 비스타의 변화를 보완하는 응용 프로그램에서 발사 통화 setthreadpriority과 시작 프로그램 폴더에서"실행 "의 레지스트리 키를 원인이 스레드의 우선 순위가되지 않습니다 상승합니다.
Wanting to verify and play around with this, I wrote a simple program that called 주위를 원하는 플레이를 확인하고, 간단한 프로그램이 전화를 썼습니다 SetThreadPriority setthreadpriority to set the priority of the thread to THREAD_PRIORITY_HIGHEST. 스레드를 thread_priority_highest의 우선 순위를 설정합니다. The program then immediately called 불리는이 프로그램을 즉시 GetThreadPriority 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); 반환 진정한합니다. The first call to GetThreadPriority( GetCurrentThread() ); returned 0 indicating THREAD_PRIORITY_NORMAL. 첫 번째 전화를 getthreadpriority (getcurrentthread ()); thread_priority_normal 반환 0 나타냅니다. In other 기타
…
Written by «/\/\Ø|ö±ò\/»®© on 작성한 â«/ \ / \ 검토 ~ | ã ¶ ã ± â ² \ / â»â ® â ©에 November 18th, 2007 2007년 11월 18일 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 비스타 . 합니다.














