home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / lansystk.zip / INCLUDE / LANSERV / ERRLOG.H < prev    next >
C/C++ Source or Header  |  1998-05-08  |  36KB  |  1,051 lines

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