Alias Manager

Create and resolve alias records that describe file system objects such as files, directories, and volumes.

Topics

Creating and Updating Alias Records

FSNewAlias

Creates a new alias record, given a target file or directory.

FSNewAliasUnicode

Creates a new alias record, given the Unicode name and parent directory of the target.

FSNewAliasFromPath

Creates a new alias record, given the pathname of the target file or directory.

FSNewAliasMinimal

Creates a new minimal alias record, given a target file or directory.

FSNewAliasMinimalUnicode

Creates a minimal alias, given the Unicode name and parent directory of the target.

FSUpdateAlias

Updates an alias record for a specified target.

Getting Alias Size

GetAliasSize

Gets the size of an alias record referenced by a handle.

GetAliasSizeFromPtr

Gets the size of an alias record referenced by a pointer.

Getting and Setting Alias User Types

GetAliasUserType

Gets the user type for an alias record referenced by a handle.

SetAliasUserType

Sets the user type for an alias record referenced by a handle.

GetAliasUserTypeFromPtr

Gets the user type for the alias record referenced by a pointer.

SetAliasUserTypeWithPtr

Sets the user type for the alias record referenced by a pointer.

Resolving and Reading Alias Records

FSCopyAliasInfo

Returns information from an alias handle.

FSMatchAliasBulk

Identifies a list of possible matches for an alias.

FSResolveAlias

Returns an FSRef to the single most likely target of an alias record.

FSResolveAliasWithMountFlags

Returns an FSRef to the target of an alias.

Working With Finder Alias Files

FSFollowFinderAlias

Resolves an alias record obtained from a Finder alias file.

FSIsAliasFile

Determines whether a file system object is an alias file, a data file, or a folder.

FSResolveAliasFile

Resolves an alias contained in an alias file.

FSResolveAliasFileWithMountFlags

Resolves an alias contained in an alias file.

Callbacks

FSAliasFilterProcPtr

Defines a pointer to an alias filtering callback function that filters out possible targets identified by the FSMatchAliasBulk function.

Data Types

AliasInfoType

Defines the alias record information type used in the index parameter of GetAliasInfo.

AliasRecord

Defines an alias record.

FSAliasInfo

Defines an information block passed to the FSCopyAliasInfo function.

Constants

FSAliasInfoBitmap

Returned by the FSCopyAliasInfo function to indicate which fields of the alias information structure contain valid data.

Volume Mount Options

Specify how an alias should be resolved.

Matching Constants

Specify the matching criteria for the alias matching functions.

Alias Resource Type

Specifies the file type of an alias resource file.

Information Type Constants

The GetAliasInfo function uses these constants in the index parameter.

See Also

Managers

Component Manager

Find and use components in your app or add custom components to system-provided services, such as QuickTime and Core Audio.

File Manager

Interact with files, folders, and volumes.

Gestalt Manager

Investigate the operating environment of your app.

Text Encoding Conversion Manager

Handle text encoding conversion between apps and transfer text across different platforms.