|
Mac OS 9
|
Alias Manager Interfaces. More...
Go to the source code of this file.
Data Structures | |
| struct | AliasRecord |
Macros | |
| #define | NewAliasFilterUPP(userRoutine) |
| #define | DisposeAliasFilterUPP(userUPP) DisposeRoutineDescriptor(userUPP) |
| #define | InvokeAliasFilterUPP(cpbPtr, quitFlag, myDataPtr, userUPP) |
| #define | NewAliasFilterProc(userRoutine) NewAliasFilterUPP(userRoutine) |
| #define | CallAliasFilterProc(userRoutine, cpbPtr, quitFlag, myDataPtr) InvokeAliasFilterUPP(cpbPtr, quitFlag, myDataPtr, userRoutine) |
Typedefs | |
| typedef struct AliasRecord | AliasRecord |
| typedef AliasRecord * | AliasPtr |
| typedef AliasPtr * | AliasHandle |
| typedef short | AliasInfoType |
| typedef Boolean * | quitFlag |
| typedef Boolean Ptr | myDataPtr |
Enumerations | |
| enum | { rAliasType } |
| enum | { kARMMountVol = 0x00000001 , kARMNoUI = 0x00000002 , kARMMultVols = 0x00000008 , kARMSearch = 0x00000100 , kARMSearchMore = 0x00000200 , kARMSearchRelFirst = 0x00000400 } |
| enum | { asiZoneName = -3 , asiServerName = -2 , asiVolumeName = -1 , asiAliasName = 0 , asiParentName = 1 } |
| enum | { kResolveAliasFileNoUI } |
| enum | { uppAliasFilterProcInfo = 0x00000FD0 } |
Functions | |
| OSErr | NewAlias (const FSSpec *fromFile, const FSSpec *target, AliasHandle *alias) |
| OSErr | NewAliasMinimal (const FSSpec *target, AliasHandle *alias) |
| OSErr | NewAliasMinimalFromFullPath (short fullPathLength, const void *fullPath, ConstStr32Param zoneName, ConstStr31Param serverName, AliasHandle *alias) |
| OSErr | ResolveAlias (const FSSpec *fromFile, AliasHandle alias, FSSpec *target, Boolean *wasChanged) |
| OSErr | GetAliasInfo (AliasHandle alias, AliasInfoType index, Str63 theString) |
| Get information from an AliasRecord. More... | |
| OSErr | IsAliasFile (const FSSpec *fileFSSpec, Boolean *aliasFileFlag, Boolean *folderFlag) |
| OSErr | ResolveAliasWithMountFlags (const FSSpec *fromFile, AliasHandle alias, FSSpec *target, Boolean *wasChanged, unsigned long mountFlags) |
| OSErr | ResolveAliasFile (FSSpec *theSpec, Boolean resolveAliasChains, Boolean *targetIsFolder, Boolean *wasAliased) |
| OSErr | ResolveAliasFileWithMountFlags (FSSpec *theSpec, Boolean resolveAliasChains, Boolean *targetIsFolder, Boolean *wasAliased, unsigned long mountFlags) |
| OSErr | FollowFinderAlias (const FSSpec *fromFile, AliasHandle alias, Boolean logon, FSSpec *target, Boolean *wasChanged) |
| OSErr | UpdateAlias (const FSSpec *fromFile, const FSSpec *target, AliasHandle alias, Boolean *wasChanged) |
| typedef | CALLBACK_API (Boolean, AliasFilterProcPtr)(CInfoPBPtr cpbPtr |
| typedef | STACK_UPP_TYPE (AliasFilterProcPtr) AliasFilterUPP |
| AliasFilterUPP | NewAliasFilterUPP (AliasFilterProcPtr userRoutine) |
| void | DisposeAliasFilterUPP (AliasFilterUPP userUPP) |
| Boolean | InvokeAliasFilterUPP (CInfoPBPtr cpbPtr, Boolean *quitFlag, Ptr myDataPtr, AliasFilterUPP userUPP) |
| OSErr | MatchAlias (const FSSpec *fromFile, unsigned long rulesMask, AliasHandle alias, short *aliasCount, FSSpecArrayPtr aliasList, Boolean *needsUpdate, AliasFilterUPP aliasFilter, void *yourDataPtr) |
| OSErr | ResolveAliasFileWithMountFlagsNoUI (FSSpec *theSpec, Boolean resolveAliasChains, Boolean *targetIsFolder, Boolean *wasAliased, unsigned long mountFlags) |
| OSErr | MatchAliasNoUI (const FSSpec *fromFile, unsigned long rulesMask, AliasHandle alias, short *aliasCount, FSSpecArrayPtr aliasList, Boolean *needsUpdate, AliasFilterUPP aliasFilter, void *yourDataPtr) |
| OSErr | FSNewAlias (const FSRef *fromFile, const FSRef *target, AliasHandle *inAlias) |
| OSErr | FSNewAliasMinimal (const FSRef *target, AliasHandle *inAlias) |
| OSErr | FSIsAliasFile (const FSRef *fileRef, Boolean *aliasFileFlag, Boolean *folderFlag) |
| OSErr | FSResolveAliasWithMountFlags (const FSRef *fromFile, AliasHandle inAlias, FSRef *target, Boolean *wasChanged, unsigned long mountFlags) |
| OSErr | FSResolveAlias (const FSRef *fromFile, AliasHandle alias, FSRef *target, Boolean *wasChanged) |
| OSErr | FSResolveAliasFileWithMountFlags (FSRef *theRef, Boolean resolveAliasChains, Boolean *targetIsFolder, Boolean *wasAliased, unsigned long mountFlags) |
| OSErr | FSResolveAliasFile (FSRef *theRef, Boolean resolveAliasChains, Boolean *targetIsFolder, Boolean *wasAliased) |
| OSErr | FSFollowFinderAlias (FSRef *fromFile, AliasHandle alias, Boolean logon, FSRef *target, Boolean *wasChanged) |
| OSErr | FSUpdateAlias (const FSRef *fromFile, const FSRef *target, AliasHandle alias, Boolean *wasChanged) |
Alias Manager Interfaces.
For bug reports, consult the following page on the World Wide Web:
http://developer.apple.com/bugreporter/
| #define InvokeAliasFilterUPP | ( | cpbPtr, | |
| quitFlag, | |||
| myDataPtr, | |||
| userUPP | |||
| ) |
| #define NewAliasFilterProc | ( | userRoutine | ) | NewAliasFilterUPP(userRoutine) |
support for pre-Carbon UPP routines: New...Proc and Call...Proc
| #define NewAliasFilterUPP | ( | userRoutine | ) |
pascal 1_byte Func(4_bytes, 4_bytes, 4_bytes)
| typedef short AliasInfoType |
alias record information type
| anonymous enum |
| anonymous enum |
| anonymous enum |
ResolveAliasFileWithMountFlags options
| void DisposeAliasFilterUPP | ( | AliasFilterUPP | userUPP | ) |
| OSErr FollowFinderAlias | ( | const FSSpec * | fromFile, |
| AliasHandle | alias, | ||
| Boolean | logon, | ||
| FSSpec * | target, | ||
| Boolean * | wasChanged | ||
| ) |
| alias | can be NULL |
| OSErr FSFollowFinderAlias | ( | FSRef * | fromFile, |
| AliasHandle | alias, | ||
| Boolean | logon, | ||
| FSRef * | target, | ||
| Boolean * | wasChanged | ||
| ) |
| alias | can be NULL |
| OSErr FSNewAlias | ( | const FSRef * | fromFile, |
| const FSRef * | target, | ||
| AliasHandle * | inAlias | ||
| ) |
| target | can be NULL |
| OSErr FSNewAliasMinimal | ( | const FSRef * | target, |
| AliasHandle * | inAlias | ||
| ) |
| OSErr FSResolveAlias | ( | const FSRef * | fromFile, |
| AliasHandle | alias, | ||
| FSRef * | target, | ||
| Boolean * | wasChanged | ||
| ) |
| alias | can be NULL |
| OSErr FSResolveAliasFile | ( | FSRef * | theRef, |
| Boolean | resolveAliasChains, | ||
| Boolean * | targetIsFolder, | ||
| Boolean * | wasAliased | ||
| ) |
| OSErr FSResolveAliasFileWithMountFlags | ( | FSRef * | theRef, |
| Boolean | resolveAliasChains, | ||
| Boolean * | targetIsFolder, | ||
| Boolean * | wasAliased, | ||
| unsigned long | mountFlags | ||
| ) |
FSResolveAliasFileWithMountFlags()
| OSErr FSResolveAliasWithMountFlags | ( | const FSRef * | fromFile, |
| AliasHandle | inAlias, | ||
| FSRef * | target, | ||
| Boolean * | wasChanged, | ||
| unsigned long | mountFlags | ||
| ) |
FSResolveAliasWithMountFlags()
| inAlias | can be NULL |
| OSErr FSUpdateAlias | ( | const FSRef * | fromFile, |
| const FSRef * | target, | ||
| AliasHandle | alias, | ||
| Boolean * | wasChanged | ||
| ) |
| target | can be NULL |
| OSErr GetAliasInfo | ( | AliasHandle | alias, |
| AliasInfoType | index, | ||
| Str63 | theString | ||
| ) |
Get information from an AliasRecord.
You use the GetAliasInfo function to get information from an AliasRecord without actually resolving the record. alias is a handle to the AliasRecord to be read. index specifies the kind of information to be retrieved. If index is a positive integer, GetAliasInfo retrieves the parent directory that has the same hierarchical level above the target as the index parameter (for example, an index value of 2 returns the name of the parent directory of the target's parent directory). You can therefore assemble the names of the target and all of its parent directories by making repeated calls to GetAliasInfo with incrementing index values, starting with a value of 0. When index is greater than the number of levels between the target and the root, GetAliasInfo returns an empty string. You can also set the index parameter to one of the following five values. Constant Description asiZoneName If the record represents a target on an AppleShare volume, retrieve the server's zone name. Otherwise, return an empty string. asiServerName If the record represents a target on an AppleShare volume, retrieve the server name. Otherwise, return an empty string. asiVolumeName Return the name of the volume on which the target resides. asiAliasName Return the name of the target. asiParentName Return the name of the parent directory of the target of the record. If the target is a volume, return the volume name. theString receives the requested information. Returns: an operating system Error Code . noErr(0)No error nsvErr (-35)The volume is not mounted fnfErr(-43)Target not found, but volume and parent directory found; if aliasCount is 1, target parameter contains a valid FSSpec record paramErr (-50)Alias, theString, or both are NIL, the index is less than asiZoneName, or the AliasRecord is corrupt
| Boolean InvokeAliasFilterUPP | ( | CInfoPBPtr | cpbPtr, |
| Boolean * | quitFlag, | ||
| Ptr | myDataPtr, | ||
| AliasFilterUPP | userUPP | ||
| ) |
| OSErr MatchAlias | ( | const FSSpec * | fromFile, |
| unsigned long | rulesMask, | ||
| AliasHandle | alias, | ||
| short * | aliasCount, | ||
| FSSpecArrayPtr | aliasList, | ||
| Boolean * | needsUpdate, | ||
| AliasFilterUPP | aliasFilter, | ||
| void * | yourDataPtr | ||
| ) |
CALL_NOT_IN_CARBON MatchAlias()
Summary: Given an alias handle and fromFile, match the alias and return aliased filename(s) and needsUpdate flag
| rulesMask | can be NULL |
| OSErr MatchAliasNoUI | ( | const FSSpec * | fromFile, |
| unsigned long | rulesMask, | ||
| AliasHandle | alias, | ||
| short * | aliasCount, | ||
| FSSpecArrayPtr | aliasList, | ||
| Boolean * | needsUpdate, | ||
| AliasFilterUPP | aliasFilter, | ||
| void * | yourDataPtr | ||
| ) |
Summary: variation on MatchAlias that does not prompt user with a dialog
| rulesMask | can be NULL |
| OSErr NewAlias | ( | const FSSpec * | fromFile, |
| const FSSpec * | target, | ||
| AliasHandle * | alias | ||
| ) |
Summary: create a new alias between fromFile and target, returns alias record handle
| target | can be NULL |
| AliasFilterUPP NewAliasFilterUPP | ( | AliasFilterProcPtr | userRoutine | ) |
| OSErr NewAliasMinimal | ( | const FSSpec * | target, |
| AliasHandle * | alias | ||
| ) |
Summary: create a minimal new alias for a target and return alias record handle
| OSErr NewAliasMinimalFromFullPath | ( | short | fullPathLength, |
| const void * | fullPath, | ||
| ConstStr32Param | zoneName, | ||
| ConstStr31Param | serverName, | ||
| AliasHandle * | alias | ||
| ) |
Summary: create a minimal new alias from a target fullpath (optional zone and server name) and return alias record handle
| OSErr ResolveAlias | ( | const FSSpec * | fromFile, |
| AliasHandle | alias, | ||
| FSSpec * | target, | ||
| Boolean * | wasChanged | ||
| ) |
Summary: given an alias handle and fromFile, resolve the alias, update the alias record and return aliased filename and wasChanged flag.
| alias | can be NULL |
| OSErr ResolveAliasFile | ( | FSSpec * | theSpec, |
| Boolean | resolveAliasChains, | ||
| Boolean * | targetIsFolder, | ||
| Boolean * | wasAliased | ||
| ) |
Summary: Given a file spec, return target file spec if input file spec is an alias. It resolves the entire alias chain or one step of the chain. It returns info about whether the target is a folder or file; and whether the input file spec was an alias or not.
| OSErr ResolveAliasFileWithMountFlags | ( | FSSpec * | theSpec, |
| Boolean | resolveAliasChains, | ||
| Boolean * | targetIsFolder, | ||
| Boolean * | wasAliased, | ||
| unsigned long | mountFlags | ||
| ) |
ResolveAliasFileWithMountFlags()
| OSErr ResolveAliasFileWithMountFlagsNoUI | ( | FSSpec * | theSpec, |
| Boolean | resolveAliasChains, | ||
| Boolean * | targetIsFolder, | ||
| Boolean * | wasAliased, | ||
| unsigned long | mountFlags | ||
| ) |
ResolveAliasFileWithMountFlagsNoUI()
Summary: variation on ResolveAliasFile that does not prompt user with a dialog
| OSErr ResolveAliasWithMountFlags | ( | const FSSpec * | fromFile, |
| AliasHandle | alias, | ||
| FSSpec * | target, | ||
| Boolean * | wasChanged, | ||
| unsigned long | mountFlags | ||
| ) |
| alias | can be NULL |
| OSErr UpdateAlias | ( | const FSSpec * | fromFile, |
| const FSSpec * | target, | ||
| AliasHandle | alias, | ||
| Boolean * | wasChanged | ||
| ) |
Low Level Routines UpdateAlias()
Summary: given a fromFile-target pair and an alias handle, update the alias record pointed to by alias handle to represent target as the new alias.
| target | can be NULL |