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

How to start a user mode program from kernel mode in windows

I have a driver (kernel mode)(KMDF) and i have a user preferences form. i need to start the activity from the driver code and get the preferences. so how do i start that user mode program from kernel in windows operating system ?
Eswar Yaganti
  • 2,536
  • 1
  • 20
  • 22
0
votes
1 answer

RtlCopyMemory and exception handling

Im reading in an address from user-space and using RtlCopyMemory() to copy data over to my output buffer and although I have it working, it lacks any safe guarding against invalid addresses being read which will throw a bug check in my face. I know…
0
votes
1 answer

DeviceIoControl, passing an int to driver

Driver: PIO_STACK_LOCATION pIoStackLocation = IoGetCurrentIrpStackLocation(pIrp); PVOID pBuf = pIrp->AssociatedIrp.SystemBuffer; switch (pIoStackLocation->Parameters.DeviceIoControl.IoControlCode) { case IOCTL_TEST: DbgPrint("IOCTL…
0
votes
1 answer

Is hid.dll part of KMDF or UMDF?

I am trying to figure out if hid.dll is a part of KMDF or UMDF or none. I generally use it in my C# program like this : [DllImport("hid.dll", SetLastError = true)] internal static extern Boolean HidD_GetInputReport (SafeFileHandle…
Raulp
  • 7,758
  • 20
  • 93
  • 155
0
votes
1 answer

Why is there no WDM kernel-mode driver template in Windows Driver Kit?

I came across kernel-mode drivers with very little experience. Here's what I am trying to do: Have a user-mode application that loads the driver. Have the user-mode application write to it, in order to send it an instruction. Have the driver send…
Alexandru
  • 12,264
  • 17
  • 113
  • 208
0
votes
1 answer

How to get the property of a device if I have wdfdevice and wdftarget in kmdf based filter driver?

I have three disk: disk0, disk1, disk2. Evtdeviceadd routine will be called 3 times for each of device. Now I want to catch read IRP and when it is from disk1 then I want to change the target from disk1 to disk2. So how Would I differentiate that…
ankit
  • 11
  • 2
0
votes
1 answer

KMDF on Windows Server

A bit new to the world of Windows device drivers. Using Visual Studio 2013 I create a new KMDF driver project. The configuration manager has build configs for Windows 7, 8, 8.1, but none for the server OSes (WS 2008, 2012). Question: Which of…
edtheprogrammerguy
  • 5,957
  • 6
  • 28
  • 47
0
votes
1 answer

Windows kernel mode programming: Is a deadlock between drivers possible?

We're having some issues with our driver hanging while attempting to send a synchronous request to a lower level driver. The routine is currently being executed at DISPATCH_LEVEL when this routine is called. I've been reviewing the…
8bitcartridge
  • 1,629
  • 6
  • 25
  • 38
0
votes
1 answer

WDF Coinstaller issue

I'm having problem installing my KMDF 1.9 driver on a 32-bit Vista machine running KMDF 1.5. I was hoping the coinstaller should update the Vista machine to KMDF 1.9. But it does not. What have I missed? [Version] Signature = "$WINDOWS NT$" Class =…
user872661
  • 251
  • 2
  • 13
0
votes
2 answers

How to access the KMDF driver from Client application

I have written a sample KMDF driver. I dont know if I did every thing right but have seen KMDF driver printing Debug message in DebugView utility - when I added this driver as new hardware. It also showed up as "Sample Device" under device manager.…
0
votes
1 answer

WdfRequestIsCanceled Vs WdfRequestMarkCancelable

Can anyone list the pros and cons of using below two approaches for IO cancellation in wdf? 1) mark request cancellable with WdfRequestMarkCancelable (). Provide a cancel routine and synchronize the completion path. 2) keep on polling with…
0
votes
2 answers

process exit/delete notification in a KMDF driver

I need to get notification in a KMDF driver when processes go down. I do not want to use PsSetCreateProcessNotifyRoutine because that gives me notification for every process that is created or destroyed. I would like to know/get notification only…
Raghu
  • 479
  • 3
  • 13
-1
votes
0 answers

Request PID on minifilter

I'm doing a minifilter to get a ransomware by honeypot some files, I tried to get the requestor pid on mini filter pre write operation, but it's giving blue screen of death The line is that: HANDLE processId = IoGetRequestorProcessId(Data); How do I…
Tricta
  • 1
  • 2
-1
votes
1 answer

Strange error when using KMDF MmCopyVirtualMemory() with PsGetProcessId()

This code here is meant to be able to read kernel memory and theoretically should work. bool read_kernel_memory(HANDLE pid, PVOID address, PVOID buffer, SIZE_T size) { if (!address || !buffer || !size) return false; SIZE_T bytes =…
-1
votes
1 answer

inx file sample and vs doesnt genrate inf file

I am writing my first kmdf driver and i couldn't understand how do i build my inx/inf file. i saw in microsoft doc that there is supposed to be an inx file sample in the wdf but i couldn't find it. can someone help me find any sample of inx or inf…
1 2 3
13
14