In Windows, how do I determine (using C#) what process locked a file?
Third-party tools are helpful, but not what I\'m looking for.
You absolutely don't need to run in Kernel mode (!!!) It's a Win32 FAQ since Windows 95 (!) (in C, Google groups, Win32) : read the handle table, from User mode of course, and get the PID from the File handle ...