利用ReadDirectoryChangesW加重叠IO完美解决目录监控

上传者: puiyang00 | 上传时间: 2023-03-29 07:57:46 | 文件大小: 842KB | 文件类型: 7Z
将ReadDirectoryChangesW函数利用重叠IO技术单独封装成线程类,完美的实现了目录文件变更的监控(支持UNC路径监控),CPU和内存占用低,无数据丢失项,使用简单方便,可以自行修改扩展功能。代码简洁容易理解。

文件下载

资源详情

[{"title":"( 21 个子文件 842KB ) 利用ReadDirectoryChangesW加重叠IO完美解决目录监控","children":[{"title":"Test","children":[{"title":"Test.rc <span style='color:#111;'> 12.30KB </span>","children":null,"spread":false},{"title":"Test.h <span style='color:#111;'> 430B </span>","children":null,"spread":false},{"title":"stdafx.cpp <span style='color:#111;'> 137B </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"Test.exe <span style='color:#111;'> 2.09MB </span>","children":null,"spread":false}],"spread":true},{"title":"DirMonitor.h <span style='color:#111;'> 4.50KB </span>","children":null,"spread":false},{"title":"Test.vcxproj.filters <span style='color:#111;'> 2.30KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"version.manifest <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"Test.rc2 <span style='color:#111;'> 664B </span>","children":null,"spread":false},{"title":"toolbar1.bmp <span style='color:#111;'> 2.87KB </span>","children":null,"spread":false},{"title":"Test.ico <span style='color:#111;'> 66.19KB </span>","children":null,"spread":false}],"spread":true},{"title":"stdafx.h <span style='color:#111;'> 1.59KB </span>","children":null,"spread":false},{"title":"targetver.h <span style='color:#111;'> 234B </span>","children":null,"spread":false},{"title":"Test.vcxproj.user <span style='color:#111;'> 143B </span>","children":null,"spread":false},{"title":"Test.vcxproj <span style='color:#111;'> 6.22KB </span>","children":null,"spread":false},{"title":"Test.aps <span style='color:#111;'> 110.22KB </span>","children":null,"spread":false},{"title":"resource.h <span style='color:#111;'> 3.41KB </span>","children":null,"spread":false},{"title":"TestDlg.cpp <span style='color:#111;'> 9.83KB </span>","children":null,"spread":false},{"title":"TestDlg.h <span style='color:#111;'> 1.58KB </span>","children":null,"spread":false},{"title":"Test.cpp <span style='color:#111;'> 1.92KB </span>","children":null,"spread":false},{"title":"DirMonitor.cpp <span style='color:#111;'> 10.02KB </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 3.01KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明