User-Mode Driver Framework (UMDF) is a library assisting to develop user-mode drivers that support the Microsoft Windows Driver Model (WDM). UMDF provides common driver functionality, which enables to write a driver with significantly less code than in WDM. UMDF along with KMDF comprise the WDF (Windows Driver Frameworks).
Questions tagged [umdf]
81 questions
22
votes
2 answers
What is the difference between a WDM driver, a KMDF driver and a UMDF driver?
When creating a Windows Driver project in Visual Studio 2012, you have many different options to choose from.
There's a page on MSDN that helps you with choosing the correct driver model for your device. It however doesn't clearly explain the exact…

lesderid
- 3,388
- 8
- 39
- 65
5
votes
4 answers
Is it worth to learn COM?
I am thinking to learn COM.But I heard that Microsoft launched .NET as an alternative to COM.
So is it worth to learn COM?
actually I started learning COM for UMDF device driver.
Is there any alternate way to work on UMDF except COM?

Rushikesh Talokar
- 1,515
- 4
- 16
- 32
4
votes
2 answers
Can the windows sandbox feature be used for driver testing?
Doing windows driver development for first time, I want to deploy my first driver.
But I don't have a second computer.
Microsoft docs:
Typically when you test and debug a driver, the debugger and driver run on separate computers. The computer that…

Akshdeep Singh
- 1,301
- 1
- 19
- 34
4
votes
1 answer
Execute User-Application e.g (Notepad) from UMDF driver
The main objective is to know if there is a way to start or execute any user-mode application from UMDF (User Mode Driver Framework) event. It doesn't matter about the event. Any event may work e.g. DriverEntry, DeviceAttach
I am working on a…

AnonymousCodes
- 66
- 9
4
votes
1 answer
Debug UMDF driver without two machines
Is it possible to debug UMDF drivers on the windows machine that I am developing them on?

adrianwadey
- 1,719
- 2
- 11
- 17
4
votes
1 answer
'Access is denied' error when calling CreateFile from a UMDF driver (C++)
I am creating a UMDF driver which needs to change the brightness of the LCD back light.
The following line of code works in a Console App and successfully returns a handle to the device:
HANDLE hDevice = CreateFile(L"\\\\.\\LCD", GENERIC_READ |…

Simon
- 41
- 1
- 2
3
votes
0 answers
UMDF driver for loopback joystick device
I'm trying to write a UMDF device driver for a loopback (virtual) joystick device in Windows, similar to the uinput device in Linux.
I'm familiar with C++, C (on Linux) and C#, and the application I'm writing this for, DroidPad, is written in C#.…

neuropie
- 151
- 1
- 10
3
votes
0 answers
Using the C++ standard library in a Windows User Mode Driver
I recently got tasked with writing Windows user mode drivers for our devices and have a good grasp of the WDF and UMDF basics, after reading up on the topic and studying the template projects in Visual Studio 2017.
I'm determined to use as much…

Johann Gerell
- 24,991
- 10
- 72
- 122
3
votes
0 answers
Cannot set friendly name for device in Windows 7
In my UMDF device driver I set a friendly name for my device programatically:
HRESULT CMyDevice::SetFriendlyDeviceName(WCHAR * FriendlyName)
{
HRESULT hr = HRESULT_FROM_WIN32(ERROR_GEN_FAILURE);
CComPtr upsf…

arminb
- 2,036
- 3
- 24
- 43
3
votes
1 answer
Writing a UMDF virtual device driver (or software device) like Virtual DVD
I have an "off the shelf" commercial software using an ANT USB dongle to communicate with a cycling trainer.
My trainer is not compatible with the software because the protocol is slightly different (not a lot).
My goal is to write a protocol…

Louis Frigon
- 39
- 3
3
votes
1 answer
UMDF, cannot specify [ClassInstall32] section for Microsoft-defined class
I'm working with the next tutorial: How to write your first USB client driver.
And I've got a problem with compiling a project, I've got the next error:
I was trying to do the steps closely to the description in tutorial, but always got the error…
user4959035
3
votes
0 answers
Visual Studio 2015 is always crashing with KMDF/UMDF deployment
My Visual Studio 2015 is always crashing when I'm trying to set the target device in Project Properties -> Driver Install -> Deployment part.
Here, if to try to configure device, the VS2015 is crashing always. This behavior is the same both for…
user4959035
3
votes
1 answer
The device cannot start . (code 10) error in umdf driver development
I am trying to develope Umdf driver and i am completly naive to driver developement, I have taken a wdk sample code from following url :-
https://code.msdn.microsoft.com/windowshardware/Windows-Biometric-Driver-718005d7
I have changed the hardware…

vineet pant
- 77
- 1
- 9
3
votes
2 answers
GUID error while building Windows driver via Visual Studio
I'm building UMDF Smart Card Reader Driver in Visual Studio. I get strange errors like that:
error C2374: 'GUID_DEVINTERFACE_DISK' : redefinition; multiple initialization C:\Program Files (x86)\Windows Kits\8.0\Include\UM\winioctl.h 43 1 …

Zharro
- 819
- 1
- 11
- 23
3
votes
0 answers
UMDF Development in .NET
Does anyone know if the current state of Microsoft's UMDF allows for driver development in .NET?

mdeangelo272
- 674
- 1
- 5
- 14