c#怎样判断一个文件是被哪个进程打开的呢

piaoxin 2009-04-30 03:01:18
rt
...全文
179 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
SlaughtChen 2009-04-30
  • 打赏
  • 举报
回复
帮顶
格拉 2009-04-30
  • 打赏
  • 举报
回复
帮顶
cppfaq 2009-04-30
  • 打赏
  • 举报
回复
Only kernel mode code can enumerate which files are opened by other
processes, for example, the Handle utility
(http://www.microsoft.com/technet/sys...eads/Handle.ms
px) is using a driver to list all open handles by all processes.

Therefore your objective to do it in .NET might not be possible.
LemIST 2009-04-30
  • 打赏
  • 举报
回复
http://www.codeproject.com/KB/files/FileSpyArticle.aspx
deng520159 2009-04-30
  • 打赏
  • 举报
回复
没做过,不知道window API能否实现,

111,126

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Creator Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧