If anyone is wondering, I found a way to do this, but it's pretty hacky. Inspired by the devcon source code.
- SetupDiCreateDeviceInfoList
- SetupDiCreateDeviceInfo
- SetupDiSetDeviceRegistryProperty
- SetupDiCallClassInstaller
- UpdateDriverForPlugAndPlayDevices
- SetupDiSetDeviceRegistryProperty - Rename the Hardware ID to something unique here.
atanamir
2010-01-20 02:02:34