WdfIoResourceListGetCount function (wdfresource.h)

[Applies to KMDF only]

The WdfIoResourceListGetCount method returns the number of resource descriptors that are contained in a resource requirements list's logical configuration.

Syntax

ULONG WdfIoResourceListGetCount(
  [in] WDFIORESLIST ResourceList
);

Parameters

[in] ResourceList

A handle to a framework resource-range-list object that represents a logical configuration of hardware resources for a device.

Return value

WdfIoResourceListGetCount returns the number of resource descriptors that are contained in the logical configuration that ResourceList specifies.

A system bug check occurs if the driver supplies an invalid object handle.

Remarks

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

Examples

For a code example that uses WdfIoResourceListGetCount, see WdfIoResourceRequirementsListGetIoResList.

Requirements

Requirement Value
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(kmdf), KmdfIrql(kmdf), KmdfIrql2(kmdf), KmdfIrqlExplicit(kmdf)

See also

WdfIoResourceRequirementsListGetIoResList