Performs an atomic subtraction of two values.
unsigned InterlockedExchangeSubtract( unsigned volatile *Addend, unsigned Value );
A pointer to a variable. The value of this variable is replaced with the result of the operation.
The value to be subtracted from the variable pointed to by the Addend parameter.
The function returns the initial value of the Addend parameter.
This function generates a full memory barrier (or fence) to ensure that memory operations are completed in order.
|Minimum supported client||Windows 7 [desktop apps | UWP apps]|
|Minimum supported server||Windows Server 2008 R2 [desktop apps | UWP apps]|
|Header||winbase.h (include Windows.h)|