home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / Languages / MacGofer 0.22d / MacGofer Sources / mac_humayan_utils.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-01-06  |  1.0 KB  |  22 lines  |  [TEXT/MPS ]

  1. /* For automatic window positioning */
  2. #define AUTO_POSITION    TRUE
  3. #define DONT_POSITION    FALSE
  4.  
  5. /* A better version of HLock -- less likely to cause heap fragmentation */
  6. void HLockHigh( Handle h );
  7.  
  8. /* "Safer" versions of the Mac's standard HLock and HUnlock calls */
  9. void SafeHLock( Handle h, Boolean *saveLock );
  10. void SafeHUnlock( Handle h, Boolean saveLock );
  11.  
  12. /* Prototypes for C versions of HFS file handling functions */
  13. OSErr hcreate(char *fileName,short vRefNum,long dirID,OSType creator,OSType fileType);
  14. OSErr hopen(char *fileName,short vRefNum,long dirID,char permission,short *refNum);
  15. OSErr hrename(char *oldName,short vRefNum,long dirID,char *newName);
  16. OSErr hdelete(char *fileName,short vRefNum,long dirID);
  17. OSErr hgetfinfo(char *fileName,short vRefNum,long dirID,FInfo *fndrInfo);
  18. OSErr hsetfinfo(char *fileName,short vRefNum,long dirID,FInfo *fndrInfo);
  19. OSErr getwdinfo(short theWDRefNum,short *vRefNum,long *dirID);
  20. OSErr fsmakefsspec(char *fileName,short vRefNum,long dirID,FSSpec *spec);
  21. void SFReplyToFSSpec(SFReply theReply,FSSpec *theSpec);
  22.