How do I get the list of open file handles by process in C#?

后端 未结 7 1362
春和景丽
春和景丽 2020-11-22 13:01

How do I get the list of open file handles by process id in C#?

I\'m interested in digging down and getting the file names as well.

Looking for the program

7条回答
  •  有刺的猬
    2020-11-22 13:45

    You can P/INVOKE into the NtQuerySystemInformation function to query for all handles and then go from there. This Google groups discussion has details.

提交回复
热议问题