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
0
votes
0 answers

Windows Driver substitue for linux device driver sysfs interface

Let me describe what sysfs does : its a pseudo file system where files, directories are generated by the core kernel or kernel drivers. And these files have read/write access and are a mechanism to control certain kernel level parameters by user…
hit.at.ro
  • 306
  • 3
  • 11
0
votes
1 answer

Access denied when using WdfRegistryOpenKey function to create registry keys in umdf2

In my WDF driver, I want to save some custom data used for specific device to the registry. But I cannot use the WdfRegistryCreateKey() function provided by umdf2 to create a new key under "hardware_key\Device Parameters" on windows10 1909 platform.…
0
votes
1 answer

IddCX header results in errors for pure C compilation

I am trying to use pure C for a windows driver I am working on. Its a driver using IddCx (um/iddcx/iddcx.h). This header has a 'extern "c"` wrapper to allow for C compilation. The issue is the code within the 'extern "C"' block is not C. I get these…
vulkur
  • 21
  • 5
0
votes
1 answer

Which driver framework should I use to create Virtual Microphone on Windows Platform?

I want to create Virtual Microphone for Windows platform. Which driver framework out of Windows Driver Frameworks (Kernel-Mode Driver Framework (KMDF) and User-Mode Driver Framework (UMDF)) and Windows Driver Model should I choose to make it work on…
Alok
  • 7,734
  • 8
  • 55
  • 100
0
votes
0 answers

What is a preferred PSM in the wdf windows example?

I've been studying the echo bit sample from WDF Windows. There is a function BthEchoSrvRegisterPSM in server.c which registers PSM. It looks like that: _IRQL_requires_max_(PASSIVE_LEVEL) NTSTATUS BthEchoSrvRegisterPSM( _In_…
user
  • 95
  • 1
  • 9
0
votes
2 answers

"A mismatch between the PNP/INF version and the KMD file version on the graphics adapter has been detected"

I've been testing a UMDF IddCx video driver, and this message just started appearing (after devcon.exe install ...) along with a breakpoint in WinDbg: (DriverEntry and EVT_WDF_DRIVER_DEVICE_ADD handlers succeed as they did prior to this error…
Scott Smith
  • 3,900
  • 2
  • 31
  • 63
0
votes
1 answer

UMDF: Access device registry key inside a EVT_WDF_TIMER callback function

I am having issues with a UMDF driver retrieving data stored in the device registry from a EVT_WDF_TIMER callback function. Such callback function only has WDFTIMER object as its sole parameter. To be able to access registry in UMDF,…
Jer Yango
  • 582
  • 2
  • 8
  • 22
0
votes
1 answer

Can I check for the existance of another device from a wdf driver?

Is there a good way to check for the existence of a device outside of the current driver stack in a KMDF framework? Perhaps via something like the physical device object name. I want to know if \Device\MyDeviceXXXexists from an unrelated driver.…
James Parsons
  • 6,097
  • 12
  • 68
  • 108
0
votes
1 answer

Can't compile windows driver - Signability test fails for windows driver

I'm trying to create a very simple windows driver, the problem is that I can't get to compile it, visual studio keeps giving me the following error: kmd\kmd.inf does not have NTAMD64 decorated model sections. What's causing this problem and how do…
Trey
  • 474
  • 2
  • 9
  • 32
0
votes
0 answers

Windows kernel: why is my memory mapping not working?

I have a kmdf that allocates a single buffer using MmAllocateContiguousMemorySpecifyCache and gets its mdl: auto ptr = MmAllocateContiguousMemorySpecifyCache( BUFFER_SIZE, lowestAcceptible, highestAcceptible, lowestAcceptible, …
Elad Maimoni
  • 3,703
  • 3
  • 20
  • 37
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
1 answer

How to fix PAGE_FAULT_IN_NONPAGED_AREA in wdf driver

I meet a BSOD issue in a WDF filter driver when call WdfObjectDelete in Wdf01000!FxObject::CallCleanupCallbacks? Mosttime it works well but the issue happens sometime when reboot. Does anyone can give me some suggestions? Thanks. the stack as…
TQ.Liu
  • 81
  • 6
0
votes
0 answers

Winsock Kernel - Reusing socket return error 0xc0000184

I am developing WDF driver that uses Winsock Kernel module connecting network. I have encounter problem when I try to reuse socket. I am successfully creating, binding and connecting socket. After that I am disconnecting socket with WskDisconnect…
0
votes
1 answer

Who owns the WDFMEMORY in a WDFREQUEST?

I am writing a Windows kernel driver. I need to create a new I/O request and allocate my own memory for the input buffer. // Create request WDFREQUEST request; status = WdfRequestCreate(WDF_NO_OBJECT_ATTRIBUTES, target, &request); if…
Andrew Sun
  • 4,101
  • 6
  • 36
  • 53
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…