2018-09-16 09:12:16 UTC
I've been trying to create a device-driver for a couple of days now, but no
matter what I do I cannot seem to write one thats accepted by the OS :-(
I've been following several tutorials quite closely, but none of them gave
me the desired result. The last tut was this one:
I've been trying to run it using sc.exe (using as little code of my own hand
as possible), but in the end I also tried the code at the bottom of the
article (if only to see if sc.exe and it behaved differently). Alas,
StartService returned the same errorcode.
I've got a few problems here:
1) I cannot find any documentation to what a the header of a generated
devicedriver executable should look like.
2) I cannot find an example driver to compare my generated driver against.
3) I'm programming in Assembly, meaning that I really have to do
I did disassemble a few drivers I have on my system (Beep, Serial,
DLPortIO), but am not even sure if any of those are of the same kind as the
one I'm trying to create (kernel, userland,WDM style, other?).
If needed I can email sourcecode and/or the resulting driver.