InterlockedOr function

The InterlockedOr routine atomically computes a bitwise OR operation.

Syntax

LONG InterlockedOr(
  LONG volatile *Destination,
  LONG          Value
);

Parameters

Destination

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

Value

Specifies the value to be ORed with the variable that is pointed to by Destination.

Return Value

InterlockedOr returns the original value stored in the variable pointed to by Destination.

Remarks

InterlockedOr atomically computes *Destination|=Value.

Interlocked operations cannot be used on non-cached memory.

Requirements

   
Target Platform Desktop
Header wdm.h (include Wdm.h, Ntddk.h, Ntifs.h, Miniport.h)
IRQL Any level

See Also

InterlockedAnd

InterlockedXor