|
Mac OS 9
|
Folder Manager Interfaces. More...
Go to the source code of this file.
Data Structures | |
| struct | FolderDesc |
| struct | FolderRouting |
| struct | FindFolderUserRedirectionGlobals |
| struct | MultiUserGestalt |
Macros | |
| #define | NewFolderManagerNotificationUPP(userRoutine) |
| #define | DisposeFolderManagerNotificationUPP(userUPP) DisposeRoutineDescriptor(userUPP) |
| #define | InvokeFolderManagerNotificationUPP(message, arg, userRefCon, userUPP) |
| #define | NewFolderManagerNotificationProc(userRoutine) NewFolderManagerNotificationUPP(userRoutine) |
| #define | CallFolderManagerNotificationProc(userRoutine, message, arg, userRefCon) InvokeFolderManagerNotificationUPP(message, arg, userRefCon, userRoutine) |
Typedefs | |
| typedef UInt32 | FolderDescFlags |
| typedef OSType | FolderClass |
| typedef OSType | FolderType |
| typedef OSType | FolderLocation |
| typedef struct FolderDesc | FolderDesc |
| typedef FolderDesc * | FolderDescPtr |
| typedef UInt32 | RoutingFlags |
| typedef struct FolderRouting | FolderRouting |
| typedef FolderRouting * | FolderRoutingPtr |
| typedef struct FindFolderUserRedirectionGlobals | FindFolderUserRedirectionGlobals |
| typedef FindFolderUserRedirectionGlobals * | FindFolderUserRedirectionGlobalsPtr |
| typedef void * | arg |
| typedef void void * | userRefCon |
| typedef struct MultiUserGestalt | MultiUserGestalt |
| typedef MultiUserGestalt * | MultiUserGestaltPtr |
| typedef MultiUserGestaltPtr * | MultiUserGestaltHandle |
Functions | |
| OSErr | FindFolder (short vRefNum, OSType folderType, Boolean createFolder, short *foundVRefNum, long *foundDirID) |
| OSErr | FindFolderExtended (short vol, OSType foldType, Boolean createFolder, UInt32 flags, void *data, short *vRefNum, long *dirID) |
| OSErr | ReleaseFolder (short vRefNum, OSType folderType) |
| OSErr | FindFolderEx (short vRefNum, OSType folderType, Boolean createFolder, short *foundVRefNum, long *foundDirID, char *foundFolder) |
| OSErr | FSFindFolder (short vRefNum, OSType folderType, Boolean createFolder, FSRef *foundRef) |
| OSErr | FSFindFolderExtended (short vol, OSType foldType, Boolean createFolder, UInt32 flags, void *data, FSRef *foundRef) |
| typedef | CALLBACK_API (OSStatus, FolderManagerNotificationProcPtr)(OSType message |
| typedef | STACK_UPP_TYPE (FolderManagerNotificationProcPtr) FolderManagerNotificationUPP |
| FolderManagerNotificationUPP | NewFolderManagerNotificationUPP (FolderManagerNotificationProcPtr userRoutine) |
| void | DisposeFolderManagerNotificationUPP (FolderManagerNotificationUPP userUPP) |
| OSStatus | InvokeFolderManagerNotificationUPP (OSType message, void *arg, void *userRefCon, FolderManagerNotificationUPP userUPP) |
| OSErr | AddFolderDescriptor (FolderType foldType, FolderDescFlags flags, FolderClass foldClass, FolderLocation foldLocation, OSType badgeSignature, OSType badgeType, ConstStrFileNameParam name, Boolean replaceFlag) |
| OSErr | GetFolderDescriptor (FolderType foldType, Size descSize, FolderDesc *foldDesc) |
| OSErr | GetFolderTypes (UInt32 requestedTypeCount, UInt32 *totalTypeCount, FolderType *theTypes) |
| OSErr | RemoveFolderDescriptor (FolderType foldType) |
| OSErr | GetFolderName (short vRefNum, OSType foldType, short *foundVRefNum, StrFileName name) |
| OSErr | AddFolderRouting (OSType fileType, FolderType routeFromFolder, FolderType routeToFolder, RoutingFlags flags, Boolean replaceFlag) |
| OSErr | RemoveFolderRouting (OSType fileType, FolderType routeFromFolder) |
| OSErr | FindFolderRouting (OSType fileType, FolderType routeFromFolder, FolderType *routeToFolder, RoutingFlags *flags) |
| OSErr | GetFolderRoutings (UInt32 requestedRoutingCount, UInt32 *totalRoutingCount, Size routingSize, FolderRouting *theRoutings) |
| OSErr | InvalidateFolderDescriptorCache (short vRefNum, long dirID) |
| OSErr | IdentifyFolder (short vRefNum, long dirID, FolderType *foldType) |
| OSErr | FolderManagerRegisterNotificationProc (FolderManagerNotificationUPP notificationProc, void *refCon, UInt32 options) |
| OSErr | FolderManagerUnregisterNotificationProc (FolderManagerNotificationUPP notificationProc, void *refCon) |
| OSStatus | FolderManagerRegisterCallNotificationProcs (OSType message, void *arg, UInt32 options) |
Folder Manager Interfaces.
For bug reports, consult the following page on the World Wide Web:
http://developer.apple.com/bugreporter/
| #define InvokeFolderManagerNotificationUPP | ( | message, | |
| arg, | |||
| userRefCon, | |||
| userUPP | |||
| ) |
| #define NewFolderManagerNotificationProc | ( | userRoutine | ) | NewFolderManagerNotificationUPP(userRoutine) |
support for pre-Carbon UPP routines: New...Proc and Call...Proc
| #define NewFolderManagerNotificationUPP | ( | userRoutine | ) |
pascal 4_bytes Func(4_bytes, 4_bytes, 4_bytes)
| anonymous enum |
| anonymous enum |
| anonymous enum |
Extensible Folder Manager declarations Folder Manager constants
| anonymous enum |
| anonymous enum |
New Folder Types to accommodate the Mac OS X Folder Manager These folder types are not applicable on Mac OS 9.
| anonymous enum |
| anonymous enum |
| anonymous enum |
FolderDescFlags values
| anonymous enum |
FolderClass values
| anonymous enum |
special folder locations
| anonymous enum |
routing constants These are bits in the .flags field of the FindFolderUserRedirectionGlobals struct
| Enumerator | |
|---|---|
| kFindFolderRedirectionFlagUseDistinctUserFoldersBit | Set this bit to 1 in the .flags field of a FindFolderUserRedirectionGlobals structure if the userName in the struct should be used as the current "User" name |
| kFindFolderRedirectionFlagUseGivenVRefAndDirIDAsUserFolderBit | Set this bit to 1 and the currentUserFolderVRefNum and currentUserFolderDirID fields of the user record will get used instead of finding the user folder with the userName field. |
| kFindFolderRedirectionFlagsUseGivenVRefNumAndDirIDAsRemoteUserFolderBit | Set this bit to 1 and the remoteUserFolderVRefNum and remoteUserFolderDirID fields of the user record will get used instead of finding the user folder with the userName field. |
| anonymous enum |
These are passed into FindFolderExtended(), FindFolderInternalExtended(), and FindFolderNewInstallerEntryExtended() in the flags field.
| anonymous enum |
CALL_NOT_IN_CARBON
| Enumerator | |
|---|---|
| kFolderManagerNotificationMessagePreUserLogIn | Sent by system & third party software after a user logs in. arg should point to a valid FindFolderUserRedirectionGlobals structure or nil for the owner |
| kFolderManagerNotificationMessageUserLogOut | Sent by system & third party software before a user logs in. arg should point to a valid FindFolderUserRedirectionGlobals structure or nil for the owner |
| kFolderManagerNotificationMessagePostUserLogOut | Sent by system & third party software before a user logs out. arg should point to a valid FindFolderUserRedirectionGlobals structure or nil for the owner |
| kFolderManagerNotificationDiscardCachedData | Sent by system & third party software after a user logs out. arg should point to a valid FindFolderUserRedirectionGlobals structure or nil for the owner |
| kFolderManagerNotificationMessageLoginStartup | Sent by system & third party software when the entire Folder Manager cache should be flushed |
| anonymous enum |
These get used in the options parameter of FolderManagerRegisterNotificationProc()
| anonymous enum |
These get used in the options parameter of FolderManagerCallNotificationProcs()
| OSErr AddFolderDescriptor | ( | FolderType | foldType, |
| FolderDescFlags | flags, | ||
| FolderClass | foldClass, | ||
| FolderLocation | foldLocation, | ||
| OSType | badgeSignature, | ||
| OSType | badgeType, | ||
| ConstStrFileNameParam | name, | ||
| Boolean | replaceFlag | ||
| ) |
Folder Manager routines Folder Manager administration routines AddFolderDescriptor()
| OSErr AddFolderRouting | ( | OSType | fileType, |
| FolderType | routeFromFolder, | ||
| FolderType | routeToFolder, | ||
| RoutingFlags | flags, | ||
| Boolean | replaceFlag | ||
| ) |
routing routines AddFolderRouting()
| void DisposeFolderManagerNotificationUPP | ( | FolderManagerNotificationUPP | userUPP | ) |
DisposeFolderManagerNotificationUPP()
| OSErr FindFolder | ( | short | vRefNum, |
| OSType | folderType, | ||
| Boolean | createFolder, | ||
| short * | foundVRefNum, | ||
| long * | foundDirID | ||
| ) |
| OSErr FindFolderEx | ( | short | vRefNum, |
| OSType | folderType, | ||
| Boolean | createFolder, | ||
| short * | foundVRefNum, | ||
| long * | foundDirID, | ||
| char * | foundFolder | ||
| ) |
Since non-mac targets don't know about VRef's or DirID's, the Ex version returns the found folder path. FindFolderEx()
| OSErr FindFolderExtended | ( | short | vol, |
| OSType | foldType, | ||
| Boolean | createFolder, | ||
| UInt32 | flags, | ||
| void * | data, | ||
| short * | vRefNum, | ||
| long * | dirID | ||
| ) |
| OSErr FindFolderRouting | ( | OSType | fileType, |
| FolderType | routeFromFolder, | ||
| FolderType * | routeToFolder, | ||
| RoutingFlags * | flags | ||
| ) |
| OSStatus FolderManagerRegisterCallNotificationProcs | ( | OSType | message, |
| void * | arg, | ||
| UInt32 | options | ||
| ) |
FolderManagerRegisterCallNotificationProcs()
| OSErr FolderManagerRegisterNotificationProc | ( | FolderManagerNotificationUPP | notificationProc, |
| void * | refCon, | ||
| UInt32 | options | ||
| ) |
FolderManagerRegisterNotificationProc()
| OSErr FolderManagerUnregisterNotificationProc | ( | FolderManagerNotificationUPP | notificationProc, |
| void * | refCon | ||
| ) |
FolderManagerUnregisterNotificationProc()
CALL_NOT_IN_CARBON !TARGET_OS_MAC FSFindFolder()
| OSErr FSFindFolderExtended | ( | short | vol, |
| OSType | foldType, | ||
| Boolean | createFolder, | ||
| UInt32 | flags, | ||
| void * | data, | ||
| FSRef * | foundRef | ||
| ) |
| OSErr GetFolderDescriptor | ( | FolderType | foldType, |
| Size | descSize, | ||
| FolderDesc * | foldDesc | ||
| ) |
| OSErr GetFolderName | ( | short | vRefNum, |
| OSType | foldType, | ||
| short * | foundVRefNum, | ||
| StrFileName | name | ||
| ) |
legacy routines GetFolderName()
| OSErr GetFolderRoutings | ( | UInt32 | requestedRoutingCount, |
| UInt32 * | totalRoutingCount, | ||
| Size | routingSize, | ||
| FolderRouting * | theRoutings | ||
| ) |
| OSErr GetFolderTypes | ( | UInt32 | requestedTypeCount, |
| UInt32 * | totalTypeCount, | ||
| FolderType * | theTypes | ||
| ) |
| OSErr IdentifyFolder | ( | short | vRefNum, |
| long | dirID, | ||
| FolderType * | foldType | ||
| ) |
| OSErr InvalidateFolderDescriptorCache | ( | short | vRefNum, |
| long | dirID | ||
| ) |
InvalidateFolderDescriptorCache()
| OSStatus InvokeFolderManagerNotificationUPP | ( | OSType | message, |
| void * | arg, | ||
| void * | userRefCon, | ||
| FolderManagerNotificationUPP | userUPP | ||
| ) |
InvokeFolderManagerNotificationUPP()
| FolderManagerNotificationUPP NewFolderManagerNotificationUPP | ( | FolderManagerNotificationProcPtr | userRoutine | ) |
NewFolderManagerNotificationUPP()
| OSErr ReleaseFolder | ( | short | vRefNum, |
| OSType | folderType | ||
| ) |
| OSErr RemoveFolderDescriptor | ( | FolderType | foldType | ) |
| OSErr RemoveFolderRouting | ( | OSType | fileType, |
| FolderType | routeFromFolder | ||
| ) |