ICreateDeviceAccessAsync - GetResult - access denied RRS feed

  • Question

  • I am attempting to access custom properties for a usb webcam using ICreateDeviceAccessAsync and IDeviceIoControl.

    After going through all the posts I have reached the point where a comparison is made between the app identity and the list of privileged apps specified in the device metadata.  It seems to me that there should be a match but still GetResult fails returning access-denied. 

    Output from traceview below:

    DeviceBroker: Opening handle for instance path \\?\USB#VID_046D&PID_082D&MI_00#6&25F03FB2&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{BBEFB6C7-2FC4-4139-BB8B-A58BBA724083}
    DeviceInterfaceAccessCheck:  Entering for class GUID {65E8773D-8F56-11D0-A3B9-00A0C9223196}.
    DeviceInterfaceAccessCheck: Device interface path \\?\USB#VID_046D&PID_082D&MI_00#6&25F03FB2&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{BBEFB6C7-2FC4-4139-BB8B-A58BBA724083} is restricted.
    DeviceInterfaceAccessCheck: Opening restricted interface; checking for AppID match.
    DeviceInterfaceAccessCheck: Checking for package "microsoft.sdksamples.deviceenumerationcpp_s9y1p3hwd5qda" in privileged list for path \\?\USB#VID_046D&PID_082D&MI_00#6&25F03FB2&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{BBEFB6C7-2FC4-4139-BB8B-A58BBA724083}.
    DeviceInterfaceAccessCheck: Container for path \\?\USB#VID_046D&PID_082D&MI_00#6&25F03FB2&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{BBEFB6C7-2FC4-4139-BB8B-A58BBA724083} is {CDE211D4-58BD-5A9E-B0B0-75450984ED73}.
    DeviceInterfaceAccessCheck: Found privileged app list.
    DeviceInterfaceAccessCheck: Found package "microsoft.sdksamples.deviceenumerationcpp_8wekyb3d8bbwe" in privileged list; not a match.
    DeviceInterfaceAccessCheck: Found package "logideviceapp_8qqt3sq3d47wt" in privileged list; not a match.
    DeviceBroker: Failed access check with hr 80070005.
    DeviceBroker: Exiting OpenDeviceFromInterfacePath with hr 80070005.

    The "checking for package" and "found package" are identical except for the alphanum string appended.  
    Where does the alphanum string come from and is that causing a mismatch?


    Thursday, May 24, 2012 10:57 PM


All replies