Problem with WdfUsbTargetDeviceCreateWithParameters in usb lower-filter

I wrote simple driver filter for usb class devices, but in my EvtDevicePrepareHardware callback call WdfUsbTargetDeviceCreateWithParameters () always failed with status 0xC00000BB (The request is not supported) or 0xC0000001 (The requested operation was unsuccessful), what wrong, why it can happen?

What does the WDF Log say?

Anytime, anytime, any time at all that you get an error indication in WDF the very first thing you should do is dump the log. Always.

Peter

Peter, are you about !wdfkd.wdflogdump ?

Yup. That’s what I’m about.

Peter

EXACTLY how did you install your filter? There are many ways to do that incorrectly. The WdfTargetDevice* APIs all expect to be talking to a USB device PDO. If you installed your device in the wrong location, so that you were talking directly to the USB host controller, for instance, then that API wouldn’t work.

Tim, my filter installed as LowLevel for all usb class devices {36fc9e60-c465-11cf-8056-444553540000}