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

KMDF Driver INF file error KMDF: 1280 and 1212

This is my current Code: [Version] Signature="$WINDOWS NT$" Class=%ClassName% ClassGuid={78A1C341-4539-11d3-B88D-00C04FAD5171} Provider=%ProviderName% CatalogFile=hidriver.cat DriverVer=01/07/2018 PnpLockdown =…
VodkaFree
  • 11
  • 1
1
vote
1 answer

Which APIs should I use to expose WebCam functionalities?

I am trying to design a Windows KMDF driver for an old USB Webcam. I think I have enough informations on the driver development / USB protocol side, but I am wondering how I should expose the webcam functionalities from the driver so that Windows…
oparisy
  • 2,056
  • 2
  • 16
  • 17
1
vote
0 answers

Use SerCx.h in Windows Driver?

I'm working on a Windows KMDF driver using VS2019, where I need to use the SerCx2 framework. Although, if I use #include I get "No such file or directory". If I use #include the compiler finds the header file, but…
Klas-Kenny
  • 249
  • 1
  • 10
1
vote
2 answers

Linker error "unresolved external symbol __stdio_common_vsprintf", building the windows kernel driver

I am getting Linker error: error LNK2019: unresolved external symbol __stdio_common_vsprintf referenced in function _vsnprintf_l Project is Windows Kernel driver. I use RtlStringCbVPrintfA and RtlStringCbPrintfA functions in my code, which probably…
Kola73
  • 134
  • 1
  • 7
1
vote
0 answers

Obtaining a handle to a USB WebCam (Windows 10/CPP)

I'm trying to obtain a handle to my USB WebCam (Microsoft LifeCam HD-3000 ) device. I dont want to use it in a conventional way so usage of any multimedia framework are not considerable. I need to be able (if possible) to send to it IRP's via…
user3305379
  • 35
  • 1
  • 7
1
vote
1 answer

How to block an dll injection via Minifilter

Im trying to block .dll injection (or general injection) into a specific process via a Minifilter This is my PreOperationCallback: if (Data->Iopb->MajorFunction == IRP_MJ_ACQUIRE_FOR_SECTION_SYNCHRONIZATION) { /* Open file for…
1
vote
3 answers

Deploying a driver fails in VS 2019

Trying to experiment a bit with KMDF and the echo driver fails to deploy: A[13:22:28:862]: An error occured while deploying files to the target machine for test "Driver Preparation": Could not find a part of the path 'C:\Program Files…
Michael Chourdakis
  • 10,345
  • 3
  • 42
  • 78
1
vote
1 answer

How to load kmdf driver (wfp/inspect) on system boot

I wrote simple 64bit kmdf driver (wfp/inspect). This driver is located in: %WinDir%\System32\Drivers\Inspect.sys I can load this driver using: net start inspect. Now I would like to load this driver during Windows startup, so I have prepared this…
user7437344
1
vote
0 answers

KMDF driver fails to build VS 2017

I'm trying to build and compile the device driver example given in MSDN website https://learn.microsoft.com/en-us/windows-hardware/drivers/gettingstarted/writing-a-very-small-kmdf--driver, however build operation failed without any errors. after…
Elamir Ohana
  • 292
  • 3
  • 20
1
vote
2 answers

Send mouse input to operating system after receiving it in kernel driver

I am creating a driver in KMDF that receives input from my device and sends a mouse click command to the operating system. What is the lowest level function I can call to send a mouse click to Windows?
user5486873
1
vote
1 answer

Detect & Block Read/WriteProcessMemory calls from a Driver

Hi i'm relativly new to kernel programming (i've got a lot of c++ development experience though) and have a goal that i want to achieve: Detecting and conditionally blocking attempts from userland programs to write or read to specific memory…
edward.
  • 31
  • 1
  • 4
1
vote
0 answers

Offline Kernel Mode Driver debugging with WinDBG and VMware - What symbol files am I missing?

As a part of a project I am learning how to write Kernel Drivers for windows. I have setup the following environment: My Virtual target machine is Windows 7 Sp1 x86 - Running on VMware Workstation. My host machine is Windows 7 Running windbg to…
user4982007
1
vote
1 answer

Is SourceAddress relative to SourceProcess in MmCopyVirtualMemory?

I try to use the following code from kernel mode in a driver: NTSTATUS NTAPI MmCopyVirtualMemory ( PEPROCESS SourceProcess, PVOID SourceAddress, PEPROCESS TargetProcess, PVOID TargetAddress, SIZE_T BufferSize, KPROCESSOR_MODE…
user7145038
1
vote
1 answer

Guides for adding 64-bit support to a KMDF driver

Are there any guides or documentation for adding 64-bit support to a KMDF driver? I have a good set of links for WDM drivers, but it would be nice to see a KMDF-specific guide showing what KMDF handles for you and what the driver needs to…
Joshua Strouse
  • 797
  • 9
  • 14
1
vote
0 answers

Mapping IO space to UserMode via CreateFileMapping

I am writing some proof of concept code for KVM for communication between Windows 10 and the Host Linux system. What I have is a virtual RAM device that is actually connected to a shared memory segment on the Host. The PCIe BAR 2 is a direct mapping…
Geoffrey
  • 10,843
  • 3
  • 33
  • 46