Creates a new alias record, given the pathname of the target file or directory.
- macOS 10.5–10.8Deprecated
- Core Services
A C string that specifies the starting point for a relative search. The string should contain a UTF-8 pathname. You may pass
NULLif you do not need relative search information in the alias record.
A C string that contains the full UTF-8 pathname of the target object.
Reserved for future use. Currently, you should pass 0.
A pointer to an alias handle. On output, this handle refers to the newly created alias record.
A pointer to a Boolean value. On input, if the target does not exist, set the value to
trueif the target is a directory or
falseif it is not. (Pass
NULLif you are not sure whether the target is a directory.) On output, if the target exists, the value is
trueif the target is a directory,
falseif it is not.
A result code. For more information, see the Discussion.
If the specified target exists, this function creates an alias record for the target and returns
no. If the parent directory specified in the target pathname exists but the target itself does not exist, this function creates an alias record for the target and returns
fnf. Any other return value indicates that this function did not create an alias record.