SetThreadPriority 函数的优先级常量只有3个(高,正常,低),请问有没有“高于标准”?谢谢~~~
解决方案 »
- delphi Stringgrid初始化问题。
- Delphi 怎樣作一個文件夾加密程序
- 求教!DateTimePicker怎么设置时间?
- 关于Listview---用listview显示房态图
- 如何删掉opendialog打开目录下的文件?
- 关于idhttp.head()的问题帮个忙
- 传入一个字符串如(10+(3*4+8)*6)/(7+3),求其运算结果,没思路!(再现等待)
- 请问大虾们什么是com编程,可以用delphi实现么
- 有一个奇怪的现象,大家来看看
- 急!急!!急!!!用installsheld打包时,若想安装后在程序组中出现两个应用程序,应怎么设置?
- 关于报表的问题
- 三层结构客户端连接应用服务器问题
1 Priority 1 point above the priority class. THREAD_PRIORITY_BELOW_NORMAL
-1 Priority 1 point below the priority class. THREAD_PRIORITY_HIGHEST
2 Priority 2 points above the priority class. THREAD_PRIORITY_IDLE
-15 Base priority of 1 for IDLE_PRIORITY_CLASS, BELOW_NORMAL_PRIORITY_CLASS, NORMAL_PRIORITY_CLASS, ABOVE_NORMAL_PRIORITY_CLASS, or HIGH_PRIORITY_CLASS processes, and a base priority of 16 for REALTIME_PRIORITY_CLASS processes. THREAD_PRIORITY_LOWEST
-2 Priority 2 points below the priority class. THREAD_PRIORITY_NORMAL
0 Normal priority for the priority class. THREAD_PRIORITY_TIME_CRITICAL
15 Base priority of 15 for IDLE_PRIORITY_CLASS, BELOW_NORMAL_PRIORITY_CLASS, NORMAL_PRIORITY_CLASS, ABOVE_NORMAL_PRIORITY_CLASS, or HIGH_PRIORITY_CLASS processes, and a base priority of 31 for REALTIME_PRIORITY_CLASS processes.
SetPriorityClass
(VCL源码中只列出了四个)
ABOVE_NORMAL_PRIORITY_CLASS
0x00008000 Process that has priority above NORMAL_PRIORITY_CLASS but below HIGH_PRIORITY_CLASS.
Windows NT and Windows Me/98/95: This value is not supported. BELOW_NORMAL_PRIORITY_CLASS
0x00004000 Process that has priority above IDLE_PRIORITY_CLASS but below NORMAL_PRIORITY_CLASS.
Windows NT and Windows Me/98/95: This value is not supported. HIGH_PRIORITY_CLASS
0x00000080 Process that performs time-critical tasks that must be executed immediately. The threads of the process preempt the threads of normal or idle priority class processes. An example is the Task List, which must respond quickly when called by the user, regardless of the load on the operating system. Use extreme care when using the high-priority class, because a high-priority class application can use nearly all available CPU time. IDLE_PRIORITY_CLASS
0x00000040 Process whose threads run only when the system is idle. The threads of the process are preempted by the threads of any process running in a higher priority class. An example is a screen saver. The idle-priority class is inherited by child processes. NORMAL_PRIORITY_CLASS
0x00000020 Process with no special scheduling needs. REALTIME_PRIORITY_CLASS
0x00000100 Process that has the highest possible priority. The threads of the process preempt the threads of all other processes, including operating system processes performing important tasks. For example, a real-time process that executes for more than a very brief interval can cause disk caches not to flush or cause the mouse to be unresponsive.
ABOVE_NORMAL_PRIORITY_CLASS定义在哪里?我只找到了后4个,前两个用不了。
ABOVE_NORMAL_PRIORITY_CLASS=$0x00008000;
BELOW_NORMAL_PRIORITY_CLASS=$0x00004000;