Advertisement

How to Make WINDOWS Device Driver [Part 1]

How to Make WINDOWS Device Driver [Part 1] This will be the first part of the series on how to make windows device drivers, here we focus on making a very minimalist driver that only outputs message on dbgview.

Stuff needed to start making drivers are:
• Visual Studio 2017 or 2019 with latest updates. Make sure the C++ workload is selected during installation. At the time of this writing Visual Studio 2019 has just been released and can be
used for driver development. Note that any SKU will do, including the free Community edition.

• Windows 10 SDK (generally the latest is best). Make sure at least the Debugging Tools for Windows item is selected during installation.

• Windows 10 Driver Kit (WDK). The latest should be fine, but make sure you also installs the project templates for Visual Studio at the end of the standard installation.

• The Sysinternals tools, which are invaluable in any “internals” work, can be downloaded for free from Click on Sysinternals Suite on the left of that web page
and download the Sysinternals Suite zip file. Unzip to any folder and the tools are ready to go.

Commands used -
sc create sample type= kernel binPath= c:\dev\sample\x64\debug\sample.sys

sc start sample
sc stop sample

You can find your driver listed in registry here
HKLM\System\CurrentControlSet\Services\Sample

If there is any ERROR that shows failed to verify driver signature or anything similar, run this command and restart
bcdedit /set testsigning on

How to Make WINDOWS Device Driver,Windows Device Driver Programming,Kernal Programming,Windows Kernal Programming,

Post a Comment

0 Comments