Carbon


ExtendFileTypeList

Header: Translation.h Carbon status: Supported

Creates a list of file types that can be translated into a type in a given list.

OSErr ExtendFileTypeList (
    const FileType *originalTypeList, 
    SInt16 numberOriginalTypes, 
    FileType *extendedTypeList, 
    SInt16 *numberExtendedTypes
);
Parameter descriptions
originalTypeList

A pointer to a list of file types that can be opened.

numberOriginalTypes

The number of file types in the originalTypeList parameter.

extendedTypeList

On return, a pointer to a buffer filled with file types that can be translated into the types in originalTypeList.

numberExtendedTypes

On input, a pointer to the maximum number of file types that can be put into the buffer passed in the extendedTypeList parameter. On return, a pointer to the actual number of file types put into the extended type list.

function result

A result code.

DISCUSSION

Note that the number of types specified in the parameters numberOriginalTypes and numberExtendedTypes is limited only by available memory.

The Standard File Package calls this function internally; your application probably won’t need to use it.

SPECIAL CONSIDERATIONS

This function might cause memory to be moved or purged; you should not call it at interrupt time.

AVAILABILITY

Supported in 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)