Private Declare Function GetProcessTimes Lib "kernel32" (ByVal hProcess As Long, lpCreationTime As FILETIME, lpExitTime As FILETIME, lpKernelTime As FILETIME, lpUserTime As FILETIME) As Long
Attribute GetProcessTimes.VB_HelpID = 2139
Attribute GetProcessTimes.VB_Description = "Help available in Visual Basic Programmer's Guide to Win32 API CD ROM"
Private Declare Function GetTickCount Lib "kernel32" () As Long
Attribute GetTickCount.VB_HelpID = 2356
Attribute GetTickCount.VB_Description = "Help available in Visual Basic Programmer's Guide to Win32 API CD ROM"
Private Declare Function GetCurrentProcess Lib "kernel32" () As Long
Attribute GetCurrentProcess.VB_HelpID = 2141
Attribute GetCurrentProcess.VB_Description = "Help available in Visual Basic Programmer's Guide to Win32 API CD ROM"
Private Type FILETIME
dwLowDateTime As Long
dwHighDateTime As Long
End Type
' This is the reference user time as marked.
Private ReferenceTime As FILETIME
' This is the marked user time for comparisons.
Private MarkTime As FILETIME
' This is the reference kernel time as marked.
Private ReferenceKTime As FILETIME
' This is the marked kernel time for comparisons.
Private MarkKTime As FILETIME
' Reference TickCount
Private ReferenceTick As Long
' The marked tick count for comparisons
Private MarkTick As Long
' A variable to hold the current process handle to use
Private ThisProcess As Long
' Dummy filetime structures that we won't actually use