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

workaround to skip driver signing in 64bit windows

I am an individual, not a company and i am working on a virtual kernel mode device driver. I am aware that I can test sign a driver and run in test mode. However I want to distribute my driver free of cost , but i don't have the resources to buy…
rajat
  • 3,415
  • 15
  • 56
  • 90
3
votes
2 answers

Unable to load the windows driver

I was trying to load the windows driver in windows 10 using OSR Loader, the service for HelloWorld.sys has been created, but when I click on start, it's saying "This driver has been blocked from loading" The video I followed:…
tbhaxor
  • 1,659
  • 2
  • 13
  • 43
3
votes
1 answer

Windows driver with or without INF file

I've seen two ways to install Windows drivers. a. Using both SYS file and INF file. (such as NDIS driver) b. Only use SYS file, the driver will be loaded by a service. (such as drivers in C:\Windows\System32\drivers) So, my question is: 1. What…
3
votes
1 answer

Driver Development (Windows) : What is RTL?

Can someone explain me please what is RTL in the context of driver development for Windows ? Development Tool : Visual studio 2019 Driver Type: Kernel Mode (kmdf). Programming Language : C.
ST0x
  • 53
  • 8
3
votes
1 answer

How to register a software interrupt with Windows KMDF?

I want to register a new software interrupt with a corresponding service routine on Windows 10 x64, is this possible - is there API provided to do this? Do I have to accomplish this manually using undocumented features and would doing so trigger…
Jason
  • 150
  • 1
  • 10
3
votes
1 answer

UMDF, cannot specify [ClassInstall32] section for Microsoft-defined class

I'm working with the next tutorial: How to write your first USB client driver. And I've got a problem with compiling a project, I've got the next error: I was trying to do the steps closely to the description in tutorial, but always got the error…
user4959035
3
votes
0 answers

Visual Studio 2015 is always crashing with KMDF/UMDF deployment

My Visual Studio 2015 is always crashing when I'm trying to set the target device in Project Properties -> Driver Install -> Deployment part. Here, if to try to configure device, the VS2015 is crashing always. This behavior is the same both for…
user4959035
2
votes
1 answer

Send doesn't work properly in my NDIS modifying filter driver

I'm trying to implement packet modifying filter by using NDIS. I used the approach with dropping packets and originating send/receive from cloned NBLs. The docs on msdn say that's…
Rakoo
  • 546
  • 5
  • 16
2
votes
0 answers

Linker error when compiling windows kernel mode driver x64

I'm trying to compile the sysvad audio driver example found here: https://github.com/Microsoft/Windows-driver-samples/tree/master/audio/sysvad Getting a linker error when compiling windows kernel mode driver x64 error LNK2019: unresolved external…
Nick
  • 2,735
  • 1
  • 29
  • 36
2
votes
3 answers

Can Kernel mode driver do ReadProcessMemory on any process?

I am currently writing a kernel mode driver (software driver) with KMDF and since I am very new to this topic I want to ask you if my driver would be able to call OpenProcess and ReadProcessMemory on any running process or is there some way to…
user7145038
2
votes
1 answer

WinDBG: How to get the underlying FILE_OBJECT from a WDFFILEOBJECT handle?

I'm having a WDFFILEOBJECT handle(0x0000057fedd9b8b8), and I want to know its underlying FILE_OBJECT address, so that I can use !object xxxx to query the FILE_OBJECT's .PointerCount and .HandleCount. What windbg command can I use? !wdfkd.wdfhandle…
Jimm Chen
  • 3,411
  • 3
  • 35
  • 59
2
votes
1 answer

Debugger cannot break into a KMDF driver in vs 2015 professional via network connection

I am trying to set up remote driver debugging in visual studio 2015 professional with update2. My host computer is running in Windows 8.1 home-edition 64 bit, and the target is a separate computer which runs in Windows 10 home-edition 64 bit. I can…
simon
  • 21
  • 3
2
votes
0 answers

Visual Studio 2015 kernel debugger gets stuck

I am attempting to write a KMDF driver using visual studio 2015. When I try to deploy the driver and start the debugger everything seems to work: visual studio is able to build the solution and deploy it to the target computer (wich is a virtual…
2
votes
2 answers

Equivalent command to build (on WDK 7) with WDK 10

I have some really old scripts using the build command for compiling with WDK 7. A sample command to build a static library is: build /F /g /w /b /c /Z /jpath %BUILDROOT% What is equivalent command I can use to compile the same with WDK 10? Also…
2
votes
1 answer

How to properly register a completion routine for an internal device control request for a lower filter disk driver?

I'm currently writing a lower filter disk driver to capture SCSI commands, and to measure the performance of each command. Currently, my driver is capable of capturing the SCSI request, and passing it down to the next driver. However, when I tried…
tchau.dev
  • 903
  • 1
  • 11
  • 30
1
2
3
13 14