NdisInterlockedIncrement function

The NdisInterlockedIncrement function increments a caller-supplied variable as an atomic operation.

Syntax


LONG NdisInterlockedIncrement(
  _In_  PLONG Addend
);

Parameters

Addend [in]

A pointer to a variable of type LONG.

Return value

NdisInterlockedIncrement returns the incremented value.

Remarks

NdisInterlockedIncrement cannot be used on variables in pageable memory.

NdisInterlockedIncrement is atomic only with respect to other NdisInterlockedXxx calls.

Requirements

Version

Supported for NDIS 6.0 and NDIS 5.1 drivers (see NdisInterlockedIncrement (NDIS 5.1)) in Windows Vista. Supported for NDIS 5.1 drivers (see NdisInterlockedIncrement (NDIS 5.1)) in Windows XP.

Header

Ndis.h (include Ndis.h)

IRQL

Any level

See also

NdisInterlockedDecrement

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft