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
);
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 CarbonLib 1.0 and later. Exported by CarbonLib 1.0 and later.


© 2000 Apple Computer, Inc. — (Last Updated 4/18/2000)