您的位置:寻梦网首页编程乐园VB 编程VB API 指南
GetThreadPriority
VB声明
Declare Function GetThreadPriority Lib "kernel32" Alias "GetThreadPriority" (ByVal hThread As Long) As Long
说明
获取指定线程的优先级设置
返回值
Long,返回带有THREAD_PRIORITY_???前缀的某个常数,它规定了线程的优级。THREAD_PRIORITY_ERROR_RETURN表示出错
参数表
参数 类型及说明
hThread Long,线程的句柄
注解
线程的优先级同进程的优先级类组合在一起决定了线程的实际优先级