NdisInterlockedDecrement macro (ndis.h)

The NdisInterlockedDecrement function decrements a caller-supplied variable of type LONG as an atomic operation.

Syntax

void NdisInterlockedDecrement(
  [in]  Addend
);

Parameters

[in] Addend

A pointer to the variable to be decremented.

Return value

NdisInterlockedDecrement returns the decremented value.

Remarks

NdisInterlockedDecrement can safely be used on variables in pageable memory.

NdisInterlockedDecrement is atomic only with respect to other NdisInterlockedXxx calls.

This macro is a wrapper around the InterlockedDecrement macro.

Requirements

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

See also

NdisInterlockedIncrement