InterlockedExchange64 in XP?

Hi,

I need to use InterlockedExchange64 to update 64 bit size variable atomically but I found out that it is only available in Vista. However, my problem is that I have to use XP for this so I was just wondering if anybody knows how to get around this problem.

If you have any suggestion, please let me know.
Thank you.

YEH