You mean you want to hook a driver in driver land? That is not possible with madCodeHook. Driver land is a totally different thing compared to user land. Also, Microsoft has strictly forbidden API hooking in driver land in 64bit OSs. See here: