| VB声明 |
| Declare Function GetThreadTimes Lib "kernel32"
Alias "GetThreadTimes" (ByVal hThread As Long, lpCreationTime As FILETIME,
lpExitTime As FILETIME, lpKernelTime As FILETIME, lpUserTime As FILETIME) As Long |
| 说明 |
| 获取与一个线程的经过时间有关的信息 |
| 返回值 |
| Long,非零表示成功,零表示失败。会设置GetLastError |
| 参数表 |
| 参数 |
类型及说明 |
| hThread |
Long,一个线程句柄 |
| lpCreationTime |
FILETIME,指定一个FILETIME结构,在其中装载线程的创建时间 |
| lpExitTime |
FILETIME,指定一个FILETIME结构,在其中装载线程的中止时间 |
| lpKernelTime |
FILETIME,指定一个FILETIME结构,在其中装载线程花在内核模式上的总时间 |
| lpUserTime |
FILETIME,指定一个FILETIME结构,在其中装载线程花在用户模式上的总时间 |
| 适用平台 |
Windows NT |