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

Why am I getting Error Code 6 on StartService?

For my purposes, I need to write a kernel mode driver for Windows. Currently I am attempting to make it work under Windows 7 x64. I created a simple project in Visual Studio 2012 with default code for a KMDF driver. I compiled the code with…
farmdve
  • 786
  • 3
  • 13
  • 26
5
votes
4 answers

How to build workspace from DDK examples?

I am new to win32 programming and also to driver programming. I have installed Windows DDK on my system and have got some examples with the DDK but those examples don't have dsw file. I wanted to know how can I create .dsw file so that I can open…
Vinayaka Karjigi
  • 1,070
  • 5
  • 13
  • 37
5
votes
2 answers

Where is msvcrtd.dll?

Where can I find msvcrtd.dll (the debug CRT), corresponding to \WinDDK\7600.16385.1\lib\Crt\i386\msvcrtd.lib in the Windows Driver Kit?
user541686
  • 205,094
  • 128
  • 528
  • 886
5
votes
2 answers

Create a virtual MIDI port

I want to create a virtual MIDI loopback cable program that creates virtual MIDI ports to interconnect applications on Windows that want to open hardware-MIDI-ports for communication. SOrry if I am not clear in my requirements, here is an example…
ashwnacharya
  • 14,601
  • 23
  • 89
  • 112
5
votes
2 answers

How to access user mode memory?

I'm trying to read the PEB of notepad.exe Currently I'm trying to access the PEB by registering a ProcessCreation callback and then waiting until notepad.exe is created. When notepad is created I use it's PID to open the process and find the PEB…
Unknown
  • 263
  • 5
  • 11
5
votes
0 answers

Develop driver to support Windows 7 through 10

I am developing a kernel mode driver to support my custom PCIe device. I am using WDK 10 with the target platform set to Windows 7. Is there any reason that this driver won't support everything 7-10? Are there any precautions I should take (apart…
Jon
  • 51
  • 1
5
votes
1 answer

Opening WDK Projects results in "One or more errors occurred" message

I'm trying to make a Windows kernel driver, but every time I either try to make a new project with KMDF template or open an example driver by Microsoft (like keyboard filter), it doesn't work. In the case of loading an existing driver project, it…
Accumulator
  • 873
  • 1
  • 13
  • 34
5
votes
0 answers

WFP (Windows Filtering Platform) Local TCP proxy redirection works only after WFPSamplere.exe -clean

I am using WFPsampler to redirect TCP IPV4traffic using the below command. WFPSampler.exe -s PROXY -l FWPM_LAYER_ALE_CONNECT_REDIRECT_V4 -ipra 192.168.10.52 -iprp 9000 -pra 127.0.0.1 -prp 5050 -v -plspid 9184 The redirection doesn't work until I…
A.N
  • 541
  • 2
  • 13
5
votes
1 answer

Communication between delphi application and Windows NT system driver

I am trying to build a very simple driver. Its sole purpose will be to register "PsSetCreateProcessNotifyRoutine" and on callbacks recieved from kernel, notify my Win32 application about which proccesses are started and stoped. I only know how to…
Runner
  • 6,073
  • 26
  • 38
5
votes
2 answers

The categories of commands of WinDBG?

I see some references and tutorials about the commnads of WinDBG. Some of them like this lm, this .echo, this !running, and this nt!_PDB. What is difference between these categories xxx .xxx !xxx xxx!yyy ? They look so confused.
KyL
  • 987
  • 12
  • 24
5
votes
4 answers

WDK, intellisense and C: "command-line error: exception handling option can be used only when compiling C++ driver"

I want to write a kernel driver using Visual Studio 2015, so I installed the Windows 10 SDK and WDK alongside with VS 2015. I created empty kernel driver project and main.c inside the project. However, intellisense does not work and error list…
Burak Tamtürk
  • 1,237
  • 8
  • 19
5
votes
2 answers

Windows DDK development with MinGW?

Is it possible to develop a Windows driver (specifically a PDF-like printer driver that displays the data on-screen instead of actually printing) without using Visual Studio? I'm thinking of using free C++ tools such as MinGW/gcc.
Rob
  • 76,700
  • 56
  • 158
  • 197
5
votes
1 answer

Windows Kernel Debbuging: Debug over virtual serial port with WDK 8.1

I'm currently having some issues doing kernel debugging of a Windows 7 x64 target from my Windows 8.1 x64 host machine. I'm running Visual Studio 2013 with WDK 8.1 on my host and have provisioned my target machine running in VMWare. Here are my…
xtef_
  • 51
  • 2
5
votes
0 answers

Canceling a WSK I/O operation when driver is unloading

I've been learning how to write drivers with the Windows DDK recently. After creating a few test drivers experimenting with system threads and synchronization, I decided to step it up a notch and write a driver that actually does something, albeit…
eaducac
  • 51
  • 1
5
votes
1 answer

How to make resource dll to describe device fonts?

The target driver I'm building is not a native driver but a minidriver working with Microsoft Universal Pinter Driver According to DDK: Descriptions of these items [fonts in my case] are placed in a resource DLL, as described in the Platform…
RomanM
  • 6,363
  • 9
  • 33
  • 41