singhhdev/IOCTL-Kernel-Driver ? reverse-engineered prompt

Reverse engineered prompt

Build me a Windows kernel mode driver and a simple way for a user mode app to talk to it through IOCTLs.

I want it to be able to read and write memory in a target process, allocate memory in that process, and change memory protection when needed. It should also handle guarded regions the right way, or at least include the logic needed to deal with them safely for research and learning.

Please make it a clean educational example, with clear driver entry and unload code, basic IRP handling, and a small interface I can call from user mode. Keep it focused on Windows internals and memory management, not production hardening. If you need to look up the current Windows driver docs or best practices, go ahead and do that.

Also include enough comments so I can understand how the IOCTL communication works and how each memory operation is wired up.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab