Hello,I’m tasked with installing a lower level filter driver on a USB device only for test purposes (i.e., to be able to issue USB transfers from/to the hardware). The USB device is a composite deviceI don’t need any help with the filter driver itself as that is straight forward with documentation and samples.
I did look at the article here: http://www.osronline.com/article.cfm?article=446, but when you look at the sample code for the install project, there is only a readme referring to the nonpnp WDK sample. For prototyping purposes, I’ve started with the OSR FX2 board (yes, I know, not a composite device) with the sample driver from the Windows 8.1 WDK. I figured it would be best to have a “simple”.Anyway, I tried the nonpnp sample, modifying it for my prototype, but then StartService fails (in install.c, StartDriver(…) with this error:
//
// MessageId: ERROR_SERVICE_DISABLED
//
// MessageText:
//
// The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.
//
#define ERROR_SERVICE_DISABLED 1058L
I’d like to be very selective in which devices have this test lower level filter driver installed. And I cannot modify any .inf files nor add an interface for loading a custom driver to issue commands. So, I’m hoping that someone can steer me in the right direction for getting the PnP stack to disable a devstack and rebuild it with the lower level filter driver that I specify. This is of course on a test enabled machine.