Hi everyone!

This is a really hard question, and I need some help with it. I have tried googling but couldn't find a working solution.

I would like to know how I can hook into a file, and monitor a files activity (what the file does, tasks it executes). Of course you don't have to make it monitor everything!! Just maybe monitor if it tries to delete a file from Windows directory, and block it from doing so. I know, this is a really hard thing to do.

If you can help, it's very much appreciated. If you can make the code as lightweight as possible, that would also be great, or if you could make it check when a file tries to delete the windows files, and THEN hook into it etc and stuff. Yeah.

Thanks.