C++/Win32: How to wait for a pending delete to complete
问题 Solved: Workable solution: sbi\'s answer Explanation for what really happens: Hans\'s answer Explanation for why OpenFile doesn\'t pass through \"DELETE PENDING\": Benjamin\'s answer The Problem: Our software is in large part an interpreter engine for a proprietary scripting language. That scripting language has the ability to create a file, process it, and then delete the file. These are all separate operations, and no file handles are kept open in between these operations. (I.e. during the