Click here to Skip to main content
15,889,096 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
I've been trying to find a good minifilter example but it's not going well 8(

I am looking for a simple minifilter skeleton that doesn't do much but allow registering of events from managed code in VS 2013, then forwards the File-System event to the application (which handles all the logic) and waits for a reply.
I am particularly interested in file access control which generates an event and allows my c# application to tell it whether to allow/block access to certain files.

Anybody know of a good source/example where I can find this functionality?

PS
...and yes it has to be free 8-
Posted
Comments
Kuthuparakkal 13-Feb-15 7:52am    
If you are not interested to go that deep like File Allocation level, then you may create a windows service and that spawns WMI events (for file access) and deny access based on your criteria
thorssig 13-Feb-15 8:23am    
That's the thing, I want to stay away from the nitty gritty details of filing systems as much as I can and focus on access control (allow/deny). I understand that minifilters allow this but I find it hard to find a working example.
The only minifilters that I've found that allow this costs around $2000! 8-
BillWoodruff 13-Feb-15 10:25am    
This "minifilter" would run on a server and limit the read/writes of users to files on the server ? Or ?
thorssig 13-Feb-15 12:59pm    
It would just run on a local computer, although I would also have to anticipate network access. It would then allow/deny access to files based on access rules.
I guess the info I need the filter to forward to the managed code is file name, accessing program and perhaps user & computer.
BillWoodruff 13-Feb-15 14:51pm    
What you require cannot be handled using Windows' System facilities for regulating access, i.e., Roles/Groups/Permission ? There are ways to lock a file using C#, but they are "hairy" code. Are you familiar with 'FileSystemWatcher in .NET: with that you can observe, but you can't control.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900