SetThreadPriority, Vista, and Autostart Locations setthreadpriority 、ビスタ、および自動起動の場所
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 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 ) ;返さtrueです。 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 ビスタ . です。














