Hey folks,
Simple question, I’m just going slightly crosseyed here. I want to have
a co-installer install a root enumerated device which is a *singleton*.
That is, there’s only one of them on the system. I’m preferring this to
a previous approach (WDF control device) for a whole bunch of reasons.
Almost all figured out apart from 2 things:
SetupDiCreateDeviceInfo: I’m omitting the DICD_GENERATE_ID flag, because
I assume I want to specify the entire device instance ID.
eg: “ROOT\FOOCORP_SINGLETON\UNIQUE_INSTANCE”
SetupDiSetDeviceRegistryProperty: Adding the hardware ID to the devices
hardware ID property. This is where I go slightly crosseyed between
instance ID’s and hardware ID’s.
Can I add as a hardware ID the part of the instance ID that specifies
the instance, eg “UNIQUE_INSTANCE”. ? Or do I want to add the entire
instance ID? And anyways, why give a device zillions of hardware ID’s
… I thought that’s what compatible ID’s were for?
So essentially, can someone please help me disambiguate hardware ID’s
and instance ID’s in my mind, so I can decide the most sensible course
of action?
MH.