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