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 driver kernel: How enumerate all subdirectories and files?

I'm working in a small antirootkit and i need add a functionality that is: Delete all files on directory of rootkit and in yours possible subdiretories. So, firstly is necessary know all these directories and files, right? To this, i have code…
user6828073
4
votes
3 answers

Is it possible to make Microsoft build.exe include sources from remote directories?

Adding source files more than one directory away (e.g. ../../source.cpp or ../../../somewhere_else/source.cpp, vs. just source.cpp or ../source.cpp) to the SOURCES= declaration in a WDK/DDK build yields the following error: Ignoring invalid…
jrk
  • 2,896
  • 1
  • 22
  • 35
4
votes
1 answer

WDK 10 - Can't target Windows 7 with SDK7 installed

I am developing a Windows Kernel-Mode driver. I have installed WDK10, Windows SDK linked along with it, and Windows 7 SDK. I'd like to target windows 7, so I need specific includes, etc., but Visual Studio only allows me to Retarget solution to…
4
votes
2 answers

Migrating driver project from VS2013 to VS2015 community

Long time reader first time poster here. I'm a Linux developer trying to get started on Windows development in my new job. I knew it would not be trivial but the first thing I'm trying to do is complete and integrate a netvmini port driver (started…
4
votes
1 answer

WDK (Windows Driver Kit) and VC++ headers problem

I'm trying to read from an USB HID device, I know how to do it in C# using DLLImport hid.dll, but I want to do it from C++, this way I don't have to declare all the structures, etc, and just include the headers files. So I downloaded the WDK and…
Carlos Dubus
  • 405
  • 2
  • 5
  • 8
4
votes
2 answers

visual studio 2015 wdk 10 command line error

I am following this guide https://msdn.microsoft.com/en-us/library/windows/hardware/hh439665(v=vs.85).aspx I am using visual studio 2015 with wdk 10. However, when i am trying to build the solution (step 14), I get the following error:…
4
votes
1 answer

How to set up a virtual printer and monitor with UniDrv or XPS driver v3 in Windows

I am trying to create a virtual printer to capture print outs from applications in my own application. I have successfully implemented one that uses the Microsoft PostScript driver and produces ps files. (A lot of code extracted from different open…
agarcian
  • 3,909
  • 3
  • 33
  • 55
4
votes
1 answer

How to detect printing app when splwow64.exe is involved?

We have a print driver that captures the name of the printing exe within the driver's UI module. It does this by using the GetModuleFileName function. This works well until a 32-bit prints on a 64-bit machine. In that scenario Windows invokes…
Carey Gregory
  • 6,836
  • 2
  • 26
  • 47
4
votes
1 answer

Virtual printer driver INF configuration for v4 print drives

I am trying to create virtual print driver with WDK and print driver v4. I want to have virtual printer installed in system, display my own UI when printing - in ideal case a .NET win or wpf form. In the end, virtual printer will contact web service…
Jan Novák
  • 574
  • 3
  • 21
4
votes
1 answer

Integrating WDK with Visual Studio 2013

Does somebody know how to integrate WDK8.1 with VS2013? I expect such kind of menu: butafter installing WDK8.1 there is nothing like this inside that menu. Can somebody help mi to deal with that annoying problem?
PatLas_work
  • 89
  • 1
  • 3
4
votes
3 answers

DDK/WDM developing problem ... driver won't load on x64 windows platform

I am a beginner at DDK/WDM driver developing field. I have a task which involves porting a virtual device driver from x86 to x64 (intel). I got the source code, I modified it a bit and compiled it succesfuly with DDK (build environments). But when I…
user295975
  • 41
  • 1
  • 2
4
votes
1 answer

Fastest way to pass a file's contents from Kernel to User mode?

I'll try to be brief, but fully descriptive: This is Windows-specific. Using the Windows Driver Development Kit (DDK). I am writing a Kernel Mode Driver (KMD) for the first time, having no prior experience in Kernel Mode. I am playing around…
KevenK
  • 2,975
  • 3
  • 26
  • 33
4
votes
2 answers

What is the difference between an IOCTL and an IRP

I have been working through some codeproject articles on driver dev, but have some confusion about IOCTLs and IRPs. From what I have seen, it seems that IOCTLs are sent from usermode, and translated into IRPs. And IRPs are messages between the OS…
cylus
  • 357
  • 1
  • 4
  • 14
4
votes
1 answer

error LNK2001: unresolved external symbol _fltused in wdk

I am trying to define a double data type variable in a C code which is going to be used in the Windows kernel. The code compiles but gives error while linking. I tried using libcntpr.lib in the source file and also defining __fltused variable in the…
randy7
  • 135
  • 1
  • 6
4
votes
1 answer

Tracing to multiple ETW providers using WPP

I'm trying to use "Event Tracing for Windows" through WPP instumentation. Per documentation in Getting Started with Software Tracing in Windows Drivers it is possible to issue traces to multiple providers from a single driver, but I saw no example…
Uri Cohen
  • 3,488
  • 1
  • 29
  • 46