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

What is the difference between a WDM driver, a KMDF driver and a UMDF driver?

When creating a Windows Driver project in Visual Studio 2012, you have many different options to choose from. There's a page on MSDN that helps you with choosing the correct driver model for your device. It however doesn't clearly explain the exact…
lesderid
  • 3,388
  • 8
  • 39
  • 65
14
votes
1 answer

I want to create a minifilter driver to transparently redirect disk i/o, but I'm having trouble getting started

A project I'm working on at the moment requires the implementation of a copy-on-w/m mechanism which will be used to redirect disk i/o in a similar manner to Deep Freeze or Sandboxie, on Windows XP. If I could I'd also like to be able to "mount" the…
Adam James
  • 356
  • 3
  • 10
7
votes
1 answer

Is it possible to retrieve the CPU that created a WDFREQUEST?

I am trying to affinitise the completion of CompleteRequest to the CPU that originally issued the request. Is there a way to retrieve the CPU that issued the request during FdoDeviceControl or any onother way to see where the request came from…
Thomas Kejser
  • 1,264
  • 1
  • 10
  • 30
6
votes
1 answer

Sending IOCTL from IRQL=DISPATCH_LEVEL (KbFilter/KMDF)

I am using the KbFilter example in the WDK, trying to send an IOCTL in a function that is called by KbFilter_ServiceCallback and therefore is executed at DISPATCH_LEVEL. The function just has to send an IOCTL and return, am not waiting for an output…
Dale
  • 12,884
  • 8
  • 53
  • 83
5
votes
3 answers

How to start a self-written driver

I wrote a driver in Visual Studio 2013. The building-Process was successful. Then I prepared a traget-computer and copied the driver-files to it. Then I installed the driver: C:\Windows\system32>pnputil -a…
Andre
  • 1,249
  • 1
  • 15
  • 38
5
votes
2 answers

Compiling an application that uses WinUsb

I am in the process of writing an application to communicate with Usb devices using WinUsb.dll. This is a user-mode library that allows communication with a device through winusb.sys installed as its driver in the kernel. I am writing this…
joshperry
  • 41,167
  • 16
  • 88
  • 103
4
votes
1 answer

Is it possible to fully install a driver when the device is not present?

Is it possible to fully install (and not just pre-install) a device driver on a system before the physical device is plugged in? In particular, I'm looking at the D2XX drivers by FTDI. Their driver installation program effectively runs dpinst.exe,…
soapergem
  • 9,263
  • 18
  • 96
  • 152
4
votes
0 answers

Virtual Disk driver for Windows in user mode?

Is it possible to implement driver of Virtual Disk only in User mode or it has to be done in Kernel mode?
adspx5
  • 731
  • 7
  • 16
4
votes
3 answers

Extracting USB PID VID from DevicePath

When using SetupDiGetDeviceInterfaceDetail to retrieve a SP_DEVICE_INTERFACE_DETAIL_DATA relating to a connected USB device, a string called DevicePath is returned. The string being returned is formatted like the following…
user3099783
  • 51
  • 1
  • 2
4
votes
5 answers

Restrict access to audio device under Windows XP-8 to specific application/user

I have written an c# 4.0 application that analyses the microphone input and records DTMF tones that represent credit card numbers entered by our clients. This all works well, but since we are working under PCI Compliance (see…
Chief Wiggum
  • 2,784
  • 2
  • 31
  • 44
3
votes
1 answer

Windows driver with or without INF file

I've seen two ways to install Windows drivers. a. Using both SYS file and INF file. (such as NDIS driver) b. Only use SYS file, the driver will be loaded by a service. (such as drivers in C:\Windows\System32\drivers) So, my question is: 1. What…
3
votes
0 answers

How to get details of PCI device enumeration when Windows starts up

We made a motherboard. A PCIe switch (1 upstream port, 4 downstream ports) is used. Each downstream port directly leads to a PCIe slot. There is a problem that has been plagued for a long time. The No. 2 slot does not recognize the device and has…
lizzoe
  • 51
  • 3
3
votes
0 answers

Cannot set friendly name for device in Windows 7

In my UMDF device driver I set a friendly name for my device programatically: HRESULT CMyDevice::SetFriendlyDeviceName(WCHAR * FriendlyName) { HRESULT hr = HRESULT_FROM_WIN32(ERROR_GEN_FAILURE); CComPtr upsf…
arminb
  • 2,036
  • 3
  • 24
  • 43
3
votes
1 answer

WDKRemoteUser password ?

I am trying debug a WDF drivers by connecting Visual Studio 2013 to my test machine. It creates a user named WDKRemoteUser and it tries to auto logon while doing the tests. Anyone knows the password of this user ?
Prasad Nair
  • 485
  • 2
  • 6
  • 12
2
votes
2 answers

Driver's uninstall button is disabled

I've written my fairly simple first driver for a virtual device. It also has a .inf and I install the driver using devcon.exe. It install fine and functions properly but my problem is when I try to uninstall it: devcon.exe can't uninstall it and in…
Nicu Surdu
  • 8,172
  • 9
  • 68
  • 108
1
2 3 4 5 6 7 8