Share via


NdisInterlockedDecrement (Windows Embedded CE 6.0)

1/6/2010

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

Syntax

LONG NdisInterlockedDecrement(
  PLONG Addend
);

Parameters

  • Addend
    [in] Points to the variable to be decremented.

Return Value

The return value is 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

Header ndis.h
Library ndis.lib
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

NDIS Library Functions
NdisInterlockedIncrement