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
5
votes
2 answers

Windows Driver - Passing strings between user mode and kernel mode. Dynamically sized struct

I am looking at the File System Filter driver example in the WDK called minispy... specially how they are passing data between userspace and the kernel using the FilterSendMessage and related…
mcot
  • 1,309
  • 3
  • 16
  • 19
4
votes
1 answer

How to interface with the NT mount manager to assign a driveletter?

I'm attempting to replace some legacy DefineDosDevice userspace code (which doesn't work on Vista with Administrator users due to the fact that the elevated and normal session are represented by different DosDevice stores, therefore creating the…
user257111
4
votes
1 answer

Windows driver C1083 error

I created simple "Hello world" windows driver. hello.c #include NTSTATUS DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath) { DbgPrint("Hello, World\n"); return STATUS_SUCCESS; } makefile !INCLUDE…
Matt
  • 8,195
  • 31
  • 115
  • 225
4
votes
1 answer

Windows (64) Kernel Driver and pagable Functions

i wrote a C tool to mess around with the windows kernel a bit. Now as we can see there are several functions inside the "PAGE" section, meaning this functions of the kernel can be paged out. I know their address because I can read the PE header of…
mschmoock
  • 20,084
  • 6
  • 33
  • 35
4
votes
0 answers

Possible to build Windows drivers using Visual Studio 2019 Build Tools + SDK + WDK without using the EWDK ISO?

We're trying to build some Windows driver (on Windows 10 Enterprise) from within Jenkins. To do that, we were using the Visual Studio 2019 Build Tools, installed the SDK and the WDK as described here:…
Joerg S
  • 4,730
  • 3
  • 24
  • 43
4
votes
0 answers

Programmatically install "non compatible" driver

I want to install signed driver but unfortunately the .inf file does not contain the correct hardware IDs. (incompatible driver) I can install the driver manually like described here: Force installing incompatible .inf driver in Windows Server 2019…
Manuel Amstutz
  • 1,311
  • 13
  • 33
4
votes
2 answers

SignTool error : No certificates were found that met all the given criteria. vs2019

signTool error : No certificates were found that met all the given criteria. vs2019 This error some time occurs while building the WDF or WPF Driver Project with "Test Sign" in Visual Studio.
nik
  • 131
  • 1
  • 6
4
votes
1 answer

Developing a Windows driver without using Microsoft's compiler

My team has a C-language codebase that is used in several embedded systems of varying platforms. We have a group of people that are trying to port part of this codebase into a Windows driver. However, certain aspects of Microsoft's compiler don't…
bta
  • 43,959
  • 6
  • 69
  • 99
4
votes
2 answers

How do I deal with both winnt.h and ntstatus.h both in the WDK?

I am compiling a program that gets an error because both winnt.h and ntstatus.h are included in the WDK. I compiled with preprocess to a file and found this: #line 1 "C:\\Program Files (x86)\\Windows…
Aabbee
  • 91
  • 6
4
votes
2 answers

Installing Filter Drivers To An Existing Device

I am learning how to write a filter driver and is trying to install one on top an existing HID driver (mouse or keyboard) for practising. From what I understand, I should at least add an UpperFilters key to the hardware registry key. Is there…
JavaMan
  • 4,954
  • 4
  • 41
  • 69
4
votes
1 answer

Is there a way to emulate arrow keys in Windows keyboard drivers?

I am currently writing a keyboard driver for Windows, that provides an additional modifier and allows to directly type some additional characters. For example real quotation marks (“, ”, ‘, ’, …) and some mathematic characters (ℕ, ℝ, ℚ, ℤ, √,…
pvorb
  • 7,157
  • 7
  • 47
  • 74
4
votes
1 answer

Windows .inf files: how do I set the default Network Connection name during network driver install?

I'm trying to adapt the open source TAP-Win32 driver for my project. When it installs (at least on Windows 7, and I think Windows XP too) it creates a device named "TAP-Win32 Adapter V9" in the Devices control panel. This is easy to change by…
apenwarr
  • 10,838
  • 6
  • 47
  • 58
4
votes
2 answers

Visual Studio 2017 Project Configuration Properties > Driver Install > Package Files. does not exist

I'm trying to build XPSDrvSmpl Microsoft/Windows-Driver-Samples. I'm using Visual Studio 2017 and WDK for Windows 10, version 1709. In the readme.md Build the sample block it says: In the Solution Explorer, right click the Package project and…
Marijke Buurlage
  • 331
  • 5
  • 21
4
votes
0 answers

How to make sure correct .BUD files are generated for print driver after a Windows Upgrade

After upgrading Windows 10 anniv. to Windows 10 creators update my own virtual printer (based on unidrv) is unavailable. When I select it in control panel I get a dialog to install a driver (which I ignore) and by pressing cancel you see the printer…
juFo
  • 17,849
  • 10
  • 105
  • 142
4
votes
0 answers

Difference between the printer drivers

My question is pretty simple but I am not able to find clean and simple to understand answer for a long time. There are these printer drivers: Unidrv XPSdrv PostScript What are the differences between them? If Unidrv ( the universal printer driver…
Shameel Mohamed
  • 607
  • 5
  • 23