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

error LNK2001: unresolved external symbol _SDDL_DEVOBJ_SYS_ALL_ADM_RWX_WORLD_RW_RES_R

I was searching for the above link error on Visual Studio 2013 KMDF driver project. Since Linker errors are associated with libraries, i do not have a sample code. But let me share my solution for future developers who come across this error.
1
vote
1 answer

Why does $KMDFCOINSTALLERVERSION$ evaluate to semicolon?

The Context This question is related to the RAMDisk Storage Driver Sample, but also applies to the Toaster Sample Driver, and may even apply to any driver that make use of .INX files and CoInstallers. My original question was "Why am I missing the…
tchau.dev
  • 903
  • 1
  • 11
  • 30
1
vote
0 answers

Driver Deployment is failing on virtual machine

I have create sample driver with the help of tutorials, Code contains , DRIVER_INITIALIZE DriverEntry; EVT_WDF_DRIVER_DEVICE_ADD KmdfHelloWorldEvtDeviceAdd; NTSTATUS DriverEntry(_In_ PDRIVER_OBJECT DriverObject, _In_ PUNICODE_STRING…
Akhil V S
  • 11
  • 2
1
vote
0 answers

KMDF USB Device Stop, Remove or Disable

I develope KMDF with MS sample code. On an event call, I want to disable a specified device. IRP_MJ_PNP come, and I can catch some MN irp. Here is some code to register the callback…
solip
  • 11
  • 2
1
vote
0 answers

IPC for Windows Universal APP to enable calling all Win32 APIs

I am developing an application on Windows 10 that interacts with custom device drivers, the NTFS filesystem and DirectX 12. The app is a Windows Universal App written in C++, WRL, XAML and DirectX. For DirectX I have chosen a SwapChainPanel…
1
vote
0 answers

WdfIoTargetSendIoctlSynchronously & ATA

Ive been trying to send raw ATA commands via WdfIoTargetSendIoctlSynchronously using the ATA_PASS_THROUGH_EX32 structure and IOCTL_ATA_PASS_THROUGH IoControlCode. What I've noticed is any commands other than IOCTL_DISK_GET_DRIVE_GEOMETRY seems to…
1
vote
0 answers

ASM code in KMDF driver

I added asm source to KMDF driver project: .CODE read_port PROC port : WORD, result_ptr : PTR BYTE mov dx, port in al, dx ; read port mov rbx, result_ptr mov BYTE PTR [rbx], al ; place value at…
igntec
  • 1,006
  • 10
  • 24
1
vote
0 answers

Moufiltr driver reenters on Windows 8.1

I have built the moufiltr sample, installed on several OS. I found the re-entrant issue on Windows 8.1 platform if the USB device is USB 1.0, which is USB low speed device. The same driver can work on Windows 7 x32/x64 or USB 1.1 devices on Windows…
1
vote
1 answer

Signal the PnP-Manager the device is gone

i'm currently developing a KMDF HID minidriver for the Nintendo Wii Remote. My HID minidriver replaces the HidBth minidriver for the HIDClass driver (I'm using the KMDF HID minidriver sample, where it is actually a filter driver and uses this…
jloehr
  • 11
  • 6
1
vote
0 answers

Installing Kernel Mode Driver on Windows 7

I have been going through the tutorial at Microsoft.I have compiled the KMDFSmall Kernel device driver on Windows 7 64 bit. I have completed the programming portion of the tutorial, my code compiled successfully and I have the KmdfSmall.inf file,…
1
vote
1 answer

KMDF build types

When building a kernel mode device driver (KMDF) on Windows with Visual Studio 2013, there are 32 bit and x64 bit build options. The question is this: When installing the device drivers on the target machines, will the 32 bit builds run on a 64…
edtheprogrammerguy
  • 5,957
  • 6
  • 28
  • 47
1
vote
1 answer

Trying to build Com0Com - c0clog.h missing file

I am trying to build Com0Com with the new Visual Studio 2013 and DDK. Microsoft has changed the way drivers are built quite a bit, but I have been able to create a driver project (KMDF) and add the Com0Com source files to the project. (The build…
edtheprogrammerguy
  • 5,957
  • 6
  • 28
  • 47
1
vote
0 answers

How to properly send key strokes/keyboard input data from KMDF custom device-driver?

I am an intern and new to driver development. My company would like me to write a KMDF driver for a couple multi-touch HID devices that they make. They hired someone before me to work on it who was trying to use the Windows touch usages and ran…
1
vote
1 answer

MSI-X interrupts in WDF

I'm having a lot of trouble getting MSI-X interrupts implemented in a Windows bus driver we're writing in WDF / KMDF. I've read the MSDN documentation, and there's not really a lot of helpful info there. My understanding is that it should really…
8bitcartridge
  • 1,629
  • 6
  • 25
  • 38
1
vote
0 answers

could not open service xx,when i install a wdf driver to win7 x64

I think there's a problem in my inf file. But my driver and inf work fine in windows xp and win7 x86. I also searched this problem, see somebody said service's name not the same. But in my inf, it's the same: ECTEKCANcard My problem is (I get these…