InterlockedAnd function (miniport.h)
The InterlockedAnd macro atomically computes a bitwise AND operation.
Syntax
LONG InterlockedAnd(
[in, out] LONG volatile *Destination,
[in] LONG Value
);
Parameters
[in, out] Destination
A pointer to the variable to be ANDed with Value. The result of the operation is stored in the variable.
[in] Value
Specifies the value to be ANDed with the variable that is pointed to by Destination.
Return value
InterlockedAnd returns the original value stored in the variable pointed to by Destination.
Remarks
InterlockedAnd atomically computes *Destination&=Value.
Interlocked operations cannot be used on non-cached memory.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Available starting with Windows 2000. |
Target Platform | Desktop |
Header | miniport.h (include Wdm.h, Ntddk.h, Ntifs.h, Miniport.h) |
IRQL | Any level |