|
ProcessHelperQueryProcessCycleTime 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 QueryProcessCycleTime(
IntPtr processHandle,
out ulong cycleTime
)
<DllImportAttribute("kernel32.dll">]
Public Shared Function QueryProcessCycleTime (
processHandle As IntPtr,
<OutAttribute> ByRef cycleTime As ULong
) As Boolean
public:
[DllImportAttribute(L"kernel32.dll")]
static bool QueryProcessCycleTime(
IntPtr processHandle,
[OutAttribute] unsigned long long% cycleTime
)
[<DllImportAttribute("kernel32.dll")>]
static member QueryProcessCycleTime :
processHandle : IntPtr *
cycleTime : uint64 byref -> bool
Parameters
- processHandle IntPtr
- A handle to the process. The handle must have the
or
access right.
- cycleTime UInt64
- he number of CPU clock cycles used by the threads of the process.
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