Carbon


GetFileTypesThatAppCanNativelyOpen

Header: Translation.h Carbon status: Supported

Obtains a list of file types that a application can open by itself.

OSErr GetFileTypesThatAppCanNativelyOpen (
    SInt16 appVRefNumHint, 
    OSType appSignature, 
    FileType *nativeTypes
);
Parameter descriptions
appVRefNumHint

The volume reference number of the 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.

appSignature

The signature of the application.

nativeTypes

On return, a pointer to an array of file types that the application can open without translation. If successful, the array contains up to 64 file types. If fewer than 64 types are returned, the end of the list is indicated by an entry whose value is 0.

function result

A result code.

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)