Find out what's holding a lock on a file with WinAPIs
At times when I'm trying to delete an exe file for one of my processes I
get the following error from GetLastError:
Error: 32
The process cannot access the file because it is being used by another
process.
Is there a way to find out what's holding a lock on that file using C++
and WinAPIs?
No comments:
Post a Comment