The MSDN online suggests in "Driver Information in the
Registry"
http://msdn.microsoft.com/library/default.asp?
url=/library/en-us/install/hh/install/install-over_6e3r.asp
That IoGetDeviceProperty() and
SetupDiGetDeviceRegistryProperty() be used instead of
accessing the registry directly. I'm interested in
getting the resources used by drivers. I realize that
Device Manager reports these resources and so they are
available.
I tried using IoGetDeviceProperty, but blue screens with
PNP_DETECTED_FATAL_ERROR 0x02 got in my way, thus I'm
looking at SetupDiGetDeviceRegistryProperty(). However,
the DevicePropertyBootConfigurationTranslated is not
apparently available from SetupDiGetDeviceRegistryProperty
(). The SPDRP_DEVICE_POWER_DATA doesn't provide the
resources, and I'm looking at SPDRP_DRIVER which provides
the Driver Key in the registry (Software Key). It also
refers back to "Driver Information in the Registry."
Can I get the resources for drivers without looking in the
registry? Do I have to read the ...\Control\AllocConfig
which is a REG_RESOURCE_LIST? And if so, what is the
format of that binary data, a CM_RESOURCE_LIST type of
thing?
Thanks,
John Muczynski
Bauer Controls
Ann Arbor, MI