C++/Win32: How to wait for a pending delete to complete

前端 未结 13 1064
不思量自难忘°
不思量自难忘° 2020-11-30 03:20

Solved:

  • Workable solution: sbi\'s answer
  • Explanation for what really happens: Hans\'s answer
  • Explanation for why OpenFile do
13条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-30 03:58

    Is there a way to detect that a file is pending deletion?

    Use the GetFileInformationByHandleEx function with the FILE_STANDARD_INFO structure.

    But the function can't solve your problem. sbi's solution neither.

提交回复
热议问题