Click or drag to resize
Xcalibur Systems LLC Logo

ProcessHelperGetThreadTimes Method

Retrieves timing information for the specified thread.

GetThreadTimes function


Namespace: Xcalibur.NativeMethods.V2.Processes
Assembly: Xcalibur.NativeMethods.V2 (in Xcalibur.NativeMethods.V2.dll) Version: 1.0.1.0
Syntax
[DllImportAttribute("kernel32.dll", SetLastError = true)]
public static bool GetThreadTimes(
	IntPtr handle,
	out long creation,
	out long exit,
	out long kernel,
	out long user
)

Parameters

handle  IntPtr
A handle to the thread whose timing information is sought. The handle must have the or access right.
creation  Int64
A pointer to a FILETIME structure that receives the creation time of the thread.
exit  Int64
A pointer to a FILETIME structure that receives the exit time of the thread. If the thread has not exited, the content of this structure is undefined.
kernel  Int64
A pointer to a FILETIME structure that receives the amount of time that the thread has executed in kernel mode.
user  Int64
A pointer to a FILETIME structure that receives the amount of time that the thread has executed in user mode.

Return Value

Boolean
If the function fails, the return value is zero. To get extended error information, call .
See Also