How to find PHANDLE of a process in a windows kernel mode driver?

89 Views Asked by At

So basically, I am trying to create a kernel mode driver and there is no proper documentation so I just want to terminate a process, but that needs a PHANDLE and the only way I know to get a PHANDLE is to use the OpenProcess() function but, you cant do that while creating a kernel mode driver because you need to include windows.h and that just gives out a lot of errors anyone have any idea how to get this PHANDLE thing?

I tried using OpenProcess() function but it involves including windows.h which gives a lot of errors.

Sorry if this question is a little stupid because I am very new to stackoverflow.

0

There are 0 best solutions below