I'm trying to have WDK7 Toaster's bus device and child devices share a same .sys driver file. I combine the busenum.sys and toaster.sys into a single Nls_ufcom.sys(bus.inf and toaster.inf both refer to the same Nls_ufcom.sys as service binary), but Windows reports error 38(CM_PROB_DRIVER_FAILED_PRIOR_UNLOAD) for the child device after I assign toaster.inf as the driver from Device Manager. So, the AddDevice() callback is even not called for the child device.
I'm not sure whether I have done something wrong, or Windows really don't allow this. Wish to get some idea from you, Thank you.