Hi all, I’m trying to emulate the behaviour of windbg in local kernel debugging, with the minifilter technology.
So first of all, disassembling the kldbgdrv.sys I found out that it dispatchs an IOCTL 0x22c007.
This control code specifes method_neither (cos it just pass down to the filter a small buffer with the command for KdSystemDebugControl (some commands are deprecated but I’m using the ndk)).
So the first question, unrelated with the rest of the topic is: can I use the minifilter technology for this purpose? I’m not sure (but I don’t this so), that I could have some problem with the frame in the device stack).
The second, and more important is: how sould I use this buffer in Parameters.DeviceIoControl.Type3InputBuffer? Can I just probe and lock this buffer to use the command in KdSystemDebugControl?
Thanks, N