Sorry, that is impossible. The enumeration is done by the USB host
controller driver. The HCD talks directly to the hardware, and it's the
HCD that creates the PDO with the device ID. There is no other driver
below that or between those two steps, so there's no place to insert a
filter.
You can change the device descriptor and lie to whatever driver was
defined, but you cannot change the VID/PID at a point where it affects the
assignment of a driver.
>For example, I changed them, but the regedit shows the original descriptors.
>I can show the changed descriptors on debug window, but useless for regedit.
>How should I do to catch the right time, get value, then change and return
>to OS finally, whenever OS request for the descriptors?
Can't be done.
--
Tim Roberts, ti...@probo.com
Providenza & Boekelheide, Inc.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Tim Roberts" <ti...@probo.com> wrote in message
news:c461a5dudgd0v83sd...@4ax.com...