// wdfresource.h
ULONG WdfIoResourceRequirementsListGetCount(
[in] WDFIORESREQLIST RequirementsList
);
View the official Windows Driver Kit DDI referenceNo description available.
[Applies to KMDF only]
The WdfIoResourceRequirementsListGetCount method returns the number of logical configurations that are contained in a resource requirements list.
RequirementsList [in]A handle to a framework resource-requirements-list object that represents a device's resource requirements list.
WdfIoResourceRequirementsListGetCount returns the number of logical configurations that are contained in the resource requirements list.
A system bug check occurs if the driver supplies an invalid object handle.
For more information about resource requirements lists, see Hardware Resources for Framework-Based Drivers.
The following code example shows how an EvtDeviceFilterRemoveResourceRequirements callback function can obtain the number of logical configurations that are contained in a resource requirements list.
NTSTATUS
Example_EvtDeviceFilterRemoveResourceRequirements(
IN WDFDEVICE Device,
IN WDFIORESREQLIST RequirementsList
)
{
ULONG count;
count = WdfIoResourceRequirementsListGetCount(RequirementsList);
}