SetThreadPriority |
VB声明 |
|
Declare Function SetThreadPriority Lib "kernel32" Alias "SetThreadPriority" (ByVal hThread As Long, ByVal nPriority As Long) As Long |
|
说明 |
|
设定线程的优先级别 |
|
返回值 |
|
Long,非零表示成功,零表示失败。会设置GetLastError |
|
参数表 |
|
参数 |
类型及说明 |
hThread |
Long,线程句柄 |
nPriority |
Long,返回带有THREAD_PRIORITY_???前缀的某个函数,它定义了线程的优级。 |
注解 |
|
线程的优先级同进程的优先级类组合在一起就决定了线程的实际优先级 |
Top |