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

Linker error after including fstream.h in KMDF driver

I'm a newbie in driver developing. This is my code: #include #include #include #include #include #pragma comment(lib, "libcpmtd.lib") extern "C" { NTSTATUS DriverEntry( _In_ struct…
Javid
  • 2,755
  • 2
  • 33
  • 60
0
votes
1 answer

debugging of driver on separate computer after connecting two computers

I am about to start a project that requires debugging of program on separate computer. basically I am writing a file system filter driver. and it's on windows. For that, the debugging of driver has to be on separate system. I need to know how I can…
user786
  • 3,902
  • 4
  • 40
  • 72
0
votes
1 answer

Installing template for VS 2015 enterprise

I have VS 2015, and I also have Windows Driver Kit 10.0 But in VS 2015 Enterprise, I could not find any template to write KMDF related development. I tried to install so search for template for KMDF or WDF but I could not find it. How can I install…
user786
  • 3,902
  • 4
  • 40
  • 72
0
votes
1 answer

Connection lost to target after .reload command

In WinDbg: File->Symbole File Path? I set the path to: Srv*c:\symbols*https://msdl.microsoft.com/download/symbols After this path file setting I'm trying to make this example: https://msdn.microsoft.com/en-us/library/windows/hardware/mt269367 In…
MarksSO
  • 63
  • 1
  • 12
0
votes
1 answer

kdmf pnp driver cannot find device when installing

I am trying to create a pnp driver but when I run sc start driver-name I get an System error 1058 (disable disabled or no enabled device associated). However if I modify the code for nonpnp WDF_DRIVER_CONFIG_INIT(&config, WDF_NO_EVENT_CALLBACK); and…
Luis
  • 114
  • 2
  • 10
0
votes
1 answer

Including hidpi.h in WDK Driver Causes Compilation Errors

I'm trying to modify the KMDF vhidmini2 sample from the Windows driver samples on Github (https://github.com/Microsoft/Windows-driver-samples/tree/97cf8edcaddff4fdbc5cc48d56b7d7eb2c39b749/hid/vhidmini2). One of my modifications requires including…
bacowan
  • 165
  • 2
  • 12
0
votes
1 answer

Access Violation Error after DeviceIoControl

I am trying to send INOUT_PARAM to my kernel driver, and it seems that I had succeeded. As I am trying to edit it and send it back to the application I am getting the following error: Here is the Application code: typedef struct _INOUT_PARAM { …
Johnaudi
  • 257
  • 1
  • 23
0
votes
1 answer

WDK Driver load issue (The service cannot be started, either because it is disabled)

I have used windows 8.1 to write many drivers with no issues when loading what so ever. There seems to be some sort of issue when I try to load a new basic KMDF driver that I built in visual studio. I am able to edit source and compile new versions…
user6042732
0
votes
2 answers

Kernel driver read memory is not sending the whole string

I have this kernel driver used to read a string from the process memory: KeAttachProcess(GlobalProcessPE); char* source = *(ULONG*)pBuf; RtlZeroMemory(pBuf, pIoStackLocation->Parameters.DeviceIoControl.OutputBufferLength); RtlCopyMemory(pBuf,…
Johnaudi
  • 257
  • 1
  • 23
0
votes
0 answers

Is there a _DEBUG preprocessor definition for Windows Device Drivers?

Visual Studio is supposed to define _DEBUG for Win32 applications. It doesn't seem to be the case for Drivers... Is there an equivalent for this or do I need to define one on my own for Debug configuration? I'm using Visual Studio 2015 with a Kernel…
smichak
  • 4,716
  • 3
  • 35
  • 47
0
votes
1 answer

Kernel Writing Process Memory causing BSOD

I've been having issues writing process memory, viewing sources online I've tried to compile the way Cheat Engine does it. BOOLEAN fWriteProcessMemory(ULONG PID, PEPROCESS PEProcess, PVOID Address, ULONG Size, PVOID Buffer) { PEPROCESS…
Johnaudi
  • 257
  • 1
  • 23
0
votes
1 answer

Visual Studio Community 2015 & KMD

I have started working on a KMD project for exercise. I have opened an empty KMDF project and started writing the km component. Now I want to add a User Mode component.. Do I need to open a new project that contains both parts or is there a way to…
0
votes
0 answers

VS Community 2015. Debugger cannot break into Windows 7 example driver. Serial connection

I am working on this example on writing a simple Windows driver and debugging it from VS: https://msdn.microsoft.com/en-us/library/windows/hardware/hh439665(v=vs.85).aspx My Setup Host: Windows 7 Physical system Target: Windows 7 Physical…
mepilk
  • 136
  • 5
0
votes
1 answer

Universal Drivers will run inside Universal Apps in Windows 10?

I am wondering how I will be able to integrate my KMDF driver into a Universal App. Currently I have the user download a KMDF driver which is used in my desktop application. If I transition to a universal app, how will I be able to use my drivers?…
Seth Kitchen
  • 1,526
  • 19
  • 53
0
votes
0 answers

StartService Gives me error 2 The System Can't Find The File Specified

StartService gives me "error 2 The System Can't Find The File Specified" I can't determine if my driver is messing up or if it's my user application. Here is what I am doing: schService = CreateService(schSCManager, DriverName, DriverName,…
adscfawsd
  • 1
  • 3