How to use ZwQueryInformationProcess to get ProcessImageFileName in a kernel driver?

后端 未结 3 706
忘掉有多难
忘掉有多难 2021-02-14 07:57

I\'m writing a simple kernel driver for my application (think of a very simple anti-malware application.)

I\'ve hooked ZwOpenFile() and used PsGetCurr

3条回答
  •  一向
    一向 (楼主)
    2021-02-14 08:31

    ZwQueryInformationProcess needs a HANDLE, not a PROCESS! You need to use ObOpenObjectByPointer to get the handle first.

提交回复
热议问题