This driver is part of the book "Windows Kernel Programming" and it's goal is to raise a thread priority level.
From user mode you can't reach any priority level you want because of the way that the priority is being calculated, so you can only achive it with code running at kernel space
for direct access to the KTHREAD
structure.
This is my solution to exercise 1 chapter 9. The exercise is to write a driver that recieves proccess paths from user mode and prevent their execution.
After finishing the "Windows Kernel Programming" book written by paval, I wanted to practice some of the skils that I have learned. I came up with an idea to write a simple but really cool driver that takes a PID and sets the process PrimaryToken to be a SYSTEM token. I wrote a client to talk to the driver, the client simply deilvers the PID's.