WdfIoResourceRequirementsListRemove method

[Applies to KMDF only]

The WdfIoResourceRequirementsListRemove method removes a logical configuration from a resource requirements list.

Syntax


VOID WdfIoResourceRequirementsListRemove(
  [in]  WDFIORESREQLIST RequirementsList,
  [in]  ULONG Index
);

Parameters

RequirementsList [in]

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

Index [in]

A zero-based value that is used as an index into the resource requirements list that RequirementsList specifies.

Return value

None.

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

Remarks

The WdfIoResourceRequirementsListRemove method removes the logical configuration that is associated with the index value that the Index parameter specifies.

When WdfIoResourceRequirementsListRemove removes the logical configuration that has the index value n, the index value of the next logical configuration changes from n+1 to n.

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

Examples

The following code example removes the second logical configuration from a resource requirements list.


NTSTATUS
Example_EvtDeviceFilterRemoveResourceRequirements(
    IN WDFDEVICE Device,
    IN WDFIORESREQLIST RequirementsList
    )
{
...
    WdfIoResourceRequirementsListRemove(
                                        RequirementsList,
                                        1
                                        );
...
}

Requirements

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

WdfIoResourceRequirementsListRemoveByIoResList

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft