home *** CD-ROM | disk | FTP | other *** search
/ Hall of Fame / HallofFameCDROM.cdr / proglc / quickbbs.h < prev    next >
C/C++ Source or Header  |  1988-12-22  |  5KB  |  296 lines

  1. typedef        unsigned char boolean;
  2.  
  3. struct    UserRecord
  4.     {
  5.     char    Name[36];
  6.     char    City[26];
  7.     char    Pwd[16];
  8.     char    DataPhone[13];
  9.     char    HomePhone[13];
  10.     char    LastTime[6];
  11.     char    LastDate[9];
  12.     byte    Attrib;
  13.     byte    Flags[4];
  14.     int    Credit;
  15.     int    Pending;
  16.     int    TimesPosted;
  17.     int    HighMsgRead;
  18.     int    SecLvl;
  19.     int    Times;
  20.     int    Ups;
  21.     int    Downs;
  22.     int    UpK;
  23.     int    DownK;
  24.     int    TodayK;
  25.     int    Elapsed;
  26.     int    Len;
  27.     byte    ExtraSpace[8];
  28.     };
  29.  
  30. /*    Attrib:
  31.  
  32.     Bit 0: Deleted
  33.     Bit 1: Screen Clear Codes
  34.     Bit 2: More Prompt
  35.     Bit 3: ANSI
  36.     Bit 4: No-Kill
  37.     Bit 5: Ignore Download Hours
  38.     Bit 6: ANSI Full Screen Editor
  39.     Bit 7: [ Reserved ]
  40. */
  41.  
  42. struct    NodeIdxRecord
  43.     {
  44.     int    Zone;
  45.     int    Net;
  46.     int    Node;
  47.     byte    Nodetype;
  48.     };
  49.  
  50. struct    NodelistRecord
  51.     {
  52.     byte    NodeType;
  53.     int    Zone;
  54.     int    Net;
  55.     int    Node;
  56.     char    Name[21];
  57.     char    City[41];
  58.     char    Phone[41];
  59.     int    BaudRate;
  60.     int    Cost;
  61.     };
  62.  
  63. struct    _qnode        /* this structure is identicle to Nodelistrecord */
  64.     {
  65.     byte    nodetype;
  66.     int    zone;
  67.     int    net;
  68.     int    node;
  69.     byte    namelength;    /* length of name string in Pascal.    */
  70.     char    name[20];
  71.     byte    citylength;    /* length of city string in Pascal.    */
  72.     char    city[40];
  73.     byte    phonelength;    /* length of phone string in Pascal.    */
  74.     char    phone[40];
  75.     int    rate;
  76.     int    cost;
  77.     };
  78.  
  79. struct    InfoRecord
  80.     {
  81.     int    LowMsg;            /* lowest message in file.    */
  82.     int    HighMsg;        /* highest message in file.    */
  83.     int    TotalActive;        /* total active messages.    */
  84.     int    ActiveMsgs[200];
  85.     };
  86.  
  87. struct    IdxRecord
  88.     {
  89.     int    MsgNum;
  90.     byte    Board;
  91.     };
  92.  
  93. struct    HdrRecord
  94.     {
  95.     int    MsgNum;
  96.     int    ReplyTo;
  97.     int    SeeAlsoNum;
  98.     int    TRead;
  99.     word    StartRec;
  100.     int    NumRecs;
  101.     int    DestNet;
  102.     int    DestNode;
  103.     int    OrigNet;
  104.     int    OrigNode;
  105.     byte    DestZone;
  106.     byte    OrigZone;
  107.     int    Cost;
  108.     byte    MsgAttr;
  109.     byte    NetAttr;
  110.     byte    Board;
  111.     char    PostTime[6];
  112.     char    PostDate[9];
  113.     char    WhoTo[36];
  114.     char    WhoFrom[36];
  115.     char    Subj[73];
  116.     };
  117.  
  118. /* Msg Attributes:
  119.  
  120.       Bit 0: Deleted
  121.       Bit 1: Unmoved Outgoing Net Message
  122.       Bit 2: Is a Net Mail Message
  123.       Bit 3: Private
  124.       Bit 4: Received
  125.       Bit 5: Unmoved Outgoing Echo Message
  126.       Bit 6: Local Bit
  127.       Bit 7: [ Reserved ]
  128.  
  129.    Net Attributes:
  130.  
  131.       Bit 0: Kill Message after it's been sent
  132.       Bit 1: Sent OK
  133.       Bit 2: File(s) Attached
  134.       Bit 3: Crash Priority
  135.       Bit 4: Request Receipt
  136.       Bit 5: Audit Request
  137.       Bit 6: Is a Return Receipt
  138.       Bit 7: [ Reserved ]
  139.  
  140.   Each record in the MSGTOIDX.BBS file is of type String[35], each entry
  141.   is simply the name of the corresponding message in MSGHDR.BBS is
  142.   addressed to.
  143.  
  144.   Each record in the MSGTXT.BBS file is of type String[255], each entry
  145.   is used to store blocks of message text.  The variable "StartRec" in
  146.   the MSGHDR.BBS file contains the starting record position for the
  147.   text, the variable "NumRecs" indicates how many consecutive blocks
  148.   of text there are in the MSGTXT.BBS file.
  149.  
  150. */
  151.  
  152. struct    SysInfoRecord
  153.     {
  154.     long    CallCount;
  155.     char    LastCaller[36];
  156.     byte    ExtraSpace[128];
  157.     };
  158.  
  159. struct    TimeLogRecord
  160.     {
  161.     char    StartDate[9];
  162.     int    BusyPerHour[24];
  163.     int    BusyPerDay[7];
  164.     };
  165.  
  166. struct    MenuRecord
  167.     {
  168.     byte    Typ;
  169.     int    Sec;
  170.     byte    Flags[4];
  171.     char    Str[76];
  172.     char    Key;
  173.     char    Data[81];
  174.     byte    Fg;
  175.     byte    Bg;
  176.     };
  177.  
  178. struct    EventRecord
  179.     {
  180.     byte    Status;
  181.     char    RunTime[6];
  182.     byte    ErrorLevel;
  183.     byte    Days;
  184.     boolean    Forced;
  185.     char    LastTimeRun[9];
  186.     };
  187.  
  188. struct    BoardRecord
  189.     {
  190.     char    Name[17];
  191.     byte    Typ;
  192.     byte    Kinds;
  193.     boolean    Combined;
  194.     boolean    Aliases;
  195.  
  196.     int    ReadSecLvl;
  197.     byte    ReadFlags[4];
  198.  
  199.     int    WriteSecLvl;
  200.     byte    WriteFlags[4];
  201.  
  202.     int    SysopSecLvl;
  203.     byte    SysopFlags[4];
  204.     };
  205.  
  206. struct    ConfigRecord
  207.     {
  208.     int    CommPort;
  209.     int    InitBaud;
  210.     int    InitTimes;
  211.     int    AnswerWait;
  212.     char    ModemInitStr[71];
  213.     char    ModemBusyStr[71];
  214.     char    ModemInitResp[41];
  215.     char    ModemBusyResp[41];
  216.     char    Resp300[41];
  217.     char    Resp1200[41];
  218.     char    Resp2400[41];
  219.  
  220.     char    MenuPath[67];
  221.     char    TextPath[67];
  222.     char    NetPath[67];
  223.  
  224.     int    MinBaud;
  225.     int    GraphicsBaud;
  226.     int    XferBaud;
  227.  
  228.     char    LowBaudStart[6];
  229.     char    LowBaudEnd[6];
  230.     char    DownloadStart[6];
  231.     char    DownloadEnd[6];
  232.     char    PagingStart[6];
  233.     char    PagingEnd[6];
  234.  
  235.     int    MatrixZone;
  236.     int    MatrixNet;
  237.     int    MatrixNode;
  238.     int    AkaNet[5];
  239.     int    AkaNode[5];
  240.     int    NetMailBoard;
  241.  
  242.     int    DefaultSec;
  243.     int    DefaultCredit;
  244.     byte    DefaultFlags[4];
  245.  
  246.     char    EditorCmdStr[71];
  247.     char    OriginLine[61];
  248.     char    SysopName[36];
  249.     boolean    AutoLogonChar;
  250.     boolean    FastLogon;
  251.     boolean    ScreenBlanking;
  252.     boolean    UseLastRead;
  253.     boolean    MonoMode;
  254.     boolean    DirectWrite;
  255.     boolean    SnowCheck;
  256.     boolean    NetEchoExit;
  257.     boolean    OneWordNames;
  258.     boolean    CheckMail;
  259.     boolean    AskHomePhone;
  260.     boolean    AskDataPhone;
  261.     boolean    GraphicsAvail;
  262.     int    InactiveTimeOut;
  263.     int    LogonTime;
  264.     int    DefFgColor;
  265.     int    DefBgColor;
  266.     int    PasswordTries;
  267.     int    MaxPageTimes;
  268.     int    PageBellLen;
  269.  
  270.     boolean    UseZoneGates;
  271.     byte    ExtraSpace[511];
  272.  
  273.     struct    EventRecord    EventRec[30];
  274.     struct    BoardRecord    BoardRec[200];
  275.     };
  276.  
  277. struct    ExitRecord    /* structure of EXITINFO.BBS file.        */
  278.     {
  279.     int    BaudRate;
  280.     struct    SysInfoRecord    SysInfo;
  281.     struct    TimeLogRecord    TimeLogInfo;
  282.     struct    UserRecord    UserInfo;
  283.     struct    EventRecord    EventInfo;
  284.     boolean    NetMailEntered;
  285.     boolean    EchoMailEntered;
  286.     char    LoginTime[6];
  287.     char    LoginDate[9];
  288.     int    TmLimit;
  289.     long    LoginSec;
  290.     long    Credit;
  291.     int    UserRecNum;
  292.     int    ReadThru;
  293.     int    PageTimes;
  294.     int    DownLimit;
  295.     };
  296.