How can I install my own driver? Windows 7

T

trey_drivers

I just recently got into driver development and so I made a simple driver which creates a device object and a symbolic link so that the user mode portion can communicate with it through DeviceIoControl(). Basically the user mode portion communicates with the driver by buffers, the usermode will send a buffer (through an I/O code) and the kernel-mode will change it to something else.



So I know windows doesn't allow you to run unsigned drivers, so I did the following:

  • enabled unsigned drivers with bcdedit /set testsigning on
  • I also created a self-signed driver just in case the above didn't work
  • Disabled Secure Boot (does it have anything to do with this ?)


Anyway, everything compiles fine but I can't load the driver. I've tried the following:

  • right-click the .inf file and Install

Which appears to work but when I use Winobj.exe from sysinternal to check the exported symbolic links I don't find my driver.


Then I tried sc.exe with the following commands:


sc create myDriver binPath= "C:\Windows\System32\drivers\myDriver.sys" type= kernel


As soon as I issue sc start myDriver I get a BSOD


The reason i'm freaking out is because this works fine on my windows10. So why am I getting a bsod on win7?

Note: I don't know if it makes a difference by i'm running windows 7 on Hyper-V

Continue reading...
 

Similar threads

M
Replies
0
Views
45
Michael Perez2
M
K
Replies
0
Views
30
Kenneth Burnet1
K
T
Replies
0
Views
35
taha khalid
T
K
Replies
0
Views
28
Keir Meredith-Miller
K
Back
Top Bottom