Be careful! It's a really bad code. I had to write it in a week for my study task. So I didn't think a lot. Now I don't want to fix smth, because I don't care honestly
I have an article about it on Habr https://habr.com/ru/post/485606/
Based on https://github.com/microsoft/Windows-driver-samples/tree/master/general/registry/regfltr
The configuration will be stored in the XML format, Config file set in registry.(change "//" to "/" and del Space):
< exe><name_program(name of the program for which we are setting permissions)> <Lev (access level)> 1 (value) <//Lev> ... (other programs) ... <//exe> < key> <name_key (name of the key (section) , for which we set the rights)> < Lev> <4> <//Lev> ........ <//key>
Installation and removal of the notifier (PsSetLoadImageNotifyRoutine) by the “+” and “-” command received through the IOCTL request mechanism from the developed user level application.
The installed notifier logs in the file information about the event that occurred, indicating the time, process name and PID, module name.