如何判断一个文件是否被其它应用程序占用。

lifangcai 2007-09-12 01:29:01
如何判断一个文件是否被其它应用程序占用。
...全文
929 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
lifangcai 2007-09-13
  • 打赏
  • 举报
回复
在线求救,有没有人知道如何判断一个文件被几个程序打开?
lifangcai 2007-09-12
  • 打赏
  • 举报
回复
本想使用file.open()的,可是自己本身的程序是有占用文件的。现在希望能知道除自己的程序外有没有其它程序占用着文件?
lifangcai 2007-09-12
  • 打赏
  • 举报
回复
不明白呀????
shenyi0106 2007-09-12
  • 打赏
  • 举报
回复
作为windows 9x驱动,FileMon的核心——Filevxd.vxd,是虚拟设备驱动程序,它是动态装载的,由VXD服务在安装文件系统过滤驱动是初始化的,并把自己插入文件系统请求链表中(IRP)。在windows NT系统上,FileMon的核心是一个文件系统过滤驱动,它创建并附着一个设备过滤对象(过滤驱动)到文件系统的目标设备上(硬件驱动对象),因此FileMon直接由驱动来监视系统中所有的IRPs和FastIO请求。当FileMon监视到文件打开,创建或者关闭时,它更新一张内核hash表,以便在内核文件句柄和文件路径之间建立映射关系。无论什么时候,只要它监视到基于句柄的调用,它都会查找hash表中的句柄以取得显示的全路径名。如果基于句柄的访问一个在FileMon启动以前打开的文件,FileMon将因为查找hash表映射失败而简单的用一个句柄来替代。
cpio 2007-09-12
  • 打赏
  • 举报
回复
这个有点麻烦啊,转个文章你看看吧:

For the Windows 9x driver, the heart of FileMon is in the virtual device driver, Filevxd.vxd. It is dynamically loaded, and in its initialization it installs a file system filter via the VxD service, IFSMGR_InstallFileSystemApiHook, to insert itself onto the call chain of all file system requests. On Windows NT the heart of FileMon is a file system driver that creates and attaches filter device objects to target file system device objects so that FileMon will see all IRPs and FastIO requests directed at drives. When FileMon sees an open, create or close call, it updates an internal hash table that serves as the mapping between internal file handles and file path names. Whenever it sees calls that are handle based, it looks up the handle in the hash table to obtain the full name for display. If a handle-based access references a file opened before FileMon started, FileMon will fail to find the mapping in its hash table and will simply present the handle's value instead.


Information on accesses is dumped into an ASCII buffer that is periodically copied up to the GUI for it to print in its listbox.

http://www.sysinternals.com/Utilities/Filemon.html
随着元宇宙概念兴起与虚拟数字人技术快速发展,虚拟主播、在线教育虚拟助教、元宇宙社交等应用场景对实时动作表情驱动系统提出更高需求。当前主流动作捕捉方案多依赖专业光学动捕设备或深度相机,设备成本高昂、部署复杂,难以在普通用户场景普及。本研究设计并实现一套基于普通单目摄像头的虚拟数字人实时动作表情驱动系统,旨在降低数字人内容生产门槛。系统采用Unity作为主开发引擎,结合Blender进行数字人模型构建与BlendShape表情系统制作,使用MediaPipe框架实现人脸关键点检测与人体姿态估计,通过C#脚本完成实时数据处理与渲染控制。系统包含五个关键模块:人脸关键点检测(MediaPipe Face Mesh提取468个关键点)、人体姿态估计(MediaPipe Pose识别33个骨骼关键点)、表情迁移映射、动作平滑优化(卡尔曼滤波与贝塞尔曲线插值消除抖动)、实时渲染(60fps流畅渲染,支持直播推流与视频录制)。实验结果表明,系统在普通笔记本上可实现60fps实时驱动,人脸关键点检测准确率达98.7%,人体姿态估计平均误差小于5像素,表情迁移相似度达92.3%。 【课程报告内容】 摘要 第1章 绪论 第2章 相关技术与理论基础 第3章 系统架构设计 第4章 关键模块设计与实现 第5章 实验与结果分析 第6章 总结与展望 参考文献

2,586

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 资源
社区管理员
  • 资源
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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