开发者

How to get opened/used files of a running process

开发者 https://www.devze.com 2023-02-06 15:46 出处:网络
I try to figure out a way to get the used files of a process to show which files are currently opened / used by this process.

I try to figure out a way to get the used files of a process to show which files are currently opened / used by this process.

I have found Listing Used Files.

Is 开发者_JAVA百科there a link to get this in C#?


The NtQuerySystemInformation function seems like a logical starting point, but you'd have to access it via P/Invoke.

From my googling it seems like many people have thought of this approach in the past, but it has never been documented (at least not on PInvoke.net).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号