How to get resources used by another device

Let’s say I have the functional device object for a given device,
acquired through a call to IoGetDeviceObjectPointer(). Is there an easy
way to query the hardware resources assigned to that device?

I considered sending an IRP_MN_QUERY_RESOURCES IRP to the device, which
would then return the info from the underlying PDO regarding the
resources, but that only gives the device’s boot configuration
resources, which may not be what Windows 2000/XP ultimately assigned to
the device.

I also considered calling IoGetDeviceProperty(), but it looks like the
options available there also only returns the device’s boot
configuration, and also requires the device’s PDO, not the FDO, and all
I have a pointer to is the FDO.

Is there an easy way to do this, or is it intentionally NOT easy? Or am
I just too brain dead today to recall how to do this?

Yes, I know that the PNP manager can reassign resources at will, so that
I shouldn’t depend on any resource information I acquire this way to be
fixed.

Thanks,

  • Jay

Jay Talbott
Principal Consulting Engineer
SysPro Consulting, LLC
3519 E. South Fork Drive
Suite 201
Phoenix, AZ 85044
(480) 704-8045
xxxxx@sysproconsulting.com
http://www.sysproconsulting.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com