home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / header45.zip / errlog.h < prev    next >
C/C++ Source or Header  |  1999-04-29  |  35KB  |  1,038 lines

  1. /**************************************************************************/
  2. /*                                                                        */
  3. /*              IBM OS/2(tm) Local Area Network (LAN) Server              */
  4. /*                            Version 5.03                                */
  5. /*                   (C) Copyright IBM Corp. 1988, 1998                   */
  6. /*                  Licensed Materials - Property of IBM                  */
  7. /*                                                                        */
  8. /**************************************************************************/
  9. /********************************************************************/
  10.  
  11. /********************************************************************
  12.  *                                                                  *
  13.  *  About this file ...  ERRLOG.H                                   *
  14.  *                                                                  *
  15.  *  This file contains information about the NetErrorLog APIs.      *
  16.  *                                                                  *
  17.  *      Function prototypes.                                        *
  18.  *                                                                  *
  19.  *      Data structure templates.                                   *
  20.  *                                                                  *
  21.  *      Definition of special values.                               *
  22.  *                                                                  *
  23.  *                                                                  *
  24.  *  NOTE:  You must include NETCONS.H before this file, since this  *
  25.  *         file depends on values defined in NETCONS.H.             *
  26.  *                                                                  *
  27.  ********************************************************************/
  28.  
  29.  
  30. #ifndef NETERRLOG_INCLUDED
  31.  
  32. #define NETERRLOG_INCLUDED
  33.  
  34. #pragma pack(1)
  35.  
  36.  
  37. /****************************************************************
  38.  *                                                              *
  39.  *              Data Structures for LogRead                     *
  40.  *                                                              *
  41.  ****************************************************************/
  42.  
  43.  
  44. #ifndef LOGFLAGS_FORWARD
  45.  
  46. typedef struct loghandle
  47.     {
  48.         unsigned long   time;           /* Timestamp of first record */
  49.         unsigned long   last_flags;     /* Last call's flags */
  50.         unsigned long   offset;         /* Current byte offset in log */
  51.         unsigned long   rec_offset;     /* Current record offset in log */
  52.     }   HLOG;
  53.  
  54.  
  55. #define LOGFLAGS_FORWARD        0
  56. #define LOGFLAGS_BACKWARD       0x1
  57. #define LOGFLAGS_SEEK           0x2
  58.  
  59. #endif
  60.  
  61. /****************************************************************
  62.  *                                                              *
  63.  *                Function prototypes                           *
  64.  *                                                              *
  65.  ****************************************************************/
  66.  
  67. extern API_FUNCTION
  68.   NetErrorLogClear ( const unsigned char LSFAR * pszServer,
  69.                      const unsigned char LSFAR * pszBackupFile,
  70.                      unsigned char LSFAR *       pszReserved );
  71.  
  72. extern API_FUNCTION
  73.   NetErrorLogOpen ( const unsigned char LSFAR * pszServer,
  74.                     unsigned LSFAR *            phErrorLog,
  75.                     unsigned char LSFAR *       pszReserved );
  76.  
  77. extern API_FUNCTION
  78.   NetErrorLogRead ( const unsigned char LSFAR *     pszServer,
  79.                     const unsigned char LSFAR *     pszReserved1,
  80.                     HLOG LSFAR *                    phErrorLog,
  81.                     unsigned long                   ulOffset,
  82.                     unsigned short LSFAR  *         pusReserved2,
  83.                     unsigned long                   ulReserved3,
  84.                     unsigned long                   flOffset,
  85.                     unsigned char LSFAR *           pbBuffer,
  86.                     unsigned short                  cbBuffer,
  87.                     unsigned short LSFAR  *         pcbReturned,
  88.                     unsigned short LSFAR  *         pcbTotalAvail );
  89.  
  90. extern API_FUNCTION
  91.   NetErrorLogWrite ( unsigned char LSFAR *       pszReserved1,
  92.                      unsigned short              usCode,
  93.                      const unsigned char LSFAR * pszComponent,
  94.                      const unsigned char LSFAR * pbBuffer,
  95.                      unsigned short              cbBuffer,
  96.                      const unsigned char LSFAR * pszStrBuf,
  97.                      unsigned short              cStrBuf,
  98.                      unsigned char LSFAR *       pszReserved2 );
  99.  
  100.  
  101. /****************************************************************
  102.  *                                                              *
  103.  *              Data structure templates                        *
  104.  *                                                              *
  105.  ****************************************************************/
  106.  
  107.  
  108. struct error_log {
  109.         unsigned short  el_len;
  110.         unsigned short  el_reserved;
  111.         unsigned long   el_time;
  112.         unsigned short  el_error;
  113.         unsigned char   el_name[SNLEN+1];
  114.         unsigned short  el_data_offset;
  115.         unsigned short  el_nstrings;
  116. }; /* error_log */
  117.  
  118.  
  119.  
  120. #ifdef PURE_32
  121. /****************************************************************
  122.  *                                                              *
  123.  *       Function prototypes for "pure" 32-bit code             *
  124.  *                                                              *
  125.  ****************************************************************/
  126.  
  127. extern API32_FUNCTION
  128.   Net32ErrorLogClear ( const unsigned char * pszServer,
  129.                        const unsigned char * pszBackupFile,
  130.                        unsigned char       * pszReserved );
  131.  
  132. extern API32_FUNCTION
  133.   Net32ErrorLogRead ( const unsigned char    * pszServer,
  134.                       const unsigned char    * pszReserved1,
  135.                       HLOG                   * phErrorLogHandle,
  136.                       unsigned long            ulOffset,
  137.                       unsigned short         * pusReserved2,
  138.                       unsigned long            ulReserved3,
  139.                       unsigned long            ulOpenflags,
  140.                       unsigned char          * pbBuffer,
  141.                       unsigned long            ulBuffer,
  142.                       unsigned long          * pulReturned,
  143.                       unsigned long          * pulTotalAvail );
  144.  
  145. extern API32_FUNCTION
  146.   Net32ErrorLogWrite ( unsigned char       * pszReserved1,
  147.                        unsigned short        usCode,
  148.                        const unsigned char * pszComponent,
  149.                        const unsigned char * pbBuffer,
  150.                        unsigned long         ulBuffer,
  151.                        const unsigned char * pszStrBuf,
  152.                        unsigned short        cStrBuf,
  153.                        unsigned char       * pszReserved2 );
  154. #endif /* PURE_32 */
  155.  
  156.  
  157. /****************************************************************
  158.  *                                                              *
  159.  *              Special values and constants                    *
  160.  *                                                              *
  161.  ****************************************************************/
  162.  
  163.  
  164.  
  165. #define ERRLOG_BASE     3100            /* NELOG errors start here */
  166.  
  167.  
  168.  
  169. /*
  170.  *      Generic (could be used by more than one service)
  171.  *       error log messages from 0 to 25
  172.  */
  173.  
  174. #define NELOG_Internal_Error            (ERRLOG_BASE + 0)
  175.         /*
  176.          * The operation failed because a network software error occurred.
  177.          */
  178.  
  179.  
  180. #define NELOG_Resource_Shortage         (ERRLOG_BASE + 1)
  181.         /*
  182.          * The system ran out of a resource controlled by the %1 option.
  183.          */
  184.  
  185. #define NELOG_Unable_To_Lock_Segment    (ERRLOG_BASE + 2)
  186.         /*
  187.          * The service failed to obtain a long-term lock on the
  188.          *  segment for NCBs. The error code is the data.
  189.          */
  190.  
  191. #define NELOG_Unable_To_Unlock_Segment  (ERRLOG_BASE + 3)
  192.         /*
  193.          * The service failed to release the long-term lock on the
  194.          *  segment for NCBs. The error code is the data.
  195.          */
  196.  
  197. #define NELOG_Uninstall_Service         (ERRLOG_BASE + 4)
  198.         /*
  199.          * There was an error stopping service %1.
  200.          *  The error code from NetServiceControl is the data.
  201.          */
  202.  
  203. #define NELOG_Init_Exec_Fail            (ERRLOG_BASE + 5)
  204.         /*
  205.          * Initialization failed because of an OS/2 exec failure on
  206.          *  path %1. The OS/2 error code is the data.
  207.          */
  208.  
  209. #define NELOG_Ncb_Error                 (ERRLOG_BASE + 6)
  210.         /*
  211.          * An unexpected NCB was received. The NCB is the data.
  212.          */
  213.  
  214. #define NELOG_Ioctl_Error               (ERRLOG_BASE + 8)
  215.         /*
  216.          * A DosDevIoctl or DosFsCtl to NETWKSTA.SYS failed.
  217.          * The data shown is in this format:
  218.          *     DWORD  approx CS:IP of call to ioctl or fsctl
  219.          *     WORD   error code
  220.          *     WORD   ioctl or fsctl number
  221.          */
  222.  
  223. #define NELOG_System_Semaphore          (ERRLOG_BASE + 9)
  224.         /*
  225.          * Unable to create or open system semaphore %1.
  226.          *  The error code is the data.
  227.          */
  228.  
  229. #define NELOG_Init_OpenCreate_Err       (ERRLOG_BASE + 10)
  230.         /*
  231.          * Initialization failed because of an open/create error on the
  232.          *  file %1. The OS/2 error code is the data.
  233.          */
  234.  
  235. #define NELOG_NetBios                   (ERRLOG_BASE + 11)
  236.         /*
  237.          * An unexpected NetBios error occurred.
  238.          *  The error code is the data.
  239.          */
  240.  
  241. #define NELOG_SMB_Illegal               (ERRLOG_BASE + 12)
  242.         /*
  243.          * An illegal SMB was received.
  244.          *  The SMB is the data.
  245.          */
  246.  
  247. #define NELOG_Service_Fail              (ERRLOG_BASE + 13)
  248.         /*
  249.          * Initialization failed because the requested service %1
  250.          *  could not be started.
  251.          */
  252.  
  253. #define NELOG_Entries_Lost              (ERRLOG_BASE + 14)
  254.         /*
  255.          * Some entries in the error log were lost because of a buffer
  256.          * overflow.
  257.          */
  258.  
  259.  
  260. /*
  261.  *      Server specific error log messages from 20 to 40
  262.  */
  263.  
  264. #define NELOG_Init_Seg_Overflow         (ERRLOG_BASE + 20)
  265.         /*
  266.          * Initialization parameters controlling resource usage other
  267.          *  than net buffers are sized so that too much memory is needed.
  268.          */
  269.  
  270. #define NELOG_Srv_No_Mem_Grow           (ERRLOG_BASE + 21)
  271.         /*
  272.          * The server cannot increase the size of a memory segment.
  273.          */
  274.  
  275. #define NELOG_Access_File_Bad           (ERRLOG_BASE + 22)
  276.         /*
  277.          * Initialization failed because account file: %1 is either incorrect
  278.          * or not present.
  279.          */
  280.  
  281. #define NELOG_Srvnet_Not_Started        (ERRLOG_BASE + 23)
  282.         /*
  283.          * Initialization failed because network: %1 was not started.
  284.          */
  285.  
  286. #define NELOG_Init_Chardev_Err          (ERRLOG_BASE + 24)
  287.         /*
  288.          * The server failed to start. Either all three chdev
  289.          *  parameters must be zero or all three must be nonzero.
  290.          */
  291.  
  292. #define NELOG_Remote_API                (ERRLOG_BASE + 25)
  293.         /* A remote API request was halted due to the following
  294.          * invalid description string: %1.
  295.          */
  296.  
  297. #define NELOG_Ncb_TooManyErr            (ERRLOG_BASE + 26)
  298.         /* The network %1 ran out of NCBs.  You may need to increase NCBs
  299.          * for this network.  The following information includes the
  300.          * number of NCBs submitted by the server when this error occurred:
  301.          */
  302.  
  303. #define NELOG_Mailslot_err              (ERRLOG_BASE + 27)
  304.         /* The server cannot create the %1 mailslot needed to send
  305.          * the ReleaseMemory alert message.  The error received is:
  306.          */
  307.  
  308. #define NELOG_ReleaseMem_Alert          (ERRLOG_BASE + 28)
  309.         /* The server failed to register for the RELEASEMEMORY alert,
  310.          * with recipient %1. The error code from
  311.          * NetAlertStart is the data.
  312.          */
  313.  
  314. #define NELOG_AT_cannot_write           (ERRLOG_BASE + 29)
  315.         /* The server cannot update the AT schedule file. The file
  316.          * is corrupt.
  317.          */
  318.  
  319. #define NELOG_Cant_Make_Msg_File        (ERRLOG_BASE + 30)
  320.         /* The server encountered an error when calling
  321.          * NetIMakeLMFileName. The error code is the data.
  322.          */
  323.  
  324. #define NELOG_Exec_Netservr_NoMem       (ERRLOG_BASE + 31)
  325.         /* Initialization failed because of an OS/2 exec failure on
  326.          * path %1. There is not enough memory to start the process.
  327.          * The OS/2 error code is the data.
  328.          */
  329.  
  330. #define NELOG_Server_Lock_Failure       (ERRLOG_BASE + 32)
  331.         /* Longterm lock of server buffers failed.
  332.          * Check swap disk free space and reboot system to start server.
  333.          */
  334. /*
  335.  *      Message service and POPUP specific error log messages from 40 to 55
  336.  */
  337.  
  338. #define NELOG_Msg_Shutdown              (ERRLOG_BASE + 40)
  339.         /*
  340.          * The service has stopped due to repeated consecutive
  341.          *  occurrences of an NCB error.  The last bad NCB follows
  342.          *  in raw data.
  343.          */
  344.  
  345. #define NELOG_Msg_Sem_Shutdown          (ERRLOG_BASE + 41)
  346.         /*
  347.          * The Message server has stopped due to a lock on the
  348.          *  Message server shared data segment.
  349.          */
  350.  
  351. #define NELOG_Msg_Log_Err               (ERRLOG_BASE + 50)
  352.         /*
  353.          * A file system error occurred while opening or writing to the
  354.          *  system message log file, %1. Message logging has been
  355.          *  switched off due to the error. The error code is the data.
  356.          */
  357.  
  358.  
  359. #define NELOG_VIO_POPUP_ERR             (ERRLOG_BASE + 51)
  360.         /*
  361.          * Unable to display message POPUP due to OS/2 VIO call error.
  362.          *  The error code is the data.
  363.          */
  364.  
  365.  
  366. #define NELOG_Msg_Unexpected_SMB_Type   (ERRLOG_BASE + 52)
  367.         /*
  368.          * An illegal SMB was received.  The SMB is the data.
  369.          */
  370.  
  371.  
  372. /*
  373.  *      Requester specific error log messages from 60 to 75
  374.  */
  375.  
  376.  
  377. #define NELOG_Wksta_Infoseg             (ERRLOG_BASE + 60)
  378.         /*
  379.          * The workstation information segment is bigger than 64K bytes.
  380.          *  The size follows, in DWORD format:
  381.          */
  382.  
  383. #define NELOG_Wksta_Compname            (ERRLOG_BASE + 61)
  384.         /*
  385.          * The workstation was unable to get the name-number of computer name.
  386.          */
  387.  
  388. #define NELOG_Wksta_BiosThreadFailure   (ERRLOG_BASE + 62)
  389.         /*
  390.          * The workstation could not initialize the Async NetBios Thread.
  391.          *  The error code is the data.
  392.          */
  393.  
  394. #define NELOG_Wksta_IniSeg              (ERRLOG_BASE + 63)
  395.         /*
  396.          * The workstation could not open the initial shared segment.
  397.          *  The error code is the data.
  398.          */
  399.  
  400. #define NELOG_Wksta_HostTab_Full        (ERRLOG_BASE + 64)
  401.         /*
  402.          * The workstation host table is full.
  403.          */
  404.  
  405. #define NELOG_Wksta_Bad_Mailslot_SMB    (ERRLOG_BASE + 65)
  406.         /*
  407.          * A bad mailslot SMB was received.  The SMB is the data.
  408.          */
  409.  
  410. #define NELOG_Wksta_UASInit             (ERRLOG_BASE + 66)
  411.         /*
  412.          * The workstation encountered an error while trying to start the UAS.
  413.          *  The error code is the data.
  414.          */
  415.  
  416. #define NELOG_Wksta_SSIRelogon          (ERRLOG_BASE + 67)
  417.         /*
  418.          * The workstation encountered an error while responding to an SSI revalidation request.
  419.          *  The function code and the error codes are the data.
  420.          */
  421.  
  422.  
  423.  
  424. /*
  425.  *      Alerter service specific error log messages from 70 to 79
  426.  */
  427.  
  428.  
  429. #define NELOG_Build_Name                (ERRLOG_BASE + 70)
  430.         /*
  431.          * The Alerter service had a problem creating the list of
  432.          * alert recipients.  The error code is %1.
  433.          */
  434.  
  435. #define NELOG_Name_Expansion            (ERRLOG_BASE + 71)
  436.         /*
  437.          * There was an error expanding %1 as a group name. Try
  438.          *  splitting the group into two or more smaller groups.
  439.          */
  440.  
  441.  
  442. #define NELOG_Message_Send              (ERRLOG_BASE + 72)
  443.         /*
  444.          * There was an error sending %2 the alert message -
  445.          *  (
  446.          *  %3 )
  447.          *  The error code is %1.
  448.          */
  449.  
  450.  
  451. #define NELOG_Mail_Slt_Err              (ERRLOG_BASE + 73)
  452.         /*
  453.          * There was an error in creating or reading the alerter mailslot.
  454.          *  The error code is %1.
  455.          */
  456.  
  457. #define NELOG_AT_cannot_read            (ERRLOG_BASE + 74)
  458.         /*
  459.          * The server could not read the AT schedule file.
  460.          */
  461.  
  462. #define NELOG_AT_sched_err              (ERRLOG_BASE + 75)
  463.         /*
  464.          * The server found an invalid AT schedule record.
  465.          */
  466.  
  467. #define NELOG_AT_schedule_file_created  (ERRLOG_BASE + 76)
  468.         /*
  469.          * The server could not find an AT schedule file so it created one.
  470.          */
  471.  
  472. #define NELOG_Srvnet_NB_Open            (ERRLOG_BASE + 77)
  473.         /*
  474.          * The server could not access the %1 network with NetBiosOpen.
  475.          */
  476.  
  477. #define NELOG_AT_Exec_Err               (ERRLOG_BASE + 78)
  478.         /*
  479.          * The AT command processor couldn't run %1.
  480.          */
  481.  
  482. /*
  483.  *      Cache Lazy Write and HPFS386 specific error log messages from 80 to 89
  484.  */
  485.  
  486. #define NELOG_Lazy_Write_Err            (ERRLOG_BASE + 80)
  487.         /*
  488.          * WARNING:  Because of a lazy-write error, drive %1 now
  489.          *  contains some corrupt data.  The cache is stopped.
  490.          */
  491.  
  492. #define NELOG_HotFix                    (ERRLOG_BASE + 81)
  493.         /*
  494.          * A defective sector on drive %1 has been replaced (hotfixed).
  495.          * No data was lost.  You should run CHKDSK soon to restore full
  496.          * performance and replenish the volume's spare sector pool.
  497.          *
  498.          * The hotfix occurred while processing a remote request.
  499.          */
  500.  
  501. #define NELOG_HardErr_From_Server       (ERRLOG_BASE + 82)
  502.         /*
  503.          * A disk error occurred on the HPFS volume in drive %1.
  504.          * The error occurred while processing a remote request.
  505.          */
  506.  
  507. #define NELOG_SrvNoResource             (ERRLOG_BASE + 86)
  508.         /*
  509.          * The server ran out of the following resource: %1
  510.          */
  511.  
  512. #define  NELOG_BadSpareB                (ERRLOG_BASE + 87)
  513.         /*
  514.          * A critical sector error was detected on drive %1.  Back up the drive.  No data was lost.
  515.          */
  516.  
  517. #define  NELOG_NoHotFix                 (ERRLOG_BASE + 88)
  518.         /*
  519.          * A bad sector on drive %1 cannot be fixed .  Run CHKDSK /F on the drive.
  520.          */
  521.  
  522. #define  NELOG_BadVolume                (ERRLOG_BASE + 89)
  523.         /*
  524.          * Drive %1 is experiencing severe disk errors.  Back up the drive immediately.
  525.          */
  526.  
  527. /*
  528.  *      NETWKSTA.SYS specific error log messages from 90 to 99
  529.  */
  530.  
  531. #define NELOG_NetWkSta_Internal_Error   (ERRLOG_BASE + 90)
  532.         /*
  533.          * A NetWksta internal error has occurred:
  534.          *  %1
  535.          */
  536.  
  537. #define NELOG_NetWkSta_No_Resource      (ERRLOG_BASE + 91)
  538.         /*
  539.          * The redirector is out of a resource: %1.
  540.          */
  541.  
  542. #define NELOG_NetWkSta_SMB_Err          (ERRLOG_BASE + 92)
  543.         /*
  544.          * An SMB error occurred on connection to %1.
  545.          *  The SMB header is the data.
  546.          */
  547.  
  548. #define NELOG_NetWkSta_VC_Err           (ERRLOG_BASE + 93)
  549.         /*
  550.          * A virtual circuit error occurred on the session to %1.
  551.          *  The NCB command and return code is the data.
  552.          */
  553.  
  554. #define NELOG_NetWkSta_Stuck_VC_Err     (ERRLOG_BASE + 94)
  555.         /*
  556.          * Hanging up a stuck session to %1.
  557.          */
  558.  
  559. #define NELOG_NetWkSta_NCB_Err          (ERRLOG_BASE + 95)
  560.         /*
  561.          * An NCB error occurred (%1).
  562.          *  The NCB is the data.
  563.          */
  564.  
  565. #define NELOG_NetWkSta_Write_Behind_Err (ERRLOG_BASE + 96)
  566.         /*
  567.          * A write operation to %1 failed.
  568.          *  Data may have been lost.
  569.          */
  570.  
  571. #define NELOG_NetWkSta_Reset_Err        (ERRLOG_BASE + 97)
  572.         /*
  573.          * Reset of driver %1 failed to complete the NCB.
  574.          *  The NCB is the data.
  575.          */
  576.  
  577. #define NELOG_NetWkSta_Too_Many         (ERRLOG_BASE + 98)
  578.         /*
  579.          * The amount of resource %1 requested was more
  580.          *  than the maximum. The maximum amount was allocated.
  581.          */
  582.  
  583. /*
  584.  *      Sideband specific error log messages from 99 to 101
  585.  */
  586.  
  587. #define NELOG_SB_Disabled               (ERRLOG_BASE + 99)
  588.  
  589.         /*
  590.          * Sideband transmissions have been disabled for the session
  591.          *  with server %1.
  592.          */
  593.  
  594. #define NELOG_SB_Reenabled              (ERRLOG_BASE + 100)
  595.  
  596.         /*
  597.          * Sideband transmissions have been re-enabled for the session
  598.          *  with server %1.
  599.          */
  600.  
  601. #define NELOG_SB_Not_Supported          (ERRLOG_BASE + 101)
  602.  
  603.         /*
  604.          * Sideband transmissions are not supported on %1 as defined in
  605.          *  IBMLAN.INI.
  606.          */
  607. /*
  608.  *      Spooler specific error log messages from 102 to 103
  609.  */
  610.  
  611. #define NELOG_Srv_Thread_Failure                (ERRLOG_BASE + 104)
  612.         /*
  613.          * The server could not create a thread.
  614.          *  The THREADS parameter in CONFIG.SYS should be increased.
  615.          */
  616.  
  617. #define NELOG_Srv_Close_Failure                 (ERRLOG_BASE + 105)
  618.         /*
  619.          * The server could not close %1.
  620.          *  The file is probably corrupt.
  621.          */
  622.  
  623. #define NELOG_ReplUserCurDir                   (ERRLOG_BASE + 106)
  624.     /*
  625.      *The replicator cannot update directory %1. It has tree integrity
  626.      * and is the current directory for some process.
  627.      */
  628.  
  629. #define NELOG_ReplCannotMasterDir               (ERRLOG_BASE + 107)
  630.     /*
  631.      *The server cannot export directory %1, to client %2.
  632.      * It is exported from another server.
  633.      */
  634.  
  635. #define NELOG_ReplUpdateError                   (ERRLOG_BASE + 108)
  636.     /*
  637.      *The replication server could not update directory %2 from the source
  638.      *on %3 due to error %1.
  639.      */
  640.  
  641. #define NELOG_ReplLostMaster                    (ERRLOG_BASE + 109)
  642.     /*
  643.      *Master %1 did not send an update notice for directory %2 at the expected
  644.      * time.
  645.      */
  646.  
  647. #define NELOG_NetlogonAuthDCFail                (ERRLOG_BASE + 110)
  648.     /*
  649.      *Failed to authenticate with %2, the domain controller for domain %1.
  650.      */
  651.  
  652. #define NELOG_ReplLogonFailed                   (ERRLOG_BASE + 111)
  653.     /*
  654.      *The replicator attempted to log on at %3 as %2 and failed.
  655.      */
  656.  
  657. #define NELOG_ReplNetErr                        (ERRLOG_BASE + 112)
  658.         /*
  659.          *  Network error %1 occurred.
  660.          */
  661.  
  662.  
  663.  
  664. #define NELOG_ReplMaxFiles                        (ERRLOG_BASE + 113)
  665.         /*
  666.          *  Replicator limit for files in a directory has been exceeded.
  667.          */
  668.  
  669.  
  670. #define NELOG_ReplMaxTreeDepth                    (ERRLOG_BASE + 114)
  671.         /*
  672.          *  Replicator limit for tree depth has been exceeded.
  673.          */
  674.  
  675.  
  676.  
  677. #define NELOG_ReplBadMsg                         (ERRLOG_BASE + 115)
  678.         /*
  679.          *  Unrecognized message received in mailslot.
  680.          */
  681.  
  682. #define NELOG_ReplSysErr                        (ERRLOG_BASE + 116)
  683.         /*
  684.          *  System error %1 occurred.
  685.          */
  686.  
  687. #define NELOG_ReplUserLoged                      (ERRLOG_BASE + 117)
  688.         /*
  689.          *  Cannot log on. User is currently logged on and argument TRYUSER
  690.          *  is set to NO.
  691.          */
  692.  
  693. #define NELOG_ReplBadImport                       (ERRLOG_BASE + 118)
  694.         /*
  695.          *  IMPORT path %1 cannot be found.
  696.          */
  697.  
  698.  
  699. #define NELOG_ReplBadExport                       (ERRLOG_BASE + 119)
  700.         /*
  701.          *  EXPORT path %1 cannot be found.
  702.          */
  703.  
  704.  
  705. #define NELOG_ReplSignalFileErr                   (ERRLOG_BASE + 120)
  706.         /*
  707.          *  Replicator failed to update signal file in directory %2 due to
  708.          *  %1 system error.
  709.          */
  710.  
  711.  
  712. #define NELOG_DiskFT                            (ERRLOG_BASE+121)
  713.         /*
  714.          * Disk Fault Tolerance Error
  715.          *
  716.          *%1
  717.          */
  718.  
  719. #define NELOG_ReplAccessDenied                   (ERRLOG_BASE + 122)
  720.         /*
  721.          *  Replicator could not access %2
  722.          *  on %3 due to %1 system error.
  723.          */
  724.  
  725. #define NELOG_NetlogonFailedPrimary              (ERRLOG_BASE + 123)
  726.     /*
  727.      *The primary domain controller for domain %1 has apparently failed.
  728.      */
  729.  
  730. #define NELOG_NetlogonPasswdSetFailed (ERRLOG_BASE + 124)
  731.     /*
  732.      * Error in changing this machine's password.
  733.      */
  734.  
  735. #define NELOG_NetlogonTrackingError              (ERRLOG_BASE + 125)
  736.     /*
  737.      *Error in updating the logon or logoff information for %1.
  738.      */
  739.  
  740. #define NELOG_NetlogonSyncError                  (ERRLOG_BASE + 126)
  741.     /*
  742.      *Error in synchronizing with primary domain controller %1
  743.      */
  744.  
  745. #define NELOG_BadReplIniParm                     (ERRLOG_BASE + 127)
  746.     /*
  747.      * The replicator detected the following invalid parameter in
  748.      *  REPL.INI in subdirectory %1 : %2
  749.      */
  750. #define NELOG_ReplUpdateACL                     (ERRLOG_BASE + 128)
  751.     /*
  752.      * The following error occured while updating the access control
  753.      * profile for %1
  754.      */
  755. /*
  756.  *      UPS service specific error log messages from 130 to 135
  757.  */
  758.  
  759. #define NELOG_UPS_Shutdown              (ERRLOG_BASE + 131)
  760.         /*
  761.          * The UPS service performed server shutdown.
  762.          */
  763.  
  764. #define NELOG_UPS_CmdFileError          (ERRLOG_BASE + 132)
  765.         /*
  766.          * The UPS service did not complete execution of the
  767.          * user specified shutdown command file.
  768.          */
  769.  
  770. #define NELOG_UPS_CannotOpenDriver      (ERRLOG_BASE+133)
  771.         /* The UPS driver could not be opened.  The error code is
  772.          * the data.
  773.          */
  774.  
  775. #define NELOG_UPS_LowBattery            (ERRLOG_BASE + 134)
  776.         /*
  777.          * Low battery detected.
  778.          */
  779.  
  780. /*
  781.  *      HPFS386 'Out of Resource' messages from 135 to 143
  782.  *
  783.  */
  784. #define NELOG_R0SV_NO_RAM_WORKBUF        (ERRLOG_BASE + 135)
  785.         /*
  786.          * RAM for 64Kb work buffer
  787.          */
  788.  
  789. #define NELOG_R0SV_NO_RAM_HEAP           (ERRLOG_BASE + 136)
  790.         /*
  791.          * RAM for heap expansion
  792.          */
  793.  
  794. #define NELOG_R0SV_NO_RAM_HANDLE_TBL     (ERRLOG_BASE + 137)
  795.         /*
  796.          * RAM for file handle table growth
  797.          */
  798.  
  799. #define NELOG_R0SV_NO_CONNECTIONS        (ERRLOG_BASE + 138)
  800.         /*
  801.          * LAN connections
  802.          */
  803.  
  804. #define NELOG_R0SV_NO_OPEN_FILE_HANDLES  (ERRLOG_BASE + 139)
  805.         /*
  806.          * Open file handles
  807.          */
  808.  
  809. #define NELOG_R0SV_NO_SEARCH_HANDLES     (ERRLOG_BASE + 140)
  810.         /*
  811.          * Search handles
  812.          */
  813.  
  814. #define NELOG_R0SV_NO_FIND_HANDLES       (ERRLOG_BASE + 141)
  815.         /*
  816.          * Find handles
  817.          */
  818.  
  819. #define NELOG_R0SV_NO_WORKBUF            (ERRLOG_BASE + 142)
  820.         /*
  821.          * 64Kb work buffers
  822.          */
  823.  
  824. #define NELOG_R0SV_NO_HEAP               (ERRLOG_BASE + 143)
  825.         /*
  826.          * Heap space
  827.          */
  828.  
  829. #define NELOG_R0SV_NO_RAM_RABUF          (ERRLOG_BASE + 144)
  830.         /*
  831.          * RAM for 64KB read-ahead buffer
  832.          */
  833.  
  834. /*
  835.  *      Multimedia, Isochronous LAN and Bandwidth Management from 145 to 149
  836.  */
  837.  
  838. #define NELOG_BM_GenFailure             (ERRLOG_BASE + 145)
  839.         /*
  840.          * A bandwidth management error occurred. The error is the data %1.
  841.          */
  842.  
  843. #define NELOG_BM_SessFailure             (ERRLOG_BASE +146)
  844.         /*
  845.          *  A bandwidth management error occurred on the session to %1.
  846.          *  The error is the data %2.
  847.          */
  848.  
  849. #define NELOG_R0SV_NO_RABUF              (ERRLOG_BASE + 147)
  850.         /*
  851.          * 64KB read-ahead buffers
  852.          */
  853.  
  854.  
  855. /*
  856.  *      Remote boot server specific error log messages are from 150 to 164
  857.  */
  858.  
  859. #define NELOG_Missing_Parameter         (ERRLOG_BASE + 150)
  860.         /*
  861.          * Initialization failed because of an invalid or missing
  862.          *  parameter in IBMLAN.INI: %1.
  863.          */
  864.  
  865. #define NELOG_Invalid_Config_Line       (ERRLOG_BASE + 151)
  866.         /*
  867.          * Initialization failed because of an invalid line in the
  868.          *  configuration file %1. The invalid line is the data.
  869.          */
  870.  
  871. #define NELOG_Invalid_Config_File       (ERRLOG_BASE + 152)
  872.         /*
  873.          * Initialization failed because of an error in the configuration
  874.          *  file %1.
  875.          */
  876.  
  877. #define NELOG_File_Changed              (ERRLOG_BASE + 153)
  878.         /*
  879.          * The file %1 has been changed after initialization.
  880.          *  The boot block loading was temporarily terminated.
  881.          */
  882.  
  883. #define NELOG_Files_Dont_Fit            (ERRLOG_BASE + 154)
  884.         /*
  885.          * The files do not fit to the 'boot' block configuration
  886.          *  file %1. Change BASE and ORG definitions or the order
  887.          *  of the files.
  888.          */
  889.  
  890. #define NELOG_Wrong_DLL_Version         (ERRLOG_BASE + 155)
  891.         /*
  892.          * Initialization failed because the dynamic link
  893.          *  library %1 returned a wrong version number.
  894.          */
  895.  
  896. #define NELOG_Error_in_DLL              (ERRLOG_BASE + 156)
  897.         /*
  898.          * There was an unrecoverable error in the dynamic
  899.          *  link library of the service.
  900.          */
  901.  
  902. #define NELOG_System_Error              (ERRLOG_BASE + 157)
  903.         /*
  904.          * The system returned an unexpected error code.
  905.          *  The error code is the data.
  906.          */
  907.  
  908. #define NELOG_FT_ErrLog_Too_Large (ERRLOG_BASE + 158)
  909.         /*
  910.          * The fault-tolerance error log file, LANROOT\LOGS\FT.LOG
  911.          *  is more than 64K.
  912.          */
  913.  
  914. #define NELOG_FT_Update_In_Progress (ERRLOG_BASE + 159)
  915.         /*
  916.          * The fault-tolerance error-log file, LANROOT\LOGS\FT.LOG, had the
  917.          * update in progress bit set upon opening, which means that the
  918.          * system crashed while working on the errorlog.
  919.          */
  920.  
  921. #define NELOG_DCDBChecksumError         (ERRLOG_BASE+165)
  922.         /*
  923.          * A checksum error occurred when accessing the domain control
  924.          * database file %1.
  925.          */
  926.  
  927. #define NELOG_DCDBIOError               (ERRLOG_BASE+166)
  928.         /*
  929.          * An error occurred when reading from or writing to the
  930.          * domain control database file %1.
  931.          */
  932.  
  933. #define NELOG_DCDBFileNotFound          (ERRLOG_BASE+167)
  934.         /*
  935.          * The domain control database file %1 was not found.
  936.          */
  937.  
  938. #define  NELOG_DirAlerts_Threshold                (ERRLOG_BASE+168)
  939.         /*
  940.          * The write operation was successful, but the size of directory %1
  941.          * crossed a threshold.  The remaining space in the directory is %2 KB.
  942.          *
  943.          * (%1 is the directory name)
  944.          */
  945.  
  946. #define  NELOG_DirAlerts_DirFull                  (ERRLOG_BASE+169)
  947.         /*
  948.          * There was not enough space within directory %1 to perform a write
  949.          * operation.
  950.          *
  951.          * (%1 is the directory name)
  952.          */
  953.  
  954. #define  NELOG_DirAlerts_FatalError               (ERRLOG_BASE+170)
  955.         /*
  956.          * The server encountered an error while initializing internal
  957.          * data structures.  The server uses these structures to process
  958.          * alerts that pertain to directory limits.  The server will not post
  959.          * alerts.  The OS/2 return code is %1.
  960.          */
  961.  
  962. #define  NELOG_DirAlerts_IniFailure               (ERRLOG_BASE+171)
  963.          /*
  964.           * The server encountered an error while initializing internal
  965.           * data structures.  The server uses these structures to process
  966.           * alerts that pertain to directory limits.  The server will now
  967.           * use its own default values.  The INI file in use is %1.  The
  968.           * return code is %2.
  969.           */
  970.  
  971. #define NELOG_DirAlerts_NoAlerts                   (ERRLOG_BASE+172)
  972.         /*
  973.          * An error occurred as the server attempted to send a message
  974.          * concerning a directory limit.  No message was sent.  The OS/2
  975.          * return code is %1.
  976.          */
  977.  
  978. #define  NELOG_DlimNoHeap                         (ERRLOG_BASE+173)
  979.         /*
  980.          * The 386 HPFS server failed to enable directory limits on drive
  981.          * %1 because of insufficient heap space.  The drive is still
  982.          * operational.
  983.          */
  984.  
  985. #define  NELOG_DlimDskErr                         (ERRLOG_BASE+174)
  986.         /*
  987.          * The 386 HPFS server failed to enable directory limits
  988.          * on drive %1 because of a disk error.  The drive is still
  989.          * operational.
  990.          */
  991.  
  992. #define  NELOG_DirAlerts_BadIniParm               (ERRLOG_BASE+175)
  993.         /*
  994.          * The server detected a parameterin the INI file %1 that is not
  995.          * valid.  The parameter is:  %2.
  996.          */
  997.  
  998. #define  NELOG_DirAlerts_BadIniSyntax             (ERRLOG_BASE+176)
  999.         /*
  1000.          * The server detected a parameter in the INI file %1 that does
  1001.          * not have a valid syntax.  The parameter is %2.
  1002.          */
  1003.  
  1004. #define  NELOG_DirAlerts_BadDrive                 (ERRLOG_BASE+177)
  1005.         /*
  1006.          * The server detected and ignored a drive letter that is not valid
  1007.          * within a parameter in the INI file %1.  The parameter is %2.
  1008.          */
  1009.  
  1010. /****************************************************************
  1011.  * Microsoft has created a generic error log entry for OEMs to use to
  1012.  * log errors from OEM value added services.  The code, which is the
  1013.  * 2nd arg to NetErrorLogWrite, is 3299.  This value is manifest in
  1014.  * NET/H/ERRLOG.H as NELOG_OEM_Code.  The text for error log entry
  1015.  * NELOG_OEM_Code is:  "%1 %2 %3 %4 %5 %6 %7 %8 %9.".
  1016.  *
  1017.  * Microsoft suggests that OEMs use the insertion strings as follows:
  1018.  * %1:  OEM System Name (e.g. 3+Open)
  1019.  * %2:  OEM Service Name (e.g. 3+Mail)
  1020.  * %3:  Severity level (e.g.  error, warning, etc.)
  1021.  * %4:  OEM error log entry sub-identifier  (e.g. error code #)
  1022.  * %5 - % 9:  Text.
  1023.  *
  1024.  * The call to NetErrorWrite must set nstrings = 9, and provide 9
  1025.  * ASCIIZ strings.  If the caller does not have 9 insertion strings,
  1026.  * provide null strings for the empty insertion strings.
  1027.  ****************************************************************/
  1028.  
  1029. #define NELOG_OEM_Code                          (ERRLOG_BASE + 199)
  1030.         /*
  1031.          * %1 %2 %3 %4 %5 %6 %7 %8 %9.
  1032.          */
  1033.  
  1034.  
  1035. #pragma pack()
  1036.  
  1037. #endif /* NETERRLOG_INCLUDED */
  1038.