InterlockedXor function (miniport.h)

The InterlockedOr routine atomically computes a bitwise exclusive OR operation.

Syntax

LONG InterlockedXor(
  [in, out] LONG volatile *Destination,
  [in]      LONG          Value
);

Parameters

[in, out] Destination

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

[in] Value

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

Return value

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

Remarks

InterlockedXor atomically computes *Destination^=Value.

Interlocked operations cannot be used on non-cached memory.

Requirements

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

See also

InterlockedAnd

InterlockedOr