An open API service indexing awesome lists of open source software.

https://github.com/alexrasch/filemonitorpinvoke

FileMonitorPInvoke is a open-source C# application that makes use of the Windows API functions, like FindFirstChangeNotification, FindNextChangeNotification, and ReadDirectoryChangesW, to easily track file changes in a specified directory.
https://github.com/alexrasch/filemonitorpinvoke

Last synced: about 1 month ago
JSON representation

FileMonitorPInvoke is a open-source C# application that makes use of the Windows API functions, like FindFirstChangeNotification, FindNextChangeNotification, and ReadDirectoryChangesW, to easily track file changes in a specified directory.

Awesome Lists containing this project

README

          

# FileMonitor
FileMonitorPInvoke is a open-source C# application that makes use of the Windows API functions, like FindFirstChangeNotification, FindNextChangeNotification, and ReadDirectoryChangesW, to track file changes in a specified directory. It allows you to monitor file additions, deletions, and modifications. The project is licensed under the permissive MIT License, allowing everyone to freely use, modify, and include the code in their projects, as long as they credit the original author.



**Disclaimer:**
While FileMonitorPInvoke provides a way to track file changes using Windows API functions, you may also consider using the built-in [FileSystemWatcher](https://docs.microsoft.com/en-us/dotnet/api/system.io.filesystemwatcher) class in C#. FileSystemWatcher offers a more feature-rich and managed solution with simplified event-driven file monitoring, which may better suit your needs. ¯\_(ツ)_/¯

## Inspiration
The application is loosely based on the example from Microsoft's documentation [Obtaining Directory Change Notifications](https://learn.microsoft.com/en-us/windows/win32/fileio/obtaining-directory-change-notifications), providing a reliable and simplified solution for file monitoring.

## Special Thanks
A heartfelt special thanks to [Mario](https://github.com/mariob) for his valuable inputs and generous support.