Questions tagged [wdk]

For questions about the Windows Driver Kit (WDK, formerly WinDDK), which includes the tools and documentation needed to develop drivers for the Windows platform.

The Windows Driver Kit (WDK) includes the tools and documentation you need to develop drivers. WDK 8 Release Preview is integrated into Visual Studio and provides almost all of the tools you need for developing, building, packaging, testing, and debugging drivers.

For more information, visit the WDK website.

756 questions
4
votes
1 answer

Windows File System Filter Driver

I am trying to create a small file system filter driver for testing/demonstrating how to track the impact that filter drivers have on I/O performance using ETW in Windows Server 2008 R2. I've downloaded the DDK and built a few of the samples, but I…
Jonathan Kehayias
  • 3,402
  • 1
  • 23
  • 23
4
votes
0 answers

Windows: Disable / Enable USB Hub WITHOUT reboot

I would like to be able to programmatically disable or enable a USB hub in order to make the USB devices connected to it unavailable or available, respectively. I did some testing using device manager and then using Devcon, and found that when…
Ziv
  • 41
  • 3
4
votes
1 answer

Passing preprocessor variable to nmake build environment

I am having issues with building driver using nmake on Win7 x64 build environment. I am defining a preprocessor variable and passing it over the command line using - build /nmake "USER_C_FLAGS=/DMyVersion=3" And the build log is…
Mahesh
  • 34,573
  • 20
  • 89
  • 115
4
votes
1 answer

Windows Kernel Driver signing and service creation

Having a bit of trouble signing my kernel mode driver and creating a service for it. So, I've created a self-signed certificate using makecert: makecert -r -pe -n "CN=XXX" -ss "XXX" -sr LocalMachine then using the certificate management snap-in I…
4
votes
2 answers

How to start writing DDK code ?

I want to write some simple code using DDK - but i don't know even how to compile some demo code that i download. How to compile this thing ? Is there some simple editor / IDE that i can use ? Is there some way to use visual studio to write and…
Yanshof
  • 9,659
  • 21
  • 95
  • 195
3
votes
2 answers

What's the difference between a free build and a checked build?

I just installed the Windows Driver Kit for XP - Windows 7 and this may come as a silly question, but what is the difference between a "free build" and a "checked build"? PS: I'm not a driver developer, I installed it merely to check some header…
Abel
  • 56,041
  • 24
  • 146
  • 247
3
votes
1 answer

including DDK headers

I'm having a bit of trouble including headers from Windows Driver Kit to Visual Studio 2010. Can anyone help me, what I am doing wrong? I get error message such as C1083: Cannot open include file: 'sal.h': No such file or directory. If I include…
Matt
  • 8,195
  • 31
  • 115
  • 225
3
votes
1 answer

Any Equivalent of strstr in Windows Kernel Mode?

I am writing a windows kernel mode driver in which I will have to manipulate lots of strings. Everywhere it has been advised to use "Safe String" functions instead of normal C functions. However, many of the string functions haven't been implemented…
whatisinaname
  • 333
  • 4
  • 15
3
votes
1 answer

how to get the dsf code below to work?

I wish to send input to multiple emulated mice using dsf(device simulation framework) incuded in the current windows ddk. My code is below the problem is device manager recogizes the device got added but my program (mouse mischief - also microsoft)…
jeffery
  • 322
  • 4
  • 19
3
votes
0 answers

Can I write a Windows filter driver for an HID device to invert vertical scrolling?

I would like to emulate OS X Lion's inverted vertical scrolling using a trackpad on Windows. I wonder if it would be possible to create a filter driver for a target HID device, intercept ... something ... and then reverse the values in the…
Andy S
  • 8,641
  • 6
  • 36
  • 40
3
votes
0 answers

How to natively build Windows 11 device drivers for ARM64 on an ARM64 system?

How to natively build Windows 11 device drivers for ARM64 on an ARM64 system? Using: Windows 11 21H2 on an ARM64 virtual machine (host: MacBook M1) Visual Studio 17.5.2 Windows Driver Kit 10.0.22621.382 I have a simple WDM driver for Windows…
Thierry Lelegard
  • 423
  • 2
  • 11
3
votes
2 answers

Which WDK to install for Windows 10 21H2?

I use Windows 10, and winver for me says: ... that it is Windows 10, Version 21H2 (OS Build 19044.1889). So, I want to install Windows Driver Kit (WDK), but…
sdbbs
  • 4,270
  • 5
  • 32
  • 87
3
votes
0 answers

KeAcquireSpinLock long execution time

I am currently developing a Windows Kernel Driver that implements its own networking stack. While testing some base functionality of the implemented stack, I noticed that replies to pings would sometimes take noticeably longer than usual.…
ApiTiger
  • 31
  • 2
3
votes
2 answers

error MSB6006: "link.exe" exited with code 1 When run SDV ( Static Driver Verifier) , Visual studio 2019 , SDK 10 build 19041, windows 10 build 19041

We create new KMDF USB project , Open visual studio 2019 v 16.11, go to File -> new -> project -> chose Kernel Mode Driver, USB (KMDF). without any modification, this project have no error, no warning when building. when we run SDV ( Static Driver…
Tung
  • 31
  • 3
3
votes
2 answers

Is there anyway to debug a windows kernel with secure boot on?

Is there any way/trick that i can debug a windows kernel that has secure boot on? when i try to turn on debug mode when secure boot on windows says that i need to turn it off. The target machine is a win 10 x64. EDIT: I am using VMware and this is a…
OneAndOnly
  • 1,048
  • 1
  • 13
  • 33