Asked by:

Metro app to driver (WDM based) communication

Question

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.

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.