Questions tagged [kmdf]

A KMDF driver is the software installed on the computer that communicates with the hardware to make the device function.

The Kernel-Mode Driver Framework (KMDF) is a driver framework developed by Microsoft as a tool to aid driver developers create and maintain kernel mode device drivers for Windows 2000 and later releases. Together with the User-Mode Driver Framework () it makes up the Windows Driver Frameworks ().

200 questions
1
vote
1 answer

No .cat files generated when building an empty KMDF driver

Hi I am trying to follow this tutorial Write a universal Hello World driver (KMDF) provided by microsoft but I am stuck at number 6. I can't generate a .cat file inside KmdfHelloWorld/ARM/Debug. I could only see .cer, .inf, .pdb and .sys. There's…
Gibs
  • 774
  • 9
  • 26
1
vote
1 answer

WINDOWS KMDF PCI DRIVER:- API For Writing Data To MemoryMapped Virtual Address

I have the task of writing a KMDF based PCI driver for Windows. Basically the objective is to write data to RAM which is on a FGPGA board (The board doesn't exist yet). A PCI interface on the FPGA will allow data to be directly read and written to…
PC_Study
  • 15
  • 4
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
2 answers

MSBUILD : error MSB1008: Only one project can be specified while make setup file

I got this error while trying to build a setup of driver project C:\Program Files (x86)\Microsoft Visual Studio 14.0>msbuild /t:clean /t:build C:\Users\iomadmin\Documents\Visual Studio 2015\Projects\KMDF\KMDF Driver5\KMDF Driver5.sln…
S_b_n_S
  • 77
  • 2
  • 6
1
vote
0 answers

Microsoft Visual Studio 2010 Professional and wdksetup for wdk8.1

I have installed Microsoft Visual Studio 2010 Professional and wdksetup for wdk8.1 but i couldn't find 'Visual C++ > Windows Driver > WDF' in the 'New Project' dialog box. I have to develop a minifilter driver. Guide me am lost
1
vote
2 answers

Multithreaded DeviceIOControl for KMDF

Before I get to my question, I'll go over what I am currently working with so you have a decent idea of what I've already done/tried. I have a multithreaded usermode Windows Desktop Application that issues DeviceIOControl calls to a KMDF driver…
ryanbowen
  • 23
  • 4
1
vote
0 answers

How to deploy the universal hello world windows driver (KMDF) on a virtual machine

I can't find an answer dealing with this. I am trying to learn kmdf driver programming, but trying to do this on a virtual machine on the same machine. I have my VirtualBox setup so that I can attach to a process from Visual Studio and debug the the…
Electromic
  • 21
  • 2
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

How to distinguish devmgmt's Disable and Uninstall from within my Windows driver code?

I'm studying Microsoft Toaster sample code from WDK7, and I find a subtle problem. Now trying the compiled drivers(WDM busenum and WDM featured1) on Windows 7. As guided by README, enum -p 1 adds a toaster device, then, I open device…
Jimm Chen
  • 3,411
  • 3
  • 35
  • 59
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

windows kdmf driver virtio calling virtqueue_add_buf causes system fatal error

I have a driver for Windows VM that allows user space apps to communicate via IOCTL. I need to expose a structure to the host (using virtio) and I have tried using virtqueue_add_buf after initializing the virt device in the EvtDevicePrepareHardware…
Luis
  • 114
  • 2
  • 10
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
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

Kernel Mode Win10 Driver BSOD, how to catch in c++?

I'm trying to read out memory of another process via kernel mode driver. It is working and i'm injecting the driver into the space of another driver to make it work (or could just enable test mode). However, it is working well, but when giving a…
mutilis
  • 563
  • 3
  • 18