C++/Win32: How to wait for a pending delete to complete
There are other processes in Windows that want a piece of that file. The search indexer is an obvious candidate. Or a virus scanner. They’ll open the file for full sharing, including FILE_SHARE_DELETE, so that other processes aren’t heavily affected by them opening the file. That usually works out well, unless you create/write/delete at a … Read more