I have a kernel-mode driver (WDF) that works fine in all versions except for
Vista. In Vista during driver installation I get a "This device cannot start
(Code 10)" error. I believe I have traced it down to a call of
WdfUsbTargetDeviceSelectConfig() which is returning STATUS_INVALID_PARAMETER.
I'm confused because this driver works fine under non-vista versions (at
least Win2k, and XP). Does anyone know of anything that might be causing
this? I have examined the parameters and can't see where anyone of them is
invalid. My call looks like:
status = WdfUsbTargetDeviceSelectConfig(pDeviceContext->UsbDevice,
WDF_NO_OBJECT_ATTRIBUTES,
&configParams);
Where pDeviceContext->UsbDevice was set with a call to
WdfUsbTargetDeviceCreate() which returned STATUS_SUCCESS and configParams was
initialized with WDF_USB_DEVICE_SELECT_CONFIG_PARAMS_INIT_SINGLE_INTERFACE()
Thanks.
Greg