Important: The information in this document is obsolete and should not be used for new development.
NewAliasMinimal
You use theNewAliasMinimal
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
toNIL
.DESCRIPTION
TheNewAliasMinimal
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. TheNewAliasMinimal
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 forNewAliasMinimal
are
Trap macro Selector _AliasDispatch $0008 RESULT CODES
noErr 0 No error paramErr -50 The value of target
oralias
parameter, or of both, isNIL
, or the alias record is corrupt