home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / warphead.zip / H / ERRLOG.H < prev    next >
C/C++ Source or Header  |  1997-09-05  |  35KB  |  1,036 lines

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