Your best source of information and news about winvista , software and drivers on the internet 您的最佳信息來源和新聞winvista軟件驅動程序在互聯網上

Vista ARTICLES Vista的文章 TOP 50前50名 Vista VIDEOS Vista的影片 Vista SOFT Vista的軟 Vista HELP Vista幫助

run

You are currently browsing the articles from您當前瀏覽的文章 MS Windows Vista Compatible Software在MS Windows Vista的兼容軟件 matching the category run .匹配類運行

SetThreadPriority, Vista, and Autostart Locations setthreadpriority , Vista中,並自動啟動地點

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從應用推出從Startup文件夾和”運行“的關鍵在註冊表中不會導致線程的優先予以增加。

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 ( ) ) ;返回0表明thread_priority_normal 。 In other在其他

Click to continue reading "SetThreadPriority, Vista, and Autostart Locations"點擊繼續讀“ setthreadpriority , Vista中,並自動啟動位置”

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 Vista的 .