Kernel32QueryIdleProcessorCycleTimeEx Method
Retrieves the accumulated cycle time for the idle thread on each logical processor in the specified processor group.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Kernel32.dll", ExactSpelling = true, SetLastError = true)]
public static bool QueryIdleProcessorCycleTimeEx(
ushort group,
ref uint refBufferLength,
IntPtr processorIdleCycleTime
)
<DllImportAttribute("Kernel32.dll", ExactSpelling := true, SetLastError := true>]
Public Shared Function QueryIdleProcessorCycleTimeEx (
group As UShort,
ByRef refBufferLength As UInteger,
processorIdleCycleTime As IntPtr
) As Boolean
Dim group As UShort
Dim refBufferLength As UInteger
Dim processorIdleCycleTime As IntPtr
Dim returnValue As Boolean
returnValue = Kernel32.QueryIdleProcessorCycleTimeEx(group,
refBufferLength, processorIdleCycleTime)
public:
[DllImportAttribute(L"Kernel32.dll", ExactSpelling = true, SetLastError = true)]
static bool QueryIdleProcessorCycleTimeEx(
unsigned short group,
unsigned int% refBufferLength,
IntPtr processorIdleCycleTime
)
[<DllImportAttribute("Kernel32.dll", ExactSpelling = true, SetLastError = true)>]
static member QueryIdleProcessorCycleTimeEx :
group : uint16 *
refBufferLength : uint32 byref *
processorIdleCycleTime : IntPtr -> bool
No code example is currently available or this language may not be supported.
- group UInt16
-
The number of the processor group for which to retrieve the cycle time.
- refBufferLength UInt32
-
On input, specifies the size of the processorIdleCycleTime buffer, in bytes.
This buffer is expected to be 8 times the number of processors in the group.
On output, specifies the number of elements written to the buffer.
If the buffer size is not sufficient, the function fails and this parameter receives the required length of the buffer.
- processorIdleCycleTime IntPtr
-
The number of CPU clock cycles used by each idle thread.
If this parameter is ,
the function updates the refBufferLength parameter with the required length.
Boolean
If the function succeeds, the return value is
.
If the function fails, the return value is
.
To get extended error information, call
GetLastWin32Error.