Windows kernel driver development (WDK environment construction)

Go to the official website to download the WDK installation package and Visual StudioDownload the Windows Driver Kit (WDK) – Windows drivers | Microsoft Docs

First install Visual Studio. I don’t need to explain how to install it.

Directly download the SDK and WDK in steps 2 and 3 below.

SDK download address

WDK download address

Note that the downloaded SDK and WDK versions need to be consistent

Installing the SDK and WDK is very simple and can be installed by default, so I won’t show them too much here.

After the download is complete, open Visual Studio and create a new project


This will create the kernel driver.

After the creation is completed, pay attention to the sdk version and platform toolset of the project.The sdk version must be the same as the wdk version, otherwise it will not compile


Turn off the warning prompt as an error

Now compile a simple driver and test it.

I simply modified the Driver.c file, which outputs a message when running and a message when uninstalling the driver.

After successful compilation, find the file.

This is the driver file. You can find a driver installation software to install and uninstall it (it is best to run it in a virtual machine, as driver debugging is easy to cause a blue screen). The output log can be viewed in the DebugView software.

DebugView settings

ToolkitDriver development tools, including Dbgview and driver installation and uninstallation tools – C++ documentation resources – download

Both start and stop output normally, and the test is successful!

When testing, you need to disable driver mandatory signature in Windows.

How to disable driver signature enforcement in win10 system

Related Posts

Go1.17 environment construction under Windows

9. Generalized table – Generalized table concept, storage structure, depth/length, copy algorithm

Supplementary questions for ZJUT’s 19th “Hangyin Financial Management Cup”

CVE-2019-0708 vulnerability re-exploitation

C# Chart line chart uses the mouse wheel to zoom in, zoom out and pan the curve

Unity implements character movement and camera following

Introduction to device drivers

VMware virtual machine installs the original MAC OS system and easily experiences the Apple operating system

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>