home *** CD-ROM | disk | FTP | other *** search
/ BBS 1 / BBS#1.iso / maximus / fddev220.arj / C.ARJ / FOLDER.H < prev    next >
C/C++ Source or Header  |  1993-06-28  |  3KB  |  76 lines

  1. /*
  2. **  folder.h
  3. **
  4. **  Structures for FOLDER.FD
  5. **
  6. **  Copyright 1991-1993 Joaquim Homrighausen; All rights reserved.
  7. **
  8. **  Last revised: 93-06-20                         FrontDoor 2.11+
  9. **
  10. **  -------------------------------------------------------------------------
  11. **  This information is not necessarily final and is subject to change at any
  12. **  given time without further notice
  13. **  -------------------------------------------------------------------------
  14. */
  15. #ifndef __FOLDER_H__
  16. #define __FOLDER_H__
  17.  
  18. #ifdef __cplusplus
  19. extern "C" {
  20. #endif
  21.  
  22. /*
  23. **    PATH and TITLE are NUL terminated, a'la C ASCIIZ strings.
  24. */
  25. typedef struct
  26.     {
  27.     char            MsgPath[65],     /*Path if "BoardNum=0", otherwise emtpy*/
  28.                     Title[41];                   /*Title to appear on screen*/
  29.     unsigned char   OriginNum;                   /*Default origin line, 0-19*/
  30.     long            Flags;                                /*Flags, see below*/
  31.     long            PwdCRC;        /*CRC32 of password or -1L if unprotected*/
  32.     long            UserMask;         /*Users with initial access, see below*/
  33.     unsigned char   UseAKANum;                       /*AKA to use, 0=Primary*/
  34.     unsigned short int
  35.                     BoardNum;                             /*HMB board number*/
  36.     }
  37.     FOLDER, *FOLDERPTR;
  38.  
  39. /*
  40. **    Constant long bit values
  41. */
  42. #define FOLDER_RESTRICT     0x00000001L                  /*Restricted folder*/
  43. #define FOLDER_ECHOINFO     0x00000002L            /*Add Origin: information*/
  44. #define FOLDER_EXPORTOK     0x00000004L  /*OK for user to export from folder*/
  45. #define FOLDER_USEXLAT      0x00000008L             /*Use translation tables*/
  46. #define FOLDER_PRIVATE      0x00000010L         /*Add Private message status*/
  47. #define FOLDER_READONLY     0x00000020L                /*Folder is read-only*/
  48. #define FOLDER_FORCEHARDCR  0x00000040L    /*Force hard CRs at linebreak (C)*/
  49. #define FOLDER_NOCHECK      0x02000000L    /*Exclude from new mail check (C)*/
  50. #define FOLDER_NETMAIL      0x08000000L            /*Netmail-type folder (C)*/
  51. #define FOLDER_HMB          0x10000000L         /*Hudson Message Base folder*/
  52. #define FOLDER_DELETED      0x20000000L              /*Never written to disk*/
  53. #define FOLDER_LOCAL        0x40000000L                  /*Local-type folder*/
  54. #define FOLDER_ECHOMAIL     0x80000000L             /*Conference-type folder*/
  55.  
  56. /*
  57. **  User access mask
  58. */
  59. #define FOLDER_USER_1       0x00000001L
  60. #define FOLDER_USER_2       0x00000002L
  61. #define FOLDER_USER_3       0x00000004L
  62. #define FOLDER_USER_4       0x00000008L
  63. #define FOLDER_USER_5       0x00000010L
  64. #define FOLDER_USER_6       0x00000020L
  65. #define FOLDER_USER_7       0x00000040L
  66. #define FOLDER_USER_8       0x00000080L
  67. #define FOLDER_USER_9       0x00000100L
  68. #define FOLDER_USER_10      0x00000200L
  69.  
  70. #ifdef __cplusplus
  71. }
  72. #endif
  73. #endif
  74.  
  75. /* end of file "folder.h" */
  76.