I know there is no WINAPI which would do it, but if a thread is hung and holds an open handle of file. how do we determine the thread id and Terminate it within our processes.
I m not talking about releasing file locks in other processes but within my own process.
it could also be possible that thread has crashed / terminated without closing the handle.