Carbon


GetIconSizesFromIconRef

Header: Icons.h Carbon status: Supported

Provides an IconSelectorValue indicating the sizes and depths of icon data available for an IconRef.

OSErr GetIconSizesFromIconRef (
    IconSelectorValue iconSelectorInput, 
    IconSelectorValue *iconSelectorOutputPtr, 
    IconServicesUsageFlags iconServicesUsageFlags, 
    IconRef theIconRef
);
Parameter descriptions
iconSelectorInput

The icon sizes and depths you are requesting from the IconRef. For a description of the possible values, see “Icon Selector Constants”.

iconSelectorOutputPtr

On return, this points to a value describing the icon sizes and depths available for the specified IconRef. For a description of the possible values, see “Icon Selector Constants”.

iconServicesUsageFlags

Reserved for future use. Pass the kIconServicesDefaultUsageFlags constant in this parameter.

theIconRef

The icon family to query.

function result

A result code.

DISCUSSION

Note that this function may be very time-consuming, as Icon Services may have to search disks or even the network to obtain the requested data.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.5 or later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)