NdisInterlockedDecrement (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.
NdisInterlockedDecrement decrements a caller-supplied variable of type LONG as an atomic operation.
Syntax
LONG NdisInterlockedDecrement(
_In_ PLONG Addend
);
Parameters
- Addend [in]
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 |
|
Header |
Ndis.h (include Ndis.h) |
Library |
Ndis.lib |
IRQL |
<= DISPATCH_LEVEL |
See also