I need to use Interlocked Operations (CompareExchange, Increment etc.) against memory in MemoryMappedFile
s in .NET.
I found this answer to a very similar question. The problem is that Interlocked Operations are not exported from kernel32 (or any other) dll on 64 bit OS (see e.g. http://blog.kalmbachnet.de/?postid=46).
Is there any other way how I can call Interlocked functions on a block of memory in a 64bit .NET process?