Is an atomic file rename (with overwrite) possible on Windows?
Win32 does not guarantee atomic file meta data operations. I'd provide a citation, but there is none - that fact that there's no written or documented guarantee means as much.
You're going to have to write your own routines to support this. It's unfortunate, but you can't expect win32 to provide this level of service - it simply wasn't designed for it.
See ReplaceFile()
in Win32 (http://research.microsoft.com/pubs/64525/tr-2006-45.pdf)