 |
ProcessHelperGetThreadTimes Method |
Namespace: Xcalibur.NativeMethods.V2.ProcessesAssembly: 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
)<DllImportAttribute("kernel32.dll", SetLastError := true>]
Public Shared Function GetThreadTimes (
handle As IntPtr,
<OutAttribute> ByRef creation As Long,
<OutAttribute> ByRef exit As Long,
<OutAttribute> ByRef kernel As Long,
<OutAttribute> ByRef user As Long
) As Booleanpublic:
[DllImportAttribute(L"kernel32.dll", SetLastError = true)]
static bool GetThreadTimes(
IntPtr handle,
[OutAttribute] long long% creation,
[OutAttribute] long long% exit,
[OutAttribute] long long% kernel,
[OutAttribute] long long% user
)
[<DllImportAttribute("kernel32.dll", SetLastError = true)>]
static member GetThreadTimes :
handle : IntPtr *
creation : int64 byref *
exit : int64 byref *
kernel : int64 byref *
user : int64 byref -> bool 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
BooleanIf the function fails, the return value is zero. To get extended error
information, call .
See Also