WdfIoResourceRequirementsListGetCount - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// wdfresource.h

ULONG WdfIoResourceRequirementsListGetCount(
  [in] WDFIORESREQLIST RequirementsList
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdfresource-wdfioresourcerequirementslistgetcount)

WdfIoResourceRequirementsListGetCount function

Description

[Applies to KMDF only]

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

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