WdfIoResourceRequirementsListSetSlotNumber function

[Applies to KMDF only]

The WdfIoResourceRequirementsListSetSlotNumber method assigns a slot number to a resource requirements list.

Syntax

void WdfIoResourceRequirementsListSetSlotNumber(
  WDFIORESREQLIST RequirementsList,
  ULONG           SlotNumber
);

Parameters

RequirementsList

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

SlotNumber

A value that identifies the bus slot number to which the device is connected.

Return Value

None.

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

Remarks

Your driver must provide a slot number if your device does not support Plug and Play (PnP).

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

Examples

The following code example shows how an EvtDeviceResourceRequirementsQuery callback function for a nonPnP device calls WdfIoResourceRequirementsListSetSlotNumber to assign slot 0 to a device.

NTSTATUS
Example_EvtDeviceResourceRequirementsQuery(
    IN WDFDEVICE Device,
    IN WDFIORESREQLIST Requirements
    )
{
...
    WdfIoResourceRequirementsListSetSlotNumber(
                                               Requirements,
                                               0
                                               );
...
}

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