locked
Metro app to driver (WDM based) communication RRS feed

  • Question

  • Hi,

    To establish communication b/w Metro app and driver we need to set required privilege settings either in the INF or in the driver code. As per MSDN, link (msdn.microsoft.com/en-us/library/windows/desktop/hh404264%28v=vs.85%29.aspx) says to add below piece of code to enable Restricted property which indicates that privileged apps can access a device. 

    . . . .

    status = g_pIoSetDeviceInterfacePropertyData(&symbolicLinkName, &DEVPKEY_DeviceInterface_Restricted, 0, 0, DEVPROP_TYPE_BOOLEAN, sizeof(isRestricted), &isRestricted ); 

    . . . .

    Now my question - "My device driver is based on legacy WDM model. Upgrading to WDF involves significant effort. Can I use above code in my WDM based driver ?" will this work ?

    Please help.

    Thanks,

    YashwanthD


    Wednesday, October 1, 2014 3:19 PM

All replies

  • Hi Yaswanth - I am moving this to the Windows Store hardware API forum.

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Thursday, October 2, 2014 1:50 PM
    Moderator
  • Please reply.
    Saturday, October 4, 2014 6:13 AM