Carbon


RegisterIconRefFromIconFile

Header: Icons.h Carbon status: Under Evaluation

Adds a file-derived IconRef to the Icon Services registry.

OSErr RegisterIconRefFromIconFile (
    OSType creator, 
    OSType iconType, 
    const FSSpec *iconFile, 
    IconRef *theIconRef
);
Parameter descriptions
creator

The creator code of the icon data you wish to register. You can use your application’s creator code, for example. Lower-case creator codes are reserved for the system.

iconType

The type code of the icon data you wish to register.

iconFile

A pointer to the file system specification structure for the file to use as the icon data source.

theIconRef

On return, a pointer to the desired icon data.

function result

A result code.

AVAILABILITY

Under evaluation for Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


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