IResourceList::NumberOfEntriesOfType method (portcls.h)

The NumberOfEntriesOfType method returns the number of resource items of a given type in the resource list. For each resource type, a macro is defined to call this method as previously described.

Syntax

ULONG NumberOfEntriesOfType(
  [in] CM_RESOURCE_TYPE Type
);

Parameters

[in] Type

Identifies the resource type of the entries that are to be counted. For a list of valid resource-type values, see the Type member of the CM_PARTIAL_RESOURCE_DESCRIPTOR structure.

Return value

NumberOfEntriesOfType returns the number of items of the indicated type in the resource list.

Remarks

For each resource type, a macro is defined to call this method. See IResourceList.

Requirements

Requirement Value
Target Platform Universal
Header portcls.h (include Portcls.h)
IRQL PASSIVE_LEVEL

See also

CM_PARTIAL_RESOURCE_DESCRIPTOR

IResourceList