NdisInterlockedDecrement function

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

Syntax

void NdisInterlockedDecrement(
   Addend
);

Parameters

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

   
Windows version 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