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

How to install KMDF Filter Driver from WDK 8.1 Toaster Sample Driver?

I'm learning Windows driver development by examining the WDK 8.1 Toaster Sample Driver. I can build, install, debug, and communicate with the KMDF Bus, and KMDF Function Driver. The problem I have is installing the KMDF Filter Driver. I tried using…
tchau.dev
  • 903
  • 1
  • 11
  • 30
2
votes
0 answers

How to uniquely identify user processes which have opened handle to my kmdf driver?

In my KMDF driver, i want to uniquely identify which process has opened a handle to the driver using CreateFile. Is there a way to do this using any WdfXXX() call?
Nishanth
  • 43
  • 6
2
votes
2 answers

VS2013 doesn't have windows driver template

My visual studio 2013 ultimate doesn't have "Windows Driver" template in New Projects. I mean that I want to have something like following picture: http://msdn.microsoft.com/en-us/library/windows/hardware/hh439665%28v=vs.85%29.aspx How can i add…
somtom
  • 21
  • 2
2
votes
1 answer

Debugging KMDF driver: "The system cannot find the file specified."

I'm trying to create a simple (software) driver using these instructions. Host is Windows 7 x64 with fully updated MSVS Express 2013. Latest windows driver kit is installed and working fine. A virtual machine also with Windows 7 x64 is succesfully…
Daniel Sloof
  • 12,568
  • 14
  • 72
  • 106
2
votes
1 answer

how to create windows installation package for my .inf?

I have done the below steps: 1. built and compile my kernel driver which emulates tape device drivers. 2. created the needed .inf 3. created the needed .cat 4. signed the files 5. tested by manually "right click" -> install on the .inf file from…
2
votes
0 answers

Windows Kernel Driver - Memory Access Exception

I am trying to understand drivers better and have built a very basic one from scratch. #include VOID onUnload(IN PDRIVER_OBJECT pDriver_Object) { DbgPrint("Unloading Driver\n"); } NTSTATUS DriverEntry(IN PDRIVER_OBJECT…
user3557422
  • 29
  • 1
  • 4
2
votes
1 answer

Smartcard Driver (KMDF with SCardLib) Issues

I'm developing Smartcard Driver using KMDF and SCardlib, I used the WDK Smarcard Sample as reference, I think I implemented all of the callbacks correctly except for CardPower and CardTracking. (My reader and card don't now support for now RESET…
Baget
  • 3,318
  • 1
  • 24
  • 44
2
votes
1 answer

IoGetDevicePropertyData() returns STATUS_OBJECT_NAME_NOT_FOUND

I'm updating a functioning KMDF driver for a PCI device, using WinDDK 7600.16385.1 and OSR's ddkbuild.cmd, targeting WLH, testing on Win7 x86 and x64. I'm attempting to retrieve the DEVPKEY_Device_LocationPaths property. The Device Manager Device…
dr-stevep
  • 31
  • 3
2
votes
0 answers

erreur : C1083: Cannot open include file: 'wdm.h': No such file or directory

I am trying to build this code with qtcreator, my point is to create a new device using RtlInitUnicodeString and IoCreateDevice #define _WIN32_WINNT 0x0501 #include #include #include #include #include…
Oumaya
  • 655
  • 4
  • 18
  • 43
2
votes
2 answers

Waiting for vertical blank in kernel mode?

I'm writing a driver that needs synchronization with vertical blank interrupt to send some data down the USB pipe. In user-mode there are Direct X functions available for this like IDXGIOutput::WaitForVBlank and few older ones. I am not able to use…
kurczak
  • 1,521
  • 1
  • 10
  • 18
2
votes
3 answers

Accessing a Toshiba Laptop Accelerometer Device Driver

I have a new Toshiba Satellite Pro S300 laptop (running Windows XP) which sports a 3D accelerometer for HDD protection. I'd like to tap into the data sent by this sensor. Older Toshiba laptop/Tablets had a DLL that could be accessed to extract the…
Adi Shavit
  • 16,743
  • 5
  • 67
  • 137
1
vote
1 answer

Reading asm cpuid directly

How I can read this instruction directly: unsigned int eax, ebx, ecx, edx; unsigned int leaf, subleaf; unsigned int intbuf[12];` char *buffer; int i,j,k,base,start,stop,length; float freq_GHz; float frequency; subleaf=0; base = 0; for…
daniel
  • 25
  • 3
1
vote
0 answers

ntdef.h missing from SDK and WDK

I am trying to build a KMDF Driver project, but when including ntddk.h and wdf.h, I get errors along the lines of: variable "_IRQL_requires_same_" is not a type name variable "ULONG" is not a type name variable "NTSYSAPI" is not a type name There…
Omer Lubin
  • 551
  • 2
  • 8
  • 24
1
vote
0 answers

How to fix Static Driver Verifier results "error"

I am trying to run the Static Driver Verifier on the "Kernel Mode Driver, USB (KMDF)" template project in Visual Studio 2019. I select the Release configuration for x64 platform. I have only selected the "DriverCreate" rule. If I remove the call to…
tuple_cat
  • 1,165
  • 2
  • 7
  • 22
1
vote
0 answers

Is there way to ignore not-found system function in a kernel .sys module? so to run .sys in older Windows

I'm facing such a problem. I've built a Windows kernel mode driver using WDK11, and, in order to pass Windows 11 WHQL, I need to use new memory allocating function ExAllocatePool2. The problem is, this driver will fail to load on Windows 7. You…
Jimm Chen
  • 3,411
  • 3
  • 35
  • 59
1 2
3
13 14