home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Snippets / StandardGetFolder / StandardGetFolder source / StandardGetFolder.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-08-22  |  1.2 KB  |  45 lines  |  [TEXT/KAHL]

  1. /*************************************************************************************************
  2.  
  3. StandardGetFolder.h -- Copyright Chris Larson, 1993 -- All rights reserved.
  4.                        Based partly upon StandardGetFolder example by Steve Falkenburg (MacDTS)
  5.                        and partly on the code in Inside Macintosh: Files.
  6.                        
  7.                        Dialog box layouts taken from Inside Macintosh: Files.
  8.                        
  9.  Include this file in your #includes to use StandardGetFolder.
  10.  
  11.     Bug Reports/Comments to cklarson@engr.ucdavis.edu
  12.  
  13.     Version 1.0
  14.  
  15. *************************************************************************************************/
  16.  
  17. #ifndef __STANDARDGETFOLDER__
  18. #define __STANDARDGETFOLDER__
  19.  
  20. // ----------
  21. // Type Declarations
  22. // ----------
  23.  
  24. typedef struct
  25.     {
  26.     short        sfGood;
  27.     short        sfVRefNum;
  28.     long        sfDirID;
  29.     } StandardFolderReply, *StandardFolderReplyPtr, **StandardFolderReplyHandle;
  30.  
  31. // ----------
  32. // Function Prototypes
  33. // ----------
  34.  
  35. #ifdef __cplusplus
  36. extern "C" {
  37. #endif
  38.  
  39. OSErr StandardGetFolder (Str255 prompt, StandardFolderReplyPtr result, ProcPtr windowProc);
  40.  
  41. #ifdef __cplusplus
  42. }
  43. #endif
  44.  
  45. #endif