Is there a way to enumerate a process with a given PID in Windows, and get a list of all his opened handles (locked files, etc.)?
EDIT: I don’t care about language. If it’s in .NET, I’d be glad, if it’s in WinApi (C), it won’t hurt. If in something else, I think I can rewrite it 🙂
I did a deep googling and found this article. This article gave a link to download source code:
I tried method in NtSystemInfoTest.cpp ( downloaded source code ) and it worked superbly.
The code has following declaimer:
I hope this helps you.