LONG InterlockedIncrement(lplVal) | |||||
LPLONG lplVal; | /* address of the variable to increment | */ |
The InterlockedIncrement function adds one to the specified LONG variable.
lplVal
Points to the LONG variable to increment.
If the result of the increment is zero, the return value is zero.
If the result of the increment is less than zero, the return value is less than zero. If the result of the increment is greater than zero, the return value is greater than zero. In these cases, the return value may not equal the result of the increment.
The variable pointed to by the lplVal parameter must be aligned on a 32-bit boundary. If it is not aligned, this function will fail on multiprocessor x86 systems. It may be in shared or in private memory.