惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Simon Willison's Weblog
Simon Willison's Weblog
G
Google Developers Blog
Spread Privacy
Spread Privacy
I
InfoQ
V
V2EX
S
Schneier on Security
小众软件
小众软件
C
CERT Recently Published Vulnerability Notes
博客园 - 聂微东
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Stack Overflow Blog
Stack Overflow Blog
T
Threat Research - Cisco Blogs
L
Lohrmann on Cybersecurity
Recent Announcements
Recent Announcements
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Attack and Defense Labs
Attack and Defense Labs
云风的 BLOG
云风的 BLOG
The Hacker News
The Hacker News
S
SegmentFault 最新的问题
C
Cybersecurity and Infrastructure Security Agency CISA
NISL@THU
NISL@THU
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
GbyAI
GbyAI
Latest news
Latest news
S
Secure Thoughts
Project Zero
Project Zero
MongoDB | Blog
MongoDB | Blog
I
Intezer
Security Latest
Security Latest
Apple Machine Learning Research
Apple Machine Learning Research
Vercel News
Vercel News
N
Netflix TechBlog - Medium
V2EX - 技术
V2EX - 技术
量子位
T
Threatpost
T
The Blog of Author Tim Ferriss
Y
Y Combinator Blog
T
Tor Project blog
A
Arctic Wolf
Microsoft Security Blog
Microsoft Security Blog
T
The Exploit Database - CXSecurity.com
大猫的无限游戏
大猫的无限游戏
T
Tailwind CSS Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
C
Check Point Blog
博客园 - Franky
Google DeepMind News
Google DeepMind News
The Register - Security
The Register - Security
The GitHub Blog
The GitHub Blog
L
LINUX DO - 热门话题

博客园 - Levins Dai

我知道你不知道我知道你不知道我知道你不知道 Pixel doubling, why's it there? Why does current running process always be mapped to slot 0? 金刚的爱 - Levins Dai - 博客园 How to send class 0 message on Windows Mobile 5.0? 新年音乐会 再说GSM SMS文字短信编码与长度 Windows Mobile 文字短信的长度 - Levins Dai 国家地理选美中国 木兰秋猎 - Levins Dai - 博客园 30 years anniversary of Microsoft Back from off site meeting 摄影是什么? Talking about Talking about 谈论谈论好男人 关于Naming的故事 两个星期,两条旧闻 On Board Day 3G和Windows XP 是卖书还是送书?
What's the difference between GetThreadPriority and CeGetThreadPriority?
Levins Dai · 2006-01-15 · via 博客园 - Levins Dai

In Win32, every single thread has a priority ranging from 0 (lowest priority) to 31 (highest priority). The priority value is determined by both thread priority level and process priority class. GetThreadPriority returns priority level only, you still need to call GetPriorityClass before figuring out the thread priority.

But things are quite different on device side. WinCE 5.0 is designed to support 256 thread priorities but no priority class any more. Both CeGetThreadPriority and GetThreadPriority can be called directly to retrieve a thread priority. Depending on which thread that being queried, the return value of CeGetThreadPriority could range from 0 to 255. Nevertheless, GetThreadPriority only supports application thread with priorities from 248 to 255.

GetThreadPriority is preserved for backward (before WinCE 3.0) compatibility reason. You can safely forget the legacy function and use CeGetThreadPriority instead unless you are porting the applications to desktop, or vice versa.