Important: The information in this document is obsolete and should not be used for new development.
ExtendFileTypeList
You can use theExtendFileTypeListfunction 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
extendedTypeListparameter. On exit, the actual number of file types put into the extended type list.DESCRIPTION
TheExtendFileTypeListfunction takes the set of types in theoriginalTypeListparameter and returns (in theextendedTypeListparameter) a list of types that can be translated into those types. TheextendedTypeListparameter is of typeFileTypePtr, which is a pointer to a file type.
TYPE FileTypePtr = ^FileType;Note that the number of types specified in the parametersnumberOriginalTypesandnumberExtendedTypesis limited only by available memory.SPECIAL CONSIDERATIONS
TheExtendFileTypeListfunction is not available in all versions of system software; use theGestaltfunction to determine whether the Translation Manager is available before calling it.The
ExtendFileTypeListfunction 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 theExtendFileTypeListprocedure are
Trap macro Selector _TranslationDispatch $0009 RESULT CODE
noErr 0 No error 
 
  
  
 