NdisGetCurrentProcessorCpuUsage function (ndis.h)

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.
 

Syntax

void NdisGetCurrentProcessorCpuUsage(
  [out] PULONG pCpuUsage
);

Parameters

[out] pCpuUsage

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

Return value

None

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.

Requirements

Requirement Value
Minimum supported client Deprecated for NDIS 6.0 and later drivers in Windows Vista and later. Deprecated for NDIS 5.1 drivers (see NdisGetCurrentProcessorCpuUsage (NDIS 5.1)) in Windows XP and later.
Target Platform Universal
Header ndis.h (include Ndis.h)
Library Ndis.lib
IRQL Any level

See also

NdisGetCurrentProcessorCounts