我尝试找出一种方法来获取进程的已使用文件,以显示该进程当前打开/使用的文件。
我发现列出使用过的文件。 有在 C# 中获取此内容的链接吗?
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 there a link to get this in C#?
NtQuerySystemInformation 函数似乎是一个合乎逻辑的函数起点,但您必须通过 P/Invoke 访问它。
从我的谷歌搜索来看,似乎很多人过去都想到过这种方法,但它从未被记录在案(至少没有在 PInvoke.net)。
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 评论 0
接受
发布评论
评论(1)
NtQuerySystemInformation 函数似乎是一个合乎逻辑的函数起点,但您必须通过 P/Invoke 访问它。
从我的谷歌搜索来看,似乎很多人过去都想到过这种方法,但它从未被记录在案(至少没有在 PInvoke.net)。
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).