There is a way to monitor directories for changes like FileSystemWatcher but in C?
NOTE: I (have to) use gcc.
See FindFirstChangeNotification or ReadDirectoryChangesW.