Search code examples
c++ckerneldriverwindows-kernel

Where is there an understandable documentation for the wdm.h c header


I was wondering if there was a possible way to embed regular c/c++ inside a windows kernel mode driver. I've been doing some research and it seems pretty impossible, considering that the print function already looks like KdPrintEx((DPFLTR_IHVDRIVER_ID, DPFLTR_INFO_LEVEL, "KmdfHelloWorld: KmdfHelloWorldEvtDeviceAdd\n"));. Also, the docs look really really confusing and I can't understand them, eg the syntax for making a file is ....
Note stack overflow though I was spamming so I have to give a link instead
https://pastebin.com/0tAz4YSE Basically I'm just wondering where a comprehensive way to learn the syntax for drivers is.


Solution

  • So You want a Pretty Good Documentation for learning about Drivers? Here are few I Suggest Microsoft KMDF : https://learn.microsoft.com/en-us/windows-hardware/drivers/gettingstarted/writing-a-very-small-kmdf--driver

    So If you are a starter learn with User mode Drivers as they are easier to use Microsoft UMDF : https://learn.microsoft.com/en-us/windows-hardware/drivers/wdf/overview-of-the-umdf

    Driver Concepts : https://learn.microsoft.com/en-gb/windows-hardware/drivers/gettingstarted/what-is-a-driver-

    https://learn.microsoft.com/en-gb/windows-hardware/drivers/gettingstarted/concepts-and-knowledge-for-all-driver-developers

    These are Android Drivers : https://source.android.com/devices/

    Linux Too Has a Pretty Good Documentation : https://www.kernel.org/doc/html/latest/driver-api/index.html