How do you go about querying running processes to find out what folders or files they have locked? (i.e. you go to eject a drive and you're told that it can't be ejected because it's in use)
I'd like to either get an "off the shelf" download, or write a .NET 3.5 app to do this (primarily a Windows question).