Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Before Posting...
Please check out the Community Guidelines in the Announcements and Administration Category.

More Info on Driver Writing and Debugging

The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.

Check out The OSR Learning Library at:

UWP & Custom Device/Driver Access

Muthu_KumarMuthu_Kumar Member Posts: 22

For some reason, FromIdAsync throws unauthorized exception (hresult->access denied) which I wasn't able to root cause so far. The device interface was accessible via C++ app and able to invoke an ioctl without any issues. The UWP is basically a slightly modified UWP sample CustomCapability. WPP driver traces shows EvtDeviceFileCreate and EvtFileClose (immediately) were called when FromIdAsync was executed. Not clear (possible due to the authorization issue) why EvtFileClose was immediately invoked. I tried deploying modified device meta and was no help. Attempted to create SCCD file with "AllowAny" but that caused deployment error. I was originally using the same SCCD that came with the sample. I only set "DeveloperModeOnly" to true.


  • Muthu_KumarMuthu_Kumar Member Posts: 22
    edited October 2019

    Same issue with Toaster driver sample (modified to include custom property and loaded against some random USB device) and CustomCapability sample almost as is (just changed the device interface GUID) in developer mode (debug deployment). This was on latest insider preview OS build 19002. Any ideas?

  • jerwanjerwan Member Posts: 1

    Hey there, I know it has been a month, but I encountered the same issue recently. I managed to find the problem on the INF file. I was using the wrong driver name in the interface section of my INF file ([WDMPNPB003_Device.NT.Interfaces] if you copied it from MSDN HSA for Driver developers).

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Writing WDF Drivers 7 Dec 2020 LIVE ONLINE
Internals & Software Drivers 25 Jan 2021 LIVE ONLINE
Developing Minifilters 8 March 2021 LIVE ONLINE