Modifying a Resource List
If a driver provides an EvtDeviceFilterAddResourceRequirements callback function, it must also provide an EvtDeviceRemoveAddedResources callback function. The EvtDeviceRemoveAddedResources callback function removes resources that the EvtDeviceFilterAddResourceRequirements callback function added so that the bus driver will not attempt to use them.
To modify the resource descriptors in a device's resource list, a driver should call the following methods:
WdfCmResourceListGetCount, to obtain the number of resource descriptors.
WdfCmResourceListGetDescriptor, to obtain access to a resource descriptor.
WdfCmResourceListRemove and WdfCmResourceListRemoveByDescriptor, to remove a resource descriptor.
If the driver removes a resource, it must remove it from both the raw and translated resource lists.
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro