WdfIoResourceListGetCount method

[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

ResourceList [in]

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

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

See also

WdfIoResourceRequirementsListGetIoResList

 

 

Send comments about this topic to Microsoft

Show: