Is there another winapi call to detect which files are locked by a specific process then using duplicatehandle and ntquerysysteminformation?
I'm using restart manager api to register the files I'm looking for but, unfortunately, restart manager api only returns a list of processes but doesn't return a mapping which process holds which file(s).