NdisInterlockedIncrement (NDIS 5.1) function

Note   NDIS 5. x has been deprecated and is superseded by NDIS 6. x. For new NDIS driver development, see Network Drivers Starting with Windows Vista. For information about porting NDIS 5. x drivers to NDIS 6. x, see Porting NDIS 5.x Drivers to NDIS 6.0.

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

Syntax

LONG NdisInterlockedIncrement(
  _In_ PLONG Addend
);

Parameters

  • Addend [in]
    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

Target platform

Universal

Version

See NdisInterlockedIncrement.

Header

Ndis.h (include Ndis.h)

Library

Ndis.lib

IRQL

Any level

See also

NdisInterlockedDecrement

 

 

Send comments about this topic to Microsoft