NdisGetCurrentProcessorCpuUsage - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ndis.h

VOID NdisGetCurrentProcessorCpuUsage(
  [out] PULONG pCpuUsage
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ndis-ndisgetcurrentprocessorcpuusage)

NdisGetCurrentProcessorCpuUsage function

Description

The NdisGetCurrentProcessorCpuUsage function returns the average amount of activity on the current processor since boot as a percentage.

Note This function is deprecated. Do not use it in your driver.

Parameters

pCpuUsage [out]

A pointer to a caller-supplied variable that receives the average usage of the current processor since boot, expressed as a percentage.

Remarks

The NdisGetCurrentProcessorCpuUsage function returns the average amount of activity on the current processor since the last boot, not the current usage level. This information is not particularly useful. Therefore, we recommend that you don't use NdisGetCurrentProcessorCpuUsage in your driver.

As an alternative, you can use NdisGetCurrentProcessorCounts to see whether the processor is currently loaded.

See also

NdisGetCurrentProcessorCounts