InterlockedAnd - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// miniport.h

LONG InterlockedAnd(
  [in, out] LONG volatile *Destination,
  [in]      LONG          Value
);
View the official Windows Driver Kit DDI reference
// wdm.h

LONG InterlockedAnd(
  [in, out] LONG volatile *Destination,
  [in]      LONG          Value
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-miniport-interlockedand)

InterlockedAnd function (miniport.h)

Description

The InterlockedAnd macro atomically computes a bitwise AND operation.

Parameters

Destination [in, out]

A pointer to the variable to be ANDed with Value. The result of the operation is stored in the variable.

Value [in]

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.

See also

InterlockedOr

InterlockedXor


Windows Driver Kit DDI reference (nf-wdm-interlockedand)

InterlockedAnd function (wdm.h)

Description

The InterlockedAnd macro atomically computes a bitwise AND operation.

Parameters

Destination [in, out]

A pointer to the variable to be ANDed with Value. The result of the operation is stored in the variable.

Value [in]

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.

See also

InterlockedOr

InterlockedXor