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

How to receive WdfDevicePostEvent 's notify events in C# application

https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/wdfdevice/nf-wdfdevice-wdfdevicepostevent I have an WDF driver use WdfDevicePostEvent() to notify WdfEventBroadcast type event, and have another application build in C# to use…
Victor
  • 11
  • 2
1
vote
0 answers

Use SerCx.h in Windows Driver?

I'm working on a Windows KMDF driver using VS2019, where I need to use the SerCx2 framework. Although, if I use #include I get "No such file or directory". If I use #include the compiler finds the header file, but…
Klas-Kenny
  • 249
  • 1
  • 10
1
vote
0 answers

Obtaining a handle to a USB WebCam (Windows 10/CPP)

I'm trying to obtain a handle to my USB WebCam (Microsoft LifeCam HD-3000 ) device. I dont want to use it in a conventional way so usage of any multimedia framework are not considerable. I need to be able (if possible) to send to it IRP's via…
user3305379
  • 35
  • 1
  • 7
1
vote
0 answers

KMDF driver fails to build VS 2017

I'm trying to build and compile the device driver example given in MSDN website https://learn.microsoft.com/en-us/windows-hardware/drivers/gettingstarted/writing-a-very-small-kmdf--driver, however build operation failed without any errors. after…
Elamir Ohana
  • 292
  • 3
  • 20
1
vote
0 answers

How to build : Keyboard Input WDF Filter Driver (Kbfiltr)

I tried to build the sample, but instructions in the readme file seems to be out of date. I tried with different versions of Visual Studio with no luck. The target is Win10 and the host is Win7. Are there up to date instructions somewhere ? What…
1
vote
1 answer

A driver has enumerated two child PDO's that returned identical Device ID's

I have a kmdf bus driver PCI\VEN_XXXX&DEV_XXXX that creates two statically enumerated PDOs with serial numbers: 217 and 218; one for each Ethernet port. The PDO hardware id is ROOT\MY_NIC_PORT so I can install a NDIS Miniport driver on them. The…
Dan
  • 33
  • 3
1
vote
2 answers

How to call an KMDF WDF interface from NDIS Miniport?

I have a Bus Driver that creates a PDO for each physical port of a custom Ethernet card. I also have an NDIS Miniport Driver that installs onto each PDO. The Bus Driver is based on the static Toaster example. The NDIS Miniport is based on the…
Dan
  • 33
  • 3
1
vote
1 answer

Where is WDF template after installing wdk?

visual studio community 2017 + wdk 10.0.15063.0 + sdk 10.0.15063.137 I installed vs2017 first,and then,the wdk. However I cound't find the WDF template when I try to create a KMDF. Appreciate for any help.
Pawn Pod
  • 63
  • 1
  • 8
1
vote
1 answer

How to pass another request down the stack?

As the title suggest I have a trouble with following code: EvtDeviceIoWrite( IN WDFQUEUE Queue, IN WDFREQUEST Request, IN size_t Length ) { WDF_OBJECT_ATTRIBUTES_INIT(&attributes); attributes.ParentObject =…
Jak ttt
  • 33
  • 6
1
vote
1 answer

How to stop a Plug-and-Play filter driver on demand?

I am developing a filter driver under Windows. The driver is PnP-aware to receive device notifications and it also creates a control device to communicate with an accompanying usermode service via IOCTLs. As far as I understand, driver's lifetime is…
FunkyLoiso
  • 113
  • 4
1
vote
0 answers

Programmatically restarting a driver windows

I'm working on a KMDF pcie driver. Currently if I disconnect/reconnect the device, windows does not recognize that the device was disconnected, does not re-enumerate the node, and does not release the driver. Currently the best way is to…
aah
  • 81
  • 6
1
vote
1 answer

KMDF WdfDriverCreate function returns "insufficient resources"

I'm trying to write a kmdf driver to target a custom PCIe board. On following the default project that Microsoft provides, I made a few minor changes to the .inf file, mainly changing the names of strings and providing the hardware ID of our PCIe…
shaboinkin
  • 171
  • 1
  • 11
1
vote
1 answer

Microsoft RAM disk example driver - ideas to fix access problems?

I succeeded in compiling and installing the Microsoft RAM disk example driver (VS2013 with WDK 8.1 - also using the WDK 8.1 driver examples). The readme tells that after installation you can use the RAM drive from an admin prompt. Probably the…
Alatun
  • 81
  • 2
  • 3
1
vote
0 answers

Need to develop a Device Driver, which when installed on a system would create multiple Virtual serial port

This is my first Windows device driver and I have been assigned a task to develop a Windows device driver from scratch. When the user installs this driver on a windows PC it would ask the user, during the installation process, to enter the number of…
1
vote
1 answer

DeviceIoControl error 1 incorrect function

I have created a device in kernel space and the access it in user space using CreateFile I am able to send ioctl to the driver and they are executed properly. The don't know how to trace what happens after WdfRequestComplete and upon return I end…
Luis
  • 114
  • 2
  • 10