WdfIoResourceRequirementsListSetInterfaceType function (wdfresource.h)
[Applies to KMDF only]
The WdfIoResourceRequirementsListSetInterfaceType method assigns a bus type to a resource requirements list.
Syntax
void WdfIoResourceRequirementsListSetInterfaceType(
[in] WDFIORESREQLIST RequirementsList,
[in] INTERFACE_TYPE InterfaceType
);
Parameters
[in] RequirementsList
A handle to a framework resource-requirements-list object that represents a device's resource requirements list.
[in] InterfaceType
An INTERFACE_TYPE-typed value that identifies the type of bus that the device is connected to.
Return value
None
Remarks
A bug check occurs if the driver supplies an invalid object handle.
Your driver must provide a bus type 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 WdfIoResourceRequirementsListSetInterfaceType to assign a bus type to a device.
NTSTATUS
Example_EvtDeviceResourceRequirementsQuery(
IN WDFDEVICE Device,
IN WDFIORESREQLIST Requirements
)
{
...
WdfIoResourceRequirementsListSetInterfaceType(
Requirements,
Isa
);
...
}
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for