|
ProcessHelperQueryThreadCycleTime Method |
Namespace: Xcalibur.NativeMethods.V2.ProcessesAssembly: Xcalibur.NativeMethods.V2 (in Xcalibur.NativeMethods.V2.dll) Version: 1.0.1.0
Syntax [DllImportAttribute("kernel32.dll")]
public static bool QueryThreadCycleTime(
IntPtr threadHandle,
out ulong cycleTime
)
<DllImportAttribute("kernel32.dll">]
Public Shared Function QueryThreadCycleTime (
threadHandle As IntPtr,
<OutAttribute> ByRef cycleTime As ULong
) As Boolean
public:
[DllImportAttribute(L"kernel32.dll")]
static bool QueryThreadCycleTime(
IntPtr threadHandle,
[OutAttribute] unsigned long long% cycleTime
)
[<DllImportAttribute("kernel32.dll")>]
static member QueryThreadCycleTime :
threadHandle : IntPtr *
cycleTime : uint64 byref -> bool
Parameters
- threadHandle IntPtr
- A handle to the thread. The handle must have the
or
access right.
- cycleTime UInt64
- The number of CPU clock cycles used by the thread. This value
includes cycles spent in both user mode and kernel mode.
Return Value
BooleanIf the function fails, the return value is zero. To get extended error
information, call .
See Also