Important: The information in this document is obsolete and should not be used for new development.
GetFileTypesThatAppCanNativelyOpenYou can use the
GetFileTypesThatAppCanNativelyOpenfunction to obtain a list of file types that an application can open by itself.
FUNCTION GetFileTypesThatAppCanNativelyOpen (appVRefNumHint: Integer; appSignature: OSType; VAR nativeTypes: TypesBlock): OSErr;
- The volume reference number of volume containing the application. The search for the specified application begins on this volume; if the application isn't found there, the search continues to other mounted volumes.
- The signature of the application.
- On exit, a zero-terminated file types that the application can open without translation.
GetFileTypesThatAppCanNativelyOpenfunction returns, through the
nativeTypesparameter, a list of all the file types that can be opened by the application having the signature
GetFileTypesThatAppCanNativelyOpenreturns successfully, the
nativeTypesparameter contains a list of up to 64 file types. The structure of the list is defined by the
TYPE TypesBlock = ARRAY[0..63] OF FileType; TypesBlockPtr = ^TypesBlock;If fewer than 64 types are returned, the end of the list is indicated by an entry whose value is 0.
GetFileTypesThatAppCanNativelyOpenfunction is not available in all versions of system software; use the
Gestaltfunction to determine whether the Translation Manager is available before calling it.
GetFileTypesThatAppCanNativelyOpenfunction might cause memory to be moved or purged; you should not call it at interrupt time.
ASSEMBLY-LANGUAGE INFORMATIONThe trap macro and routine selector for
Trap macro Selector _TranslationDispatch $001C
noErr 0 No error wrgVolTypErr -123 Volume does not support Desktop Manager afpItemNotFound -5012 Information not found