InterlockedOr function (wdm.h)
The InterlockedOr routine atomically computes a bitwise OR operation.
Syntax
LONG InterlockedOr(
[in, out] LONG volatile *Destination,
[in] LONG Value
);
Parameters
[in, out] Destination
A pointer to the variable to be ORed with Value. The result of the operation is stored in the variable.
[in] 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
Requirement | Value |
---|---|
Target Platform | Desktop |
Header | wdm.h (include Wdm.h, Ntddk.h, Ntifs.h, Miniport.h) |
IRQL | Any level |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for