IoGetDeviceProperty() in Windows XP

Hi,
I’m using IoGetDeviceProperty() to retrieve PDO
“DevicePropertyBootConfigurationTranslated” resource. I can get right result
under Windows 7 and Windows Vista without any problem. However, this API
always returns STATUS_NOT_SUPPORTED in Windows XP. For other property like
“DevicePropertyClassGuid”, this API works fine. Is this
“DevicePropertyBootConfigurationTranslated” a not supported preperty in XP?
If so, how to retrieve this resource under Windows XP? Based on document,
IRP_MN_QUERY_RESOURCES can only be used by system. I need to retrive this
information not during IRP_MN_START_DEVICE but some times later.

Any suggestion would be appreciated.

Thanks

why not just capture the resources during IRP_MN_START_DEVICE?

d

As usual, we can answer your question more usefully if you say what you’re
trying to accomplish in the large, rather than in the small.

What do you think that property is going to give you? I think it tells you
what resources were assigned to your device at boot time, but not at the
moment. What are you using that for?

Jake Oshins
Hyper-V I/O Architect
Windows Kernel Group

This post implies no warranties and confers no rights.


“David Wu” wrote in message news:xxxxx@ntdev…

Hi,
I’m using IoGetDeviceProperty() to retrieve PDO
“DevicePropertyBootConfigurationTranslated” resource. I can get right result
under Windows 7 and Windows Vista without any problem. However, this API
always returns STATUS_NOT_SUPPORTED in Windows XP. For other property like
“DevicePropertyClassGuid”, this API works fine. Is this
“DevicePropertyBootConfigurationTranslated” a not supported preperty in XP?
If so, how to retrieve this resource under Windows XP? Based on document,
IRP_MN_QUERY_RESOURCES can only be used by system. I need to retrive this
information not during IRP_MN_START_DEVICE but some times later.

Any suggestion would be appreciated.

Thanks