gpt4 book ai didi

c++ - 使用 WinAPI 找出锁定文件的内容

转载 作者:太空宇宙 更新时间:2023-11-04 11:50:37 25 4
gpt4 key购买 nike

有时,当我试图为我的进程之一删除一个 exe 文件时,我从 GetLastError 得到以下错误:

Error: 32
The process cannot access the file because it is being used by another process.

有没有一种方法可以使用 C++ 和 WinAPI 找出锁定该文件的内容?

最佳答案

适合我的最佳解决方案可以基于@IInspectable 建议的文章。查看我对你帖子的其他回复here .

关于c++ - 使用 WinAPI 找出锁定文件的内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18438437/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com