Important: The information in this document is obsolete and should not be used for new development.
NewAliasMinimal
You use theNewAliasMinimalfunction to create a short alias record quickly.
FUNCTION NewAliasMinimal (target: FSSpec; VAR alias: AliasHandle): OSErr;
target- An
FSSpecrecord 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
aliastoNIL.DESCRIPTION
TheNewAliasMinimalfunction 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. TheNewAliasMinimalfunction uses the standard alias record data structure, but it fills in only parts of the record.
- Note
- The
ResolveAliasfunction, described on page 4-19, never updates a minimal alias record.![]()
ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector forNewAliasMinimalare
Trap macro Selector _AliasDispatch $0008 RESULT CODES
noErr 0 No error paramErr -50 The value of targetoraliasparameter, or of both, isNIL, or the alias record is corrupt