WdfIoResourceRequirementsListGetCount function (wdfresource.h)

[Applies to KMDF only]

The WdfIoResourceRequirementsListGetCount method returns the number of logical configurations that are contained in a resource requirements list.

Syntax

ULONG WdfIoResourceRequirementsListGetCount(
  WDFIORESREQLIST RequirementsList
);

Parameters

RequirementsList

[in] A handle to a framework resource-requirements-list object that represents a device's resource requirements list.

Return value

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.

Remarks

For more information about resource requirements lists, see Hardware Resources for Framework-Based Drivers.

Examples

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);
}

Requirements

   
Target Platform Universal
Minimum KMDF version 1.0
Header wdfresource.h (include Wdf.h)
Library Wdf01000.sys (see Framework Library Versioning.)
IRQL <=DISPATCH_LEVEL
DDI compliance rules DriverCreate, KmdfIrql, KmdfIrql2