Bewerken

Delen via


NdisInterlockedIncrement macro (ndis.h)

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

Syntax

void NdisInterlockedIncrement(
  [in]  Addend
);

Parameters

[in] Addend

A pointer to a variable of type LONG.

Return value

None

Remarks

NdisInterlockedIncrement cannot be used on variables in pageable memory.

NdisInterlockedIncrement is atomic only with respect to other NdisInterlockedXxx calls.

Requirements

Requirement Value
Minimum supported client 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.
Target Platform Universal
Header ndis.h (include Ndis.h)
Library Ndis.lib
IRQL Any level

See also

NdisInterlockedDecrement