// wdfresource.h
NTSTATUS WdfIoResourceListCreate(
[in] WDFIORESREQLIST RequirementsList,
[in, optional] PWDF_OBJECT_ATTRIBUTES Attributes,
[out] WDFIORESLIST *ResourceList
);
View the official Windows Driver Kit DDI referenceNo description available.
[Applies to KMDF only]
The WdfIoResourceListCreate method creates an empty logical configuration, which can be populated and added to a resource requirements list.
RequirementsList [in]A handle to a framework resource-requirements-list object that represents a device's resource requirements list.
Attributes [in, optional]A pointer to a caller-allocated WDF_OBJECT_ATTRIBUTES structure that contains attributes for the new object. (The structure's ParentObject member must be NULL.) This parameter is optional and can be WDF_NO_OBJECT_ATTRIBUTES.
ResourceList [out]A handle to a framework resource-range-list object that represents the new logical configuration.
WdfIoResourceListCreate returns STATUS_SUCCESS if the operation succeeds.
For additional return values, see Framework Object Creation Errors.
A system bug check occurs if the driver supplies an invalid object handle.
For more information about resource requirements lists and logical configurations, see Hardware Resources for Framework-Based Drivers.
The caller-specified resource-requirements-list object becomes the parent of the new resource-range-list object. The driver cannot change this parent, and the ParentObject member or the WDF_OBJECT_ATTRIBUTES structure must be NULL.
For a code example that uses WdfIoResourceListCreate, see WdfIoResourceRequirementsListAppendIoResList.