There are millions of questions how to know what process is locking some file programmatically. However my boss told me today that since Windows 2008 R2 there is some new possibility. As far as now I can:
a. use Handle.exe in a subprocess and capture output
b. use some nasty long code that examines all the processes and enumerates handles opened by them
That is ok, but does anyone know about those new possibilities (I believe new API calls in Windows 2008R2)?
It seems Raymond Chen answered my question with Restart Manager 🙂