'Allocating resources with IoReportDetectedDevice
I am trying to update a 20 year old windows XP device driver to work with windows 10. There is no documentation and no one left who has ever worked on it.
The driver calls HalAssignSlotResources which is documented as "obsolete" and "broken", and that one should use IoReportDetectedDevice, instead. That appears to be the ONLY documentation on HalAssignSlotResources that exists online.
HalAssignSlotResources doesn't return an error, but fails to allocate resources. It just returns a null pointer as the last argument.
I tried using IoReportDetectedDevice which takes similar arguments, but it appears that the driver resource list needs to be allocated in advance. I can't find any documentation on how that is supposed to be done. Every example that I can find online, the caller just passes a null for that argument. Presumably, the resources are allocated some other way.
Does anyone have a good example of how this is supposed to work? Or any suggestions? I'd rather not try trial and error until something appears to work.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
