[英]Is there any way to put watch on thousand directory using one file handle
Environment Windows 7.0, visual studio 2010 (VC++) 环境Windows 7.0,Visual Studio 2010(VC ++)
Hi, I want to put watch on thousand directory using window api FindFirstChangeNotification which is creating thousand file handles. 嗨,我想使用窗口API FindFirstChangeNotification将监视放在数千个目录上,该API正在创建数千个文件句柄。 Is there any way to put watch on thousand directory using one file handle?
有没有办法使用一个文件句柄将监视放在数千个目录上?
Thanks in advance, Vijay 在此先感谢,维杰
You can do as Arpit says and put the watch on a higher-level directory which contains those directories. 您可以按照Arpit所说的做,然后将手表放在包含这些目录的更高级别的目录中。
Alternatively you can use the USN journal: 或者,您可以使用USN日记:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.