when a file is created/wrote/pasted in/to a folder by anyone, i want to stop this process and create/write/paste this file to that folder after encrypting with pgp. but i don't know how to stop file creating and writing. i write in c#.
according to me, my problem is not about copy and paste events. i think the solution is file system monitor and stopping file creation and writing. but how can i do this? is there any sample code?