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

WdfFdoQueryForInterface failed with 0xc00000bb

I want to write a KMDF driver to receive the ACPI notify value, below is my Driver code #include #include #include #include DRIVER_INITIALIZE DriverEntry; EVT_WDF_DRIVER_DEVICE_ADD…
stackmetro
  • 11
  • 2
0
votes
0 answers

Not getting all interrupts in KMDF driver

I'm trying to port an existing linux device driver to windows. It's mostly working, but there's a weird issue - sometimes device won't interrupt or the interrupt is lost. Interrupts are only lost when I'm not actively debugging. I tried enabling…
ecodev
  • 1
0
votes
0 answers

WdfWaitLockCreate function retrun STATUS_INSUFFICIENT_RESOURCES after windows 10 1903 update

The problem occurred in windows file system kernel driver that running in windows 10 1903. When the driver trying to create lock using the WdfWaitLockCreate(WDF_NO_OBJECT_ATTRIBUTES, &CA_agentFileObjectLock); i am receiving NTSTATUS…
idan
  • 13
  • 1
  • 5
0
votes
1 answer

Windows update 1903 causing file system driver to crash

I have a serious problem with a windows file system KMDF driver. the problem occurred after Windows 10 ver 1903 update (may latest update). the driver was running smoothly before the update at any giving windows 10 versions. When the driver start…
idan
  • 13
  • 1
  • 5
0
votes
0 answers

The KMDF driver crashes with no useful information from !analyze -v

I am trying to debug Hello World KMDF driver from MSDN in Virtual Box. Symbols loads and everything looks fine. But when I am trying to debug the code the following…
Cain A
  • 11
  • 2
0
votes
0 answers

KMDF driver targeted for Windows 10, not building on Windows 7(SP1) using VS 2017

I am creating sample(HelloWorld) KMDF driver using Visual Studio 2017 on Window 7(SP1 and 64 bit). The driver is targeted for Windows 10 and configured for x64 platform. My project does not compile and throws errors as below…
0
votes
1 answer

KMDF MmCopyVirtualMemory Undefined

Hello and my problem today is I was trying out a new/old method of writing memory with a system files(.sys) after watching Zer0Mem0ry's video on the subject. But I tried to copy but came with the error : Error C4013 'MmCopyVirtualMemory' undefined;…
Asbj1477
  • 11
  • 3
0
votes
0 answers

Windows Kernel Driver Signing issue (WFP/Inspect)

I'm learning about WFP/Inspect kmdf. I'm using VS 2017. So far I've succesully build my own kmdf: ------ Rebuild All started: Project: inspect, Configuration: Win10 Debug x64 ------ Building 'inspect' with toolset 'WindowsKernelModeDriver10.0' and…
user7437344
0
votes
0 answers

UDE Invalid Device Descriptor

I have been working through Microsoft's guide on USB Device Emulation and have reached the point that a virtual device shows up in my device manager, but reports an Invalid Device Descriptor. Can you see any reason why the guide's example descriptor…
0
votes
1 answer

KMDF: Handling IRQ

We need to handle IRQ in KMDF driver I've registered EVT_WDF_DEVICE_RESOURCE_REQUIREMENTS_QUERY callback function but system does not call it. EVT_WDF_DEVICE_PREPARE_HARDWARE is called without any resources allocated. Attempt to call…
Victor
  • 181
  • 2
  • 12
0
votes
1 answer

Starting KMDF driver service after stopping results in mysterious error

I wrote a very basic KMDF driver, installed it, and started it with net start KmdfStart. I then stopped it with net stop KmdfStart. No issue so far. However when I start it again using net start KmdfStart I get System error 2 has occurred. The…
wezten
  • 2,126
  • 3
  • 25
  • 48
0
votes
1 answer

How to distribute a windows kmdf driver to clients privately

I'm very new to windows driver development. I've written a KMDF windows driver and I'm able to test deploy it to my target machine using VS deploy. It worked fine and now I'd like to ship this driver with the application that uses this driver. Here…
MiDaa
  • 1,149
  • 1
  • 11
  • 25
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

Compilation warnings in driver after including ksmedia.h

I'm developing a driver bases on Microsoft's Toaster KMDF filter driver example. I've included the headers windef.h, ks.h, ksmedia.h, and now I'm seeing the following warnings: Warning #1: \\...\ksmedia.h(732): warning RC4011: identifier truncated…
Paul
  • 6,061
  • 6
  • 39
  • 70
0
votes
1 answer

Kernel mode driver won't link in VS 2015

I have a KMD that uses the Platform toolset WindowsKernelModeDirver8.1. The driver compiles links, and runs without any problems using VS 2013. I am running Windows 10. When I try to compile it with VS 2015 I get the following link error. 1>LINK :…