
6 Nov
2008
6 Nov
'08
5:34 p.m.
InterlockedCompareExchange only works with LONG, and casting is not a good way around the problem. Perhaps you want InterlockedCompareExchangePointer, which works with PVOID?