Important: The information in this document is obsolete and should not be used for new development.
ExtendFileTypeList
You can use theExtendFileTypeList
function to create a list of file types that can be translated into a type in a given list. The Standard File Package calls this function internally; your application probably won't need to use it.
FUNCTION ExtendFileTypeList (originalTypeList: FileTypePtr; numberOriginalTypes: Integer; extendedTypeList: FileTypePtr; VAR numberExtendedTypes: Integer) : OSErr;
originalTypeList
- A pointer to a list of file types.
numberOriginalTypes
- The number of file types in
originalTypeList
.extendedTypeList
- On exit, a pointer to a list of file types that can be translated into the types in
originalTypeList
.numberExtendedTypes
- On entry, the maximum number of file types that can be put into the
extendedTypeList
parameter. On exit, the actual number of file types put into the extended type list.DESCRIPTION
TheExtendFileTypeList
function takes the set of types in theoriginalTypeList
parameter and returns (in theextendedTypeList
parameter) a list of types that can be translated into those types. TheextendedTypeList
parameter is of typeFileTypePtr
, which is a pointer to a file type.
TYPE FileTypePtr = ^FileType;Note that the number of types specified in the parametersnumberOriginalTypes
andnumberExtendedTypes
is limited only by available memory.SPECIAL CONSIDERATIONS
TheExtendFileTypeList
function is not available in all versions of system software; use theGestalt
function to determine whether the Translation Manager is available before calling it.The
ExtendFileTypeList
function might cause memory to be moved or purged; you should not call it at interrupt time.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theExtendFileTypeList
procedure are
Trap macro Selector _TranslationDispatch $0009 RESULT CODE
noErr 0 No error