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

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