要求如下:
任意指定一个目录,使其成为一个特殊的目录,使move或者paste到该目录下的文件或者目录是自动修改过的。比如说拖一个文件到该目录,拖过来的不是文件的原样copy,而是经过我们写的程序处理过的结果文件。不知如何下手,请各位支招,谢谢了

解决方案 »

  1.   

    FindFirstChangeNotificationThe FindFirstChangeNotification function creates a change notification handle and sets up initial change notification filter conditions. A wait on a notification handle succeeds when a change matching the filter conditions occurs in the specified directory or subtree. The function does not report changes to the specified directory itself.This function does not indicate the change that satisfied the wait condition. To retrieve information about the specific change as part of the notification, use the ReadDirectoryChangesW function.
    HANDLE FindFirstChangeNotification(
      LPCTSTR lpPathName,
      BOOL bWatchSubtree,
      DWORD dwNotifyFilter
    );