ActivateDevice returns error 110 (ERROR_OPEN FAILED)





Hi,

I trying to develop a USB function stream interface driver under WinCE 6.0
based on the USB printer driver sample code.

I have used the Clone BSP option to clone the sources and can compile this
driver linking statically with the WinCE libraries.

The driver loads successfully , but I am unable to progress after
ActivateDevice, which fails with error 110 (ERROR_OPEN FAILED). The xxx_Init
function call returns fine, and there is an active path generated each time a
device is plugged onto the board ,
(\Drivers\Active\xx) , but this change does not reflect in the registry,
since ActivateDevice fails.

I want to load a dummy driver for testing purposes. I have removed the
printer class Id code, so to make this driver more generic. Am I missing a
step in the device driver init routine ? ( referring to the printer sample
driver? ) ,

USBDeviceAttach , USBInstallDriver, xxx_Init are called , but I cannot
progress any further. Any suggestion on what could be wrong?
Also , where is the device signature obtained from ? ( Hkbd / .. ) , is this
required in the ActivateDevice routine ?


Regards,

Tarun
.