The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.
Check out The OSR Learning Library at: https://www.osr.com/osr-learning-library/
Hello. So there are 2 ways to create software based drivers right, the legacy way using
sc and a PNP device using
For the legacy way, using
sc create, sc start, etc, works fine and you can start and then
sc stop to fully unload the driver. My driver's Unload is called, and all resources are cleaned up, and driver verifier is happy. However you cannot apply a INF SDDL to restrict opening of the symbolic handle for IOCTLs, as the
sc way doesn't load the INF.
So how could I apply an admin/system level SDDL on this method?
Alternatively we can use
devcon install aaa.inf root\aaa to create a root enumerated device without needing hardware. However when I go to unload my driver via
devcon remove I get a Windows popup saying the device requires a restart to unload this driver. All I've done is change the INF to be devcon compatible, I haven't added all the minor PNP IRPs yet, but is that required to just remove the driver without needing to restart the driver. My Unload() doesn't get called (unlike sc stop) hence why I guess the restart is asked for?
The sc way is obviously the simplest if I can just get the DACL applied. Otherwise I can use the devcon way if I can unload without the reboot, any simple software based wdksamples for this concept?
|Upcoming OSR Seminars|
|OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!|
|Developing Minifilters||24 May 2021||Live, Online|
|Writing WDF Drivers||14 June 2021||Live, Online|
|Internals & Software Drivers||27 September 2021||Live, Online|
|Kernel Debugging||15 November 2021||Live, Online|