// wdm.h
typedef struct _CM_PARTIAL_RESOURCE_LIST {
USHORT Version;
USHORT Revision;
ULONG Count;
CM_PARTIAL_RESOURCE_DESCRIPTOR PartialDescriptors[1];
} CM_PARTIAL_RESOURCE_LIST, *PCM_PARTIAL_RESOURCE_LIST;
View the official Windows Driver Kit DDI referenceNo description available.
The CM_PARTIAL_RESOURCE_LIST structure specifies a set of system hardware resources, of various types, assigned to a device. This structure is contained within a CM_FULL_RESOURCE_DESCRIPTOR structure.
VersionThe version number of this structure. This value should be 1.
RevisionThe revision of this structure. This value should be 1.
CountThe number of elements contained in the PartialDescriptors array.
PartialDescriptorsThe first element in an array of one or more CM_PARTIAL_RESOURCE_DESCRIPTOR structures.
This structure is the header for an array of CM_PARTIAL_RESOURCE_DESCRIPTOR structures. The PartialDescriptors member contains the first element in this array, and the Count member specifies the total number of array elements. If the array contains more than one element, the remaining elements in the array immediately follow the CM_PARTIAL_RESOURCE_LIST structure in memory. The total number of bytes occupied by the CM_PARTIAL_RESOURCE_LIST structure and any array elements that follow this structure is sizeof(CM_PARTIAL_RESOURCE_LIST) + (Count - 1) * sizeof(CM_PARTIAL_RESOURCE_DESCRIPTOR).
If the last CM_PARTIAL_RESOURCE_DESCRIPTOR in the CM_PARTIAL_RESOURCE_LIST has a Type of CmResourceTypeDeviceSpecific, then you need to add the size of the device specific data block to the total above.
CM_PARTIAL_RESOURCE_DESCRIPTOR