[DllImport("kernel32.dll")]
static extern IntPtr FindFirstChangeNotification(string lpPathName,
bool bWatchSubtree, uint dwNotifyFilter);
None.
Constants to pass for dwNotifyFilter. Found in winnt.h by searching for the ones used in the msdn example.
FILE_NOTIFY_CHANGE_FILE_NAME 0x00000001
FILE_NOTIFY_CHANGE_DIR_NAME 0x00000002
FILE_NOTIFY_CHANGE_ATTRIBUTES 0x00000004
FILE_NOTIFY_CHANGE_SIZE 0x00000008
FILE_NOTIFY_CHANGE_LAST_WRITE 0x00000010
FILE_NOTIFY_CHANGE_LAST_ACCESS 0x00000020
FILE_NOTIFY_CHANGE_CREATION 0x00000040
FILE_NOTIFY_CHANGE_SECURITY 0x00000100
Please add some!
Please add some!
System.IO.FileSystemWatcher
C++ Language example using this api call.
https://msdn.microsoft.com/en-us/library/windows/desktop/aa365261(v=vs.85).aspx