views:

378

answers:

1
+3  A: 

If anyone is wondering, I found a way to do this, but it's pretty hacky. Inspired by the devcon source code.

  1. SetupDiCreateDeviceInfoList
  2. SetupDiCreateDeviceInfo
  3. SetupDiSetDeviceRegistryProperty
  4. SetupDiCallClassInstaller
  5. UpdateDriverForPlugAndPlayDevices
  6. SetupDiSetDeviceRegistryProperty - Rename the Hardware ID to something unique here.
atanamir