Questions tagged [wdf]

Windows Driver Foundation (WDF) is a set of Microsoft tools that aid in the creation of device drivers for Windows 2000 and later versions of Windows

The Windows Driver Frameworks (WDF) is a:

  1. Software Model to create Windows drivers
  2. Runtime Environment that manages WDF-based Windows drivers

It consists of KMDF and UMDF for drivers to run in kernel and user mode respectively.

111 questions
1
vote
0 answers

CreateFileMapping returns error 193 (%1 is not a valid Win32 app)

I have a user app that opens a file and then calls CreateFileMapping. I have a driver that creates/opens the file which I have traced and successfully executes. The problem is that CreateFileMapping always returns error 193. I have successfully…
Luis
  • 114
  • 2
  • 10
1
vote
1 answer

Initializing Device Interfaces for Windows HID Drivers without WdfDeviceCreateDeviceInterface

I'm working on creating a virtual HID device in Windows 10. To help me with developing the drivers, I've been analyzing the example provided here: https://github.com/Microsoft/Windows-driver-samples/tree/master/hid/vhidmini2. One thing that they do…
bacowan
  • 165
  • 2
  • 12
1
vote
3 answers

Get full Device Instance id in Windows Device Driver(WDF)

I'm using WDK 8.1 for customize windows driver. I want to get Device instance id in WDF/KMDF driver,which is unique for each device. OS : Windows 7(x64 bit) Device Instance id: {device-ID} \ {instance-specific-ID} There is registry entry of…
RDX
  • 409
  • 6
  • 22
1
vote
0 answers

How to programmatically install a Kernel Mode Driver on Windows 7

I have a signed driver package containing sys, inf, cat, coinstaller files for Keyboard. I need to install the package like the Windows Device Manager. I tried PnpUtil, it did install the driver and place it in the driver store but did not reflect…
Aster Veigas
  • 866
  • 3
  • 13
  • 34
1
vote
1 answer

Does anyone know where to get the old WDM version of the toaster driver sample?

The current 8.x Windows driver kit samples include the toaster sample, but only implemented in KMDF and UMDF. I have a particular application that requires specialized treatment of PNP messages that I don't think will work with KMDF. Does anyone…
Ted Middleton
  • 6,859
  • 10
  • 51
  • 71
1
vote
1 answer

Memory Alignment for a DMA transaction (Windows Driver Foundation)

We are writing a DMA-based driver for a custom made PCI-Express device using WDF for Windows 7. As you may know, PCI-Express bus transactions are not allowed to cross a 4k memory boundary. The custom device does not check this, and therefore we need…
1
vote
0 answers

Realtek network adaptor 8168E transmit/receive using loopback

I am trying to transmit and receive from Realtek 8168E using loopback(For windows 7 platform) ( writing into tx buffer and reading from rx buffer) Reading rx buffer gives 0. On checking interrupt status register, TDU and RDU bit is set to 1 (Tx/Rx…
Shan
  • 61
  • 4
1
vote
1 answer

MSI-X interrupts in WDF

I'm having a lot of trouble getting MSI-X interrupts implemented in a Windows bus driver we're writing in WDF / KMDF. I've read the MSDN documentation, and there's not really a lot of helpful info there. My understanding is that it should really…
8bitcartridge
  • 1,629
  • 6
  • 25
  • 38
1
vote
1 answer

When does Windows cancel an in-flight WDF request?

I am writing a Windows device driver using WDF (KMDF) for a USB3 device that transfers data in large chunks at a time. I've written a user-level application that tests this functionality, and for the most part, things work. The problem I encounter…
8bitcartridge
  • 1,629
  • 6
  • 25
  • 38
1
vote
2 answers

Why does DeviceIoControl prepend 12 bytes of information to the user-provided input buffer?

I hope this does not turn out to be a totally braindead question. I am editing a template WDF Windows USB device driver to send formatted data to one of the device's bulk out pipes; the data has to be set up in a certain way to tell the device to…
8bitcartridge
  • 1,629
  • 6
  • 25
  • 38
0
votes
1 answer

Creating WDF read request out of nothing?

Background: I'm writing a virtual USB to RS232 driver. But since my hardware is a USB-chip (PDIUSBD12) and not a pure UART chip the driver needs some special tweaks. A PC using something like the Hyperterminal should beleive that it is talking to a…
user872661
  • 251
  • 2
  • 13
0
votes
0 answers

After the manually created READ request is sent to the target device, the data obtained remains unchanged

I am still working on developing a USB HID filter driver (gamepad) using the **WDF **framework. In this filter driver, I have created a queue of type **WDF_IO_QUEUE_DISPATCH_TYPE **with **WdfIoQueueDispatchParallel **dispatching and implemented the…
0
votes
1 answer

Multiple device driver? (KMDF/WDF)

I've just written a KMDF USB driver. Now I want to connect several (up to at least four) devices to the PC. Where do I start? I've noted that when I connect the second device to the PC it use the very same instance of the driver as for the first…
user872661
  • 251
  • 2
  • 13
0
votes
0 answers

How to extend the functionality of a printer driver

When a user attempts to print a document, the print dialog where you select the paper type appears, is it possible to extend the dialog with more paramters which the user will select? Based on the selected parameters, I want to build a printer…
Qudus
  • 1,440
  • 2
  • 13
  • 22
0
votes
0 answers

Can't compile driver project in Visual Studio 2019 with C++20 modules

Does the MSVC support C++20 modules for Windows driver projects ? I enabled C++20 and compiled project, but I taked error (C3474 could not open file DriverModule.ifc). I tried to added path in "[Additional Module dependecies]:…