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

Problems deploying a kmdf driver

I've been trying to compile and deploy the sample keyboard filter supplied by Microsoft using visual studio 2012 tools. I have the target computer setup via a serial cable (virtualbox with a serial cable, seems to be working since the setup process…
user1690293
  • 423
  • 5
  • 14
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
0 answers

Signing a kernel mode driver

I have a kmfd driver and i am buying a certificate from http://www.digicert.com/code-signing/ , will this certificate work on windows 7 ? or do i need to buy it from verisign only , they charge a whopping 400$/yr whereas this is 178$/year .
rajat
  • 3,415
  • 15
  • 56
  • 90
1
vote
0 answers

Handling shutdown in KMDF filter

I'm working on kmdf volume filter driver and wanted to handle shutdown. The article WDM IRPs and KMDF Event Callback and comments in the WDF book seems to suggest that the WDF supports IRP_MJ_SHUTDOWN only for control(non PNP) deivce. So I added…
Juke Exch
  • 121
  • 1
  • 3
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

Reading a file with kernel APIs when a user application is locking the same

I'm trying to read a database transaction log used by a DB engine. As the file is exclusively locked, I can't read it in any handles created by the user mode. Hence, I'm trying Kernel APIs such as ZwCreateFile, IoCreateFileSpecifyDeviceObjectHint,…
0
votes
0 answers

link users pace static library to KMDF Windows

I have defined Hello() function in a C++ library(VS C++ project, static library configuration). I have created KMDF project. I want to link this driver to the function "Hello()" defined in the library. I keep getting unresolved Hello(). I tried…
0
votes
0 answers

code 1284 Class "Sample" is reserved for use by Microsoft; code 1293 Service "ECHO" is reserved

I am trying to run the echo demo from this repository, but got some errors as the image shows below, anyone knows how to solve this problem? enter image description here I had tried from this…
0
votes
0 answers

Unloading a Windows Driver

I am creating a Network driver using Windows KMDF Driver and Windows Filtering Platform(WFP) API. In my driver, I am allocating memory X using ExAllocatePoolWithTag() and using that address in localRedirectContext. I am fetching that data…
0
votes
1 answer

Installing the driver using devcon and pnputil

After installing my driver, the virtual device should be created (Win 10). When I install the driver in the first way: devcon install INFfile HardwareID everything is fine, the installation is successful, the virtual device is created, I can see it…
0
votes
1 answer

Call a C++ DLL from C KMDF (Kernel Mode Driver Framework)

I want to call a C++ DLL from a C KMDF, I made this code C++ Code dll.h extern "C" { __declspec(dllexport) void MyFunction(); } dll.cpp void MyFunction() { std::cout << "Hello from MyFunction in C++ MyLibrary.dll" <<…
Ferrus
  • 15
  • 6
0
votes
1 answer

Virtual Pen Multi Monitor with VHF

I had an application that emulated tablet inputs (im using a Wacom Intuos). It send them with InjectSyntheticPointerInput. This worked great, using EnumDisplayMonitors I can get the dimensions of my virtual workspace, and normalize the values coming…
vulkur
  • 21
  • 5
0
votes
0 answers

USB Lower Filter to simulate input delay

I want to create a USB lower filter, that can identify mouse and keyboards or all hid devices and delay all the input data from them by 1 second. I am mainly using ChatGPT to write my code, which I am sure is probably not working. The AI recommended…
0
votes
0 answers

When to use Trace Message Headers (tmh)

I am using Visual Studio and I selected the regular KMDF template. However, when everything loaded up, I noticed that I was getting errors saying, "cannot open source file "queue.tmh"". This error persisted across all 3 C classes where each file…
0
votes
0 answers

What is the difference between "has completed" and "have processed" the I/O operation in Minifilter Driver development?

While learning Minifilter development by reading MS Doc "Writing Preoperation and Postoperation Callback Routines" article, a sentence was confusing me: When all minifilter drivers in the minifilter driver instance stack have processed the I/O…
Baskman
  • 75
  • 9