title: Is there any method to remove the driver file and uninstall the device in UWP applications?
body: <p>Previously, when I need to uninstall a device. I can </p>
  
  <ol>
  <li><p>use devcon tool to realize. Use "devcon.exe drivernodes " to find the inf driver file. Then use "devcon.exe dp_delete " to delete the driver and use "devcon.exe remove " to remove the device.</p></li>
  <li><p>use SetupAPI to write a program to realize. Functions  "SetupDiEnumDriverInfo", "SetupUninstallOEMInf" and SetupDiCallClassInstaller" with param "DIF_REMOVE" can realize this requirement.</p></li>
  </ol>
  
  <p>But when I convert my application to UWP, I find that devcon tool can't be used any more as it doesn't match UWP requirement. And there is no replaced functions for above SetupAPI functions. </p>
  
  <p>This makes me puzzled.
  Is there any method to remove the driver file and uninstall the device in UWP applications?</p>