NdisInterlockedDecrement function

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

Syntax


LONG NdisInterlockedDecrement(
  _In_ PLONG Addend
);

Parameters

Addend [in]

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.

Requirements

Target platform

Universal

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.

Header

Ndis.h (include Ndis.h)

Library

Ndis.lib

IRQL

Any level

See also

NdisInterlockedIncrement

 

 

Send comments about this topic to Microsoft

Show: