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

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

UWP & Custom Device/Driver Access

Muthu_KumarMuthu_Kumar Member Posts: 17

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.

Comments

  • Muthu_KumarMuthu_Kumar Member Posts: 17
    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!
Kernel Debugging 30 Mar 2020 OSR Seminar Space
Developing Minifilters 20 Apr 2020 LIVE ONLINE
Writing WDF Drivers 11 May 2020 LIVE ONLINE
Internals & Software Drivers 28 Sept 2020 Dulles, VA