Re: Getting the device information for modification

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Lars-Åke Berg (lars-ake.berg_at_intermec.com)
Date: 06/23/04


Date: Wed, 23 Jun 2004 17:48:47 +0200

Thanks for the information Doran.

I already have a base filter driver that I have installed on top of the
ROOT_HUB.

This driver is intended to filter and modify an USB class error in one of
our printer USB chips.

The problem today is that we use an USB chip that doesn't report Class_07
(USB printer device) and we can't reprogram it to report anything different
than Class_ff.

We can there for not use MS usbprint.sys and usbmon.dll.

So by exchange the reported class information from the printer when
enumerated with class_07, I hope that the OS (in this case XP) will fix the
rest (launch the USB printer installation).

/Lars-Åke Berg

"Doron Holan [MS]" <doronh@nospam.microsoft.com> wrote in message
news:u$BUndPWEHA.2844@TK2MSFTNGP11.phx.gbl...
> device relations / BusRelations is where the PDO list is reported. then
> each PDO (note, *NOT* the FDO which responded to the query relations) is
> sent the pnp irp IRP_MN_QUERY_ID / BusQueryHardwareIDs. If you want, you
> can walk the list of reported PDOs in query device relations and send your
> own query ID / BusQueryHardwareIds, but this will not modify information
> that usb will subsequently report to PNP when it sends the query IDs
> request.
>
> what i think you want in the end is a bus filter driver. you would attach
a
> new DO to each new PDO that is reported. you also have to keep track of
the
> PDO's reported state to the os so that you know how to properly handle
> remove device (b/c if the PDO is reported as still present, you must not
> delete your device object). This is complicated and very hairy stuff.
>
> What are you exactly trying to do? there may be an easier way to do what
> you want.
>
> d
>
> --
> Please do not send e-mail directly to this alias. this alias is for
> newsgroup purposes only.
> This posting is provided "AS IS" with no warranties, and confers no
rights.
>
>
> "Lars-Åke Berg" <lars-ake.berg@nibland.org> wrote in message
> news:eQ8QlGKWEHA.556@tk2msftngp13.phx.gbl...
> > Hi all,
> > I need to modify the device information enumerated by the PnP request
when
> > enumerating a new device (for instance an USB device).
> > What I see in my filter driver is a IRP_MN_QUERY_DEVICE_RELATIONS sent
> down
> > the pipe but is the information there?
> > Is this not where you return your PDO's?
> > Please advice if you know on how to get the device information
(hardwareID
> > etc.) enumerated before the PnP manager gets it.
> >
> > regards,
> > Lars-Åke Berg
> >
> >
>
>



Relevant Pages