handling IRP_MJ_POWER in PDO

handling IRP_MJ_POWER in PDO

Post by Alexander » Sat, 16 Aug 2003 23:42:12


PNP and POWER IRPs are completed by PDO. They are never forwarded to another
stack.



device
When
it
this
 
 
 

1. handling irp_mj_power in bus driver,

2. when does a PDO become a PDO ?

I am writing a bus filter and I would like to call functions like:
IoGetDeviceProperty, IoQueryDevicePnpState and IoRequestDeviceEject
on pdo's that my filter sees in IRP_MN_QUERY_DEVICE_RELATIONS queries that
are sent to the bus I'm filtering.
The problem is that I attach to the bus long after it is started and I can't
know if this is the first time that the pdo is reported or if it was reported
a long time ago and maybe even started already.
Calling any of the functions I mentioned on a PDO that was not reported to
the pnp manager yet will generate a bugcheck.
My questions is: How can I know if the pnp manager already knows about the
PDO ? when exactly is it alright to call those functions with the pdo ?
I will also be very glad if someone can explain why do those functions
bugcheck when using an uninitialized pdo instead of just returning with a
failed status.

Thank you,
Shahar.

3. how to known the value of stacksize owned by PDO when FDO created the PDO ?

4. Multiple Handles To A PDO

5. Handling PDO Exceptions

6. VBA Error Handling and Documenter Add-Ins for Access

7. how to handle icon bar and other Standard Plug-Ins in homescreen of smartphone

8. Bug in Excel handling VBA/VBScript installation of Add-Ins

9. How to let my Add-ins handle two winword.exe running at the same t

10. Unexpected driver verifier message"The previously-set IRP_MJ_POWER status has been converted to STATUS_NOT_SUPPORTED"

11. MajorFunction IRP_MJ_POWER does not get called

12. IRP_MJ_POWER and WdfDeviceInitAssignWdmIrpPreprocessCallback

13. Unexpected driver verifier message"The previously-set IRP_MJ_POWER status has been converted to STATUS_NOT_SUPPORTED"

14. Unexpected driver verifier message"The previously-set IRP_MJ_POWER status has been converted to STATUS_NOT_SUPPORTED"

15. Disabling Add-Ins, plug ins