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
0
votes
1 answer

How to get filtered target device information from windows upper class filter

I'm writing a upper class filter for WPD device. I specified the callback functions for the Read/Write/Ioctl, from the callback declaration I could get the WDFQueue, WDFRequest. VOID WdfFltrDeviceControl(IN WDFQUEUE Queue, IN WDFREQUEST Request, IN…
Coney
  • 65
  • 4
0
votes
1 answer

parameter wrong from powershell but not from cmd

From a command shell (cmd.exe) Win10 the following call is correct: .\devcon.exe disable "USB\VID_0547&PID_1002&REV_0000" But if I do the same from powershell I get the result No matching devices found. The same with that: $retDevice =…
makurisan
  • 467
  • 3
  • 13
0
votes
1 answer

Windbg Unable to find module 'Wdf01000.sys'

I have Windbg running and want to check source level debugging of WDF. If I run the command "!lmi wdf01000.sys", I get the following result: kd> !lmi Wdf01000.sys Loaded Module Info: [wdf01000.sys] wdf01000.sys not found If I look in the symbol…
makurisan
  • 467
  • 3
  • 13
0
votes
0 answers

WDF PNP Driver Won't Unload

I'm writing a WDF filter driver that attaches to a webcam. My code is linked below and while it works (for the most part), one issue I'm having is that when I unhook my webcam, the driver stays running and never shuts down. The driver registry shows…
ImDevinC
  • 508
  • 1
  • 4
  • 18
0
votes
1 answer

Process IDs are the same in User mode and Kernel mode

I was shocked that I got the same PID between User mode and Kernel mode in an IOCTL request from my application to my kernel driver(WDM) via DeviceIoControl() Win32 API. As far as I know, drivers have its own PID in kernel mode; applications own its…
dougpuob
  • 23
  • 1
  • 7
0
votes
1 answer

How to preprocess buffer and pass through

how to send the request to the next driver in the stack to further completion? In my filter driver driver I register a queue for EventWrite with callback EvtDeviceIoWrite as follows: VOID EvtDeviceIoWrite( IN WDFQUEUE Queue, IN WDFREQUEST …
Jak ttt
  • 33
  • 6
0
votes
1 answer

UMDF- lock device in application level

I'm writing a simple USB driver for our device using UMDF over WinUsb. The driver can be used by multiple application concurrently. I need to achieve a custom locking system that the WdfDeviceLevel\WdfObjectLevel doesn't give me: I want an atomic…
Eldad
  • 1,067
  • 16
  • 36
0
votes
1 answer

Windows WDF Driver Power States

I'm working with WDF. Im reading a driver sample but cannot infer the semantic meaning of: - WdfPowerDeviceD0 - WdfPowerDeviceD1 - WdfPowerDeviceD2 - WdfPowerDeviceD3 - WdfPowerDeviceD3Final. Would appreciate any help on the subject.
0
votes
1 answer

WHQL driver test INF error

When I run WHQL test "DF - Validate driver INF against component specific requirements" it gives me this error: The inf C:\Windows\Inf\oem10.inf had an error at line 103. Flag 0x10000 must be specified for 'CoInstallers32' registry key. Line 103…
arminb
  • 2,036
  • 3
  • 24
  • 43
0
votes
0 answers

Driver's symbolic link disappearing

In my UMDF windows driver I create a symbolic link of my device in \DosDevices\Global\ directory in order to track device instances. So if a device gets connected to the host a symbolic link \DosDevices\Global\MyDevice0 gets created. If another…
arminb
  • 2,036
  • 3
  • 24
  • 43
0
votes
1 answer

WDF Internal IOCTL Not Returning Output

I’m currently writing a driver that exposes virtual COM ports. In the driver, I send an internal IOCTL from the port FDO down the stack, which is handled from the PDO IO queue. For some reason, the output data is not written to the provided output…
GregoryComer
  • 740
  • 8
  • 18
0
votes
0 answers

Install KMDF programmatically using DiInstallDriver

I want to install a kmdf driver on Windows 7 32bit machine. At first I used hdwwiz (the add hardware tool) and it worked correctly. Now I want to install it programmatically using a software. After some research I found DiInstallDriver I used the…
Zaid Alyafeai
  • 155
  • 1
  • 13
0
votes
1 answer

debugging of driver on separate computer after connecting two computers

I am about to start a project that requires debugging of program on separate computer. basically I am writing a file system filter driver. and it's on windows. For that, the debugging of driver has to be on separate system. I need to know how I can…
user786
  • 3,902
  • 4
  • 40
  • 72
0
votes
1 answer

Installing template for VS 2015 enterprise

I have VS 2015, and I also have Windows Driver Kit 10.0 But in VS 2015 Enterprise, I could not find any template to write KMDF related development. I tried to install so search for template for KMDF or WDF but I could not find it. How can I install…
user786
  • 3,902
  • 4
  • 40
  • 72
0
votes
1 answer

limitation for NumberOfElements in scatter/gather list

My device driver for a PCIe FPGA is based on 7600.16385.1\src\general\PLX9x5x Upon ReadFile in the application, PLxEvtIoRead is called: // // Initialize this new DmaTransaction. // status = WdfDmaTransactionInitializeUsingRequest( …
Mahnaz
  • 472
  • 3
  • 15