Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Files /
Chapter 4 - Alias Manager / Alias Manager Reference
Alias Manager Routines / Creating and Updating Alias Records


NewAliasMinimal

You use the NewAliasMinimal function to create a short alias record quickly.

FUNCTION NewAliasMinimal (target: FSSpec; 
                           VAR alias: AliasHandle): OSErr;
target
An FSSpec record for the target of the alias record.
alias
A handle to the newly created alias record. If the function fails to create an alias record, it sets alias to NIL.
DESCRIPTION
The NewAliasMinimal function creates an alias record that contains only the minimum information necessary to describe the target: the target name, the parent directory ID, the volume name and creation date, and the volume mounting information. The NewAliasMinimal function uses the standard alias record data structure, but it fills in only parts of the record.

Note
The ResolveAlias function, described on page 4-19, never updates a minimal alias record.
ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for NewAliasMinimal are
Trap macroSelector
_AliasDispatch$0008

RESULT CODES
noErr0No error
paramErr-50The value of target or alias parameter, or of both, is NIL, or the alias record is corrupt

Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996