- Re: knowing if a device is started
- Posted by Doron Holan [MS] on July 28th, 2004
1) you can't really tell. A side affect of a successful start is that you
can use the create file APIs to open it (creates fail on non started
stacks). But, if the PDO is not raw (usbhub's PDOs are not raw), opening a
PDO w/out a stack on top of it will fail anyways.
2) you can't really tell. even the bus driver doesn't really know the
exactly when the PDO reported becomes a PDO.
the question back is why doe either of these matter?
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.
"shahar" <shahar@discussions.microsoft.com> wrote in message
news:7CCD2FA2-58F1-4B3D-94E4-F0CB5B02F71C@microsoft.com...
- Posted by shahar on July 29th, 2004
I need to know if it is started because I would like to call IoInvalidatePnpDeviceState() on that pdo, and this will generate a bug check if the pdo is not started...
"Doron Holan [MS]" wrote:
- Posted by Doron Holan [MS] on July 29th, 2004
that's not true as far as i know. there is a period of time where the PDO
has not yet been reported to pnp through a QDR, but after that, it is a PDO
forever (until deleted) and calling IoInvalidatePnpDeviceState should not
crash in any other state (started, removed, etc).
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.
"shahar" <shahar@discussions.microsoft.com> wrote in message
news:839C0489-832D-407E-A029-9B3609D187E7@microsoft.com...
if the pdo is not started...