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

推荐订阅源

V
Visual Studio Blog
Recent Announcements
Recent Announcements
雷峰网
雷峰网
The GitHub Blog
The GitHub Blog
罗磊的独立博客
月光博客
月光博客
J
Java Code Geeks
A
About on SuperTechFans
Microsoft Security Blog
Microsoft Security Blog
D
Docker
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
F
Fortinet All Blogs
U
Unit 42
C
Check Point Blog
Martin Fowler
Martin Fowler
有赞技术团队
有赞技术团队
博客园 - 叶小钗
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
酷 壳 – CoolShell
酷 壳 – CoolShell
Blog — PlanetScale
Blog — PlanetScale
大猫的无限游戏
大猫的无限游戏
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
阮一峰的网络日志
阮一峰的网络日志
MyScale Blog
MyScale Blog

博客园 - 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 CeGet...
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.