home *** CD-ROM | disk | FTP | other *** search
/ Windoware / WINDOWARE_1_6.iso / powerbbs / win_bbs / powrmain.exe / SOURCE.DOC < prev    next >
Text File  |  1991-06-22  |  8KB  |  185 lines

  1.        FILE STRUCTURES
  2.        ────────────────────────────────────────────────────────────
  3.  
  4. Type datetype = record
  5.       Date: Packed Array[1..8] Of Char;
  6.      End;
  7.  
  8. Type timetype = record
  9.       Time: Packed Array[1..5] Of Char;
  10.      End;
  11.  
  12. Type Forum_Type = Record
  13.      Options:  Byte;      {Forum Options:
  14.                            Bit0: Access No/Yes
  15.                            Bit1: Scan No/Yes}
  16.      Lastread: Single;    {Last message read pointer}
  17.     End;
  18.  
  19. Type PowrUser = Record    {Format of the USER database}
  20.        Name:  Packed Array[1..25] Of Char;        {User Name}
  21.        Location:  Packed Array[1..20] Of Char;    {User Location}
  22.        Computer:  Packed Array[1..15] Of Char;    {User Computer Type}
  23.        Phone_Number: Packed Array[1..14] Of Char; {User Phone Number}
  24.        Password:  Packed Array[1..10] Of Char;    {User Password}
  25.        Birthday:  DateType;                       {date of birth}
  26.        First_Call: DateType;                      {date of first logon}
  27.        Last_File_Scan: DateType;                  {date of last NEW scan}
  28.        Expiration_Date: DateType;                 {date subscription ends}
  29.        Last_Call: DateType;                       {date of last logoff}
  30.        Last_Time: TimeType;                       {time of last logoff}
  31.        Calls: Integer;                            {total number of calls}
  32.        Uploads: Integer;                          {number of uploads}
  33.        Downloads: Integer;                        {number of downloads}
  34.        Time_on: Integer;                          {time on today}
  35.        Today_bytes: Double;                       {bytes downloaded today}
  36.        Download_Bytes: Double;                    {bytes downloaded}
  37.        Uploads_Bytes: Double;                     {bytes uploaded}
  38.        Forum_Data:  Array[0..200] Of Forum_Type;
  39.        Access: Byte;                              {access level}
  40.        Expiration_Access: Byte;                   {access after expiration
  41.                                                         date}
  42.        Screen_lines: Byte;                        {number of lines to a screen}
  43.        Safe_Total: Byte;                          {total minutes in safe}
  44.        Options: Byte;                             {options:
  45.                                                     bit0: Expert On/Off
  46.                                                     bit1: Hotkey On/Off
  47.                                                     bit2: Bad User On/Off}
  48.        Xproto: Byte;                              {default file xfer protocol}
  49.        Monitor_Type: Char;                        {type of monitor:
  50.                                                     'C' => Color
  51.                                                     'M' => Monochrome
  52.                                                     'N' => None}
  53.        Messages_Left: Word;                       {Number of messages left}
  54.        Reserved: Array[1..200] of byte;
  55.       End;
  56.  
  57. Type Powr_CallInfo = Record  {Format of Callers Info File For Live Programs}
  58.        Name:  Packed Array[1..25] Of Char;     {User Name}
  59.        User_Pointer: Integer;                  {User Record # starting at 1}
  60.        BaudRate: Packed Array[1..5] Of Char;   {Baud rate to send at}
  61.        Scomport: Char;                         {Com Number to send at}
  62.        What_Menu: byte;                        {Current Menu}
  63.        Graphics: Char;                         {Graphics Type:
  64.                                                  'C' => Color
  65.                                                  'M' => Monochrome
  66.                                                  'N' => None}
  67.        Access: Byte;                           {User Access Level}
  68.        ForumNum: Byte;                         {Current Forum Number}
  69.        Logon_Time: TimeType;                   {time of logon}
  70.        Logon_Mins: Integer;                    {time the user logged on in mins}
  71.        Used_today: integer;                    {time the user used in
  72.                                                 previous calls so far today}
  73.        Time_Limit: integer;                    {Maximum mins permitted on bbs}
  74.        Kdownload_Maximum: Integer;             {Maximum download bytes in K}
  75.        Upload_Credit: Integer;                 {Minutes given for Uploading}
  76.        Minutes_Useable: Integer;               {Maximum Time left for caller}
  77.        Node_Num: Byte;                  {The node number of this callinfo file}
  78.        Path_Data: string[30];           {path to powrwin.dat}
  79.        Reserved1: Array[1..2] Of Char;
  80.        Reserved2: Byte;
  81.        Reserved3: Longint;
  82.       End;
  83.  
  84.  
  85. Message Base File Definitions
  86. -----------------------------
  87.  
  88. Type IndexFile = Record  {Format of INDEX file}
  89.        bottom_message: Single;    {First message still active}
  90.        Last_message: Single;      {Last message still active}
  91.        messages: Single;          {Number of message in forum}
  92.        Updating: Boolean;         {Set to True when Updating}
  93.       End;
  94.  
  95.  
  96. * Note:  The following is the Message Set up.  In the BBS world, there
  97.          has been a growing motion to a standardized message base.  Many
  98.          doors and nets have been written to utilize the PCBoard (R)
  99.          message base random access file.  We have utilized this
  100.          form:
  101.  
  102. Type MessageText = Record  {Format of Forum Actual Messages}
  103.   case header: integer of
  104.     1: (Options:      Byte;            {1- private no read, 2- public no read
  105.                                         3- private read,    4- public read}
  106.         Message_Id:   Single;          {Identification Number}
  107.         Replied_To:   Single;          {Id Number the message replied to}
  108.         Text_Blocks:  Byte;            {Number of 128 Byte Text Blocks}
  109.         Sent_Date:    DateType;        {Date the message was written}
  110.         Sent_Time:    TimeType;        {Time the message was written}
  111.         Sent_To:      Packed Array[1..25] Of Char;
  112.                                   {Name of user the message was entered to}
  113.         Received_Date:DateType;        {Date the message was received}
  114.         Received_Time:TimeType;        {Time the message was received}
  115.         Any_Replys:   Char;            {Has it been replied to?}
  116.         User_From:    Packed Array[1..25] Of Char;
  117.                                   {Name of user who entered the message}
  118.         Topic:        Packed Array[1..30] Of Char;  {Topic of message}
  119.         Security:     Packed Array[1..12] Of Char;  {Password needed}
  120.         Is_Active:    char;         {Is message alive?}
  121.         Echo:         char;         {Echo through network?}
  122.         Future_Use:   Packed Array[1..6] Of Char;  {Reserved for future});
  123.     2:  (Text_data:   Packed Array[1..128] of Char);
  124.    end;
  125.  
  126.        ERROR MESSAGES
  127.        ────────────────────────────────────────────────────────────
  128.  
  129. The file is a list of what the error codes stand for.  This should help
  130. give you an idea, if powerbbs stops execution because of an error.
  131.  
  132. DOS Errors
  133.  
  134.   2  File not found
  135.   3  Path not found
  136.   4  Too many open files
  137.   5  File access denied
  138.   6  Invalid file handle
  139.  12  Invalid file access code
  140.  15  Invalid drive number
  141.  16  Cannot remove current directory
  142.  17  Cannot rename across drives
  143.  
  144.  
  145. I/O Errors
  146.  
  147. 100  Disk read error
  148. 101  Disk write error
  149. 102  File not assigned
  150. 103  File not open
  151. 104  File not open for input
  152. 105  File not open for output
  153. 106  Invalid numeric format
  154.  
  155.  
  156. Critical Errors
  157.  
  158. 150  Disk is write-protected
  159. 151  Unknown unit
  160. 152  Drive not ready
  161. 153  Unknown command
  162. 154  CRC error in data
  163. 155  Bad drive request structure length
  164. 156  Disk seek error
  165. 157  Unknown media type
  166. 158  Sector not found
  167. 159  Printer out of paper
  168. 160  Device write fault
  169. 161  Device read fault
  170. 162  Hardware (or Network) failure
  171.  
  172.  
  173. Fatal Errors
  174.  
  175. 200  Division by zero
  176. 201  Range check error
  177. 202  Stack overflow error
  178. 203  Heap overflow error
  179. 204  Invalid pointer operation
  180. 205  Floating point overflow
  181. 206  Floating point underflow
  182. 207  Invalid floating-point operation
  183. 208  Overlay manager not installed
  184. 209  Overlay file read error
  185.