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