// wdfresource.h
PCM_PARTIAL_RESOURCE_DESCRIPTOR WdfCmResourceListGetDescriptor(
[in] WDFCMRESLIST List,
[in] ULONG Index
);
View the official Windows Driver Kit DDI reference
No description available.
[Applies to KMDF and UMDF]
The WdfCmResourceListGetDescriptor method returns a pointer to a resource descriptor that is contained in a specified resource list.
List
[in]A handle to a framework resource-list object that represents a list of hardware resources for a device.
Index
[in]A zero-based value that is used as an index into the logical configuration that List specifies.
WdfCmResourceListGetDescriptor returns a pointer to the CM_PARTIAL_RESOURCE_DESCRIPTOR structure that describes the hardware resource that the Index parameter identifies, if the index value is valid. Otherwise, the method returns NULL.
A system bug check occurs if the driver supplies an invalid object handle.
Your driver cannot modify the resource descriptor that WdfCmResourceListGetDescriptor retrieves.
For more information about resource lists, see Hardware Resources for Framework-Based Drivers.
For a code example that uses WdfCmResourceListGetDescriptor, see WdfCmResourceListGetCount.
CM_PARTIAL_RESOURCE_DESCRIPTOR