xiaobin_hlj80

https://blog.csdn.net/xiaobin_HLJ80 http://blog.chinaunix.net/uid/31552151.html

导航

Development Environment Preparation - WDK

  • VS2019
  • VirtualBox

Spectre-mitigated libraries

  • install
MSVC v142 - VS 2019 C++ x64/x86 Spectre-mitgated libs(Latest)

WDK

Windows Version Build Number Supported Visual Studio SDK WDK Comments
Windows 11 25H2 (Ge) 26100.6584 VS 2022 SDK WDK This version is the default supported kit for Windows driver development in VS2022.
Windows 10 2004 (VB) 19041.5738 VS 2019 SDK WDK Supported for Windows 7/Windows 8/Windows 8.1 driver development only.

Project setting

  • VC++ Directories
  • Linker

wdk path

create props file:

view -> Other Windows -> Property Manager

add wdk path:

User Macros -> Add Macro
  • name and value:
WDKPATH
\Program Files (x86)\Windows Kits\10
  • checked
Set this macro as an environment variable in the build environment

VC++ Directories

  • Include Directories
$(WDKPATH)\Include\10.0.19041.0\km;
$(WDKPATH)\Include\10.0.19041.0\ucrt;
$(WDKPATH)\Include\10.0.19041.0\um;
  • Library Directories
$(WDKPATH)\lib\10.0.19041.0\km\x86;

Linker

  • Input
ntoskrnl.lib;hal.lib;wmilib.lib;fltmgr.lib;vcruntime.lib;ucrt.lib;

Guest OS

Disable driver signature enforcement

  • Open your Start Menu and click on Settings.
  • Navigate to Update & Security and select Recovery from the left-hand menu.
  • Under the Advanced startup section, click Restart now.
  • Once your PC reboots to a blue screen,
    select Troubleshoot > Advanced options > Startup Settings.
  • Click the Restart button.
  • Upon restarting, you will see a list of options.
    Press 7 or F7 on your keyboard to Disable driver signature enforcement.

DebugView setting

  1. Capture -> Capture Kernel
  2. Capture -> Enable Verbose Kernel Output

posted on 2026-05-04 08:48  xiaobin80  阅读(40)  评论(0)    收藏  举报