NewAliasMinimalFromFullpath
NewAliasMinimalFromFullpath Create pathname-only AliasRecord
#include <Aliases.h> Alias Manager
OSErr NewAliasMinimalFromFullpath(fullpathLength , fullpath,
zoneName, serverName, alias);
short fullpathLength ; number of characters in pathname.
unsigned char *fullpath ; points to buffer containing target's pathname
Str32 zoneName ; string that identifies an AppleTalk zone name
Str31 serverName ; string that identifies an AppleTalk server name
AliasHandle *alias ; a full or partial pathname
returns Error Code; 0=no error
You use the NewAliasMinimalFromFullpath function to quickly create an
AliasRecord that contains only the full pathname of the target.
fullpathLength identifies the number of characters in the full pathname.
fullpath points to a buffer that contains the full pathname of the target. The
full pathname starts with the name of the volume, includes all of the
directory names in the path to the target, and ends with the target
name. (For a description of pathnames, see the File Manager .)
zoneName is a string that identifies the AppleTalk zone name of the AppleShare
volume on which the target resides. Set this parameter to a null
string if you do not need it.
serverName is a string that identifies the AppleTalk server name of the
AppleShare volume on which the target resides. Set this parameter to
a null string if you do not need it.
alias is a handle to the newly created AliasRecord. If the function fails to
create an AliasRecord, it sets alias to NIL
Returns: an operating system Error Code.
noErr (0) No error

Notes: NewAliasMinimalFromFullpath creates an AliasRecord that identifies
the target by full path-name. You can call
NewAliasMinimalFromFullpath to create an AliasRecord for a file
that doesn't exist or that resides on an unmounted volume.
NewAliasMinimalFromFullpath uses the standard AliasRecord data
structure, but it fills in only the information provided in the input
parameters. You can therefore use NewAliasMinimalFromFullpath to
create an AliasRecord for targets on unmounted volumes.
Alias Manager routines use file system specification records (FSSpec
records) to identify files, directories, and volumes. To create an FSSpec
record, call the function FSMakeFSSpec, described in the
File Manager.
The Alias Manager routines can return the result codes listed here--or
any other applicable file system or memory management result codes.
The ResolveAlias function never updates a minimal AliasRecord.