Contents

CountComponents

Returns the number of registered components that meet the selection criteria specified by your application.

Declaration

long CountComponents(ComponentDescription *looking);

Parameters

  • looking:

    A pointer to a Componentdescription structure. Your application specifies the criteria for the component search in the fields of this structure.

    The Component Manager ignores fields in the component description structure that are set to 0. For example, if you set all the fields to 0, the Component Manager returns the number of components registered in the system. Similarly, if you set all fields to 0 except for the componentManufacturer field, the Component Manager returns the number of registered components supplied by the manufacturer you specify.

Return Value

The number of components that meet the specified search criteria.

See Also

Finding Components