home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / sdk / winh / winnt / lmerrlog.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-11  |  37.1 KB  |  1,244 lines

  1. /*++ BUILD Version: 0002    // Increment this if a change has global effects
  2.  
  3. Copyright (c) 1991-1995  Microsoft Corporation
  4.  
  5. Module Name:
  6.  
  7.     lmerrlog.h
  8.  
  9. Abstract:
  10.  
  11.     This module defines the API function prototypes and data structures
  12.     for the following groups of NT API functions:
  13.         NetErrorLog
  14.  
  15. Environment:
  16.  
  17.     User Mode - Win32
  18.  
  19. Notes:
  20.  
  21.     You must include NETCONS.H before this file, since this file depends
  22.     on values defined in NETCONS.H.
  23.  
  24. --*/
  25.  
  26. #ifndef _LMERRLOG_
  27. #define _LMERRLOG_
  28.  
  29. //
  30. // Data Structures - Config
  31. //
  32.  
  33. typedef struct _ERROR_LOG {
  34.      DWORD          el_len;
  35.      DWORD          el_reserved;
  36.      DWORD          el_time;
  37.      DWORD          el_error;
  38.      LPTSTR         el_name;             // pointer to service name
  39.      LPTSTR         el_text;             // pointer to string array
  40.      LPBYTE         el_data;             // pointer to BYTE array
  41.      DWORD          el_data_size;        // byte count of el_data area
  42.      DWORD          el_nstrings;         // number of strings in el_text.
  43. } ERROR_LOG, *PERROR_LOG, *LPERROR_LOG;
  44.  
  45.  
  46. // BUGBUG: Temporary to let users ifdef on this struct layout.
  47. #define REVISED_ERROR_LOG_STRUCT
  48.  
  49.  
  50. #ifndef _LMHLOGDEFINED_
  51. #define _LMHLOGDEFINED_
  52.  
  53. typedef struct _HLOG {
  54.      DWORD          time;
  55.      DWORD          last_flags;
  56.      DWORD          offset;
  57.      DWORD          rec_offset;
  58. } HLOG, *PHLOG, *LPHLOG;
  59.  
  60. #define LOGFLAGS_FORWARD    0
  61. #define LOGFLAGS_BACKWARD   0x1
  62. #define LOGFLAGS_SEEK       0x2
  63.  
  64. #endif
  65.  
  66. //
  67. // Function Prototypes - ErrorLog
  68. //
  69.  
  70. NET_API_STATUS NET_API_FUNCTION
  71. NetErrorLogClear (
  72.     IN LPTSTR server,
  73.     IN LPTSTR backupfile,
  74.     IN LPBYTE reserved
  75.     );
  76.  
  77. NET_API_STATUS NET_API_FUNCTION
  78. NetErrorLogRead (
  79.     IN LPTSTR server,
  80.     IN LPTSTR reserved1,
  81.     IN LPHLOG errloghandle,
  82.     IN DWORD offset,
  83.     IN LPDWORD reserved2,
  84.     IN DWORD reserved3,
  85.     IN DWORD offsetflag,
  86.     OUT LPBYTE * bufptr,
  87.     IN DWORD prefmaxlen,
  88.     OUT LPDWORD bytesread,
  89.     OUT LPDWORD totalbytes
  90.     );
  91.  
  92. NET_API_STATUS NET_API_FUNCTION
  93. NetErrorLogWrite (
  94.     IN LPBYTE reserved1,
  95.     IN DWORD code,
  96.     IN LPTSTR component,
  97.     IN LPBYTE buffer,
  98.     IN DWORD numbytes,
  99.     IN LPBYTE msgbuf,
  100.     IN DWORD strcount,
  101.     IN LPBYTE reserved2
  102.     );
  103.  
  104. //
  105. // Special Values and Constants
  106. //
  107.  
  108.  
  109. //
  110. //  Generic (could be used by more than one service)
  111. //   error log messages from 0 to 25
  112. //
  113. // Do not change the comments following the manifest constants without
  114. // understanding how mapmsg works.
  115. //
  116.  
  117. #define ERRLOG_BASE 3100        /* NELOG errors start here */
  118.  
  119. #define NELOG_Internal_Error        (ERRLOG_BASE + 0)
  120.     /*
  121.     * The operation failed because a network software error occurred.
  122.     */
  123.  
  124. #define NELOG_Resource_Shortage     (ERRLOG_BASE + 1)
  125.     /*
  126.     * The system ran out of a resource controlled by the %1 option.
  127.     */
  128.  
  129. #define NELOG_Unable_To_Lock_Segment    (ERRLOG_BASE + 2)
  130.     /*
  131.     * The service failed to obtain a long-term lock on the
  132.     *  segment for network control blocks (NCBs). The error code is the data.
  133.     */
  134.  
  135. #define NELOG_Unable_To_Unlock_Segment  (ERRLOG_BASE + 3)
  136.     /*
  137.     * The service failed to release the long-term lock on the
  138.     *  segment for network control blocks (NCBs). The error code is the data.
  139.     */
  140.  
  141. #define NELOG_Uninstall_Service     (ERRLOG_BASE + 4)
  142.     /*
  143.     * There was an error stopping service %1.
  144.     *  The error code from NetServiceControl is the data.
  145.     */
  146.  
  147. #define NELOG_Init_Exec_Fail        (ERRLOG_BASE + 5)
  148.     /*
  149.     * Initialization failed because of a system execution failure on
  150.     *  path %1. The system error code is the data.
  151.     */
  152.  
  153. #define NELOG_Ncb_Error         (ERRLOG_BASE + 6)
  154.     /*
  155.     * An unexpected network control block (NCB) was received. The NCB is the data.
  156.     */
  157.  
  158. #define NELOG_Net_Not_Started       (ERRLOG_BASE + 7)
  159.     /*
  160.     * The network is not started.
  161.     */
  162.  
  163. #define NELOG_Ioctl_Error       (ERRLOG_BASE + 8)
  164.     /*
  165.     * A DosDevIoctl or DosFsCtl to NETWKSTA.SYS failed.
  166.     * The data shown is in this format:
  167.     *     DWORD  approx CS:IP of call to ioctl or fsctl
  168.     *     WORD   error code
  169.     *     WORD   ioctl or fsctl number
  170.     */
  171.  
  172. #define NELOG_System_Semaphore      (ERRLOG_BASE + 9)
  173.     /*
  174.     * Unable to create or open system semaphore %1.
  175.     *  The error code is the data.
  176.     */
  177.  
  178. #define NELOG_Init_OpenCreate_Err   (ERRLOG_BASE + 10)
  179.     /*
  180.     * Initialization failed because of an open/create error on the
  181.     *  file %1. The system error code is the data.
  182.     */
  183.  
  184. #define NELOG_NetBios           (ERRLOG_BASE + 11)
  185.     /*
  186.     * An unexpected NetBIOS error occurred.
  187.     *  The error code is the data.
  188.     */
  189.  
  190. #define NELOG_SMB_Illegal       (ERRLOG_BASE + 12)
  191.     /*
  192.     * An illegal server message block (SMB) was received.
  193.     *  The SMB is the data.
  194.     */
  195.  
  196. #define NELOG_Service_Fail      (ERRLOG_BASE + 13)
  197.     /*
  198.     * Initialization failed because the requested service %1
  199.     *  could not be started.
  200.    */
  201.  
  202. #define NELOG_Entries_Lost      (ERRLOG_BASE + 14)
  203.     /*
  204.     * Some entries in the error log were lost because of a buffer
  205.     * overflow.
  206.     */
  207.  
  208.  
  209. //
  210. //  Server specific error log messages from 20 to 40
  211. //
  212.  
  213. #define NELOG_Init_Seg_Overflow     (ERRLOG_BASE + 20)
  214.     /*
  215.     * Initialization parameters controlling resource usage other
  216.     *  than net buffers are sized so that too much memory is needed.
  217.     */
  218.  
  219. #define NELOG_Srv_No_Mem_Grow       (ERRLOG_BASE + 21)
  220.     /*
  221.     * The server cannot increase the size of a memory segment.
  222.     */
  223.  
  224. #define NELOG_Access_File_Bad       (ERRLOG_BASE + 22)
  225.     /*
  226.     * Initialization failed because account file %1 is either incorrect
  227.     * or not present.
  228.     */
  229.  
  230. #define NELOG_Srvnet_Not_Started    (ERRLOG_BASE + 23)
  231.     /*
  232.     * Initialization failed because network %1 was not started.
  233.     */
  234.  
  235. #define NELOG_Init_Chardev_Err      (ERRLOG_BASE + 24)
  236.     /*
  237.     * The server failed to start. Either all three chdev
  238.     *  parameters must be zero or all three must be nonzero.
  239.     */
  240.  
  241. #define NELOG_Remote_API        (ERRLOG_BASE + 25)
  242.     /* A remote API request was halted due to the following
  243.     * invalid description string: %1.
  244.     */
  245.  
  246. #define NELOG_Ncb_TooManyErr        (ERRLOG_BASE + 26)
  247.     /* The network %1 ran out of network control blocks (NCBs).  You may need to increase NCBs
  248.     * for this network.  The following information includes the
  249.     * number of NCBs submitted by the server when this error occurred:
  250.     */
  251.  
  252. #define NELOG_Mailslot_err      (ERRLOG_BASE + 27)
  253.     /* The server cannot create the %1 mailslot needed to send
  254.     * the ReleaseMemory alert message.  The error received is:
  255.     */
  256.  
  257. #define NELOG_ReleaseMem_Alert      (ERRLOG_BASE + 28)
  258.     /* The server failed to register for the ReleaseMemory alert,
  259.     * with recipient %1. The error code from
  260.     * NetAlertStart is the data.
  261.     */
  262.  
  263. #define NELOG_AT_cannot_write       (ERRLOG_BASE + 29)
  264.     /* The server cannot update the AT schedule file. The file
  265.     * is corrupted.
  266.     */
  267.  
  268. #define NELOG_Cant_Make_Msg_File    (ERRLOG_BASE + 30)
  269.     /* The server encountered an error when calling
  270.     * NetIMakeLMFileName. The error code is the data.
  271.     */
  272.  
  273. #define NELOG_Exec_Netservr_NoMem   (ERRLOG_BASE + 31)
  274.     /* Initialization failed because of a system execution failure on
  275.     * path %1. There is not enough memory to start the process.
  276.     * The system error code is the data.
  277.     */
  278.  
  279. #define NELOG_Server_Lock_Failure   (ERRLOG_BASE + 32)
  280.     /* Longterm lock of the server buffers failed.
  281.     * Check swap disk's free space and restart the system to start the server.
  282.     */
  283.  
  284. //
  285. //  Message service and POPUP specific error log messages from 40 to 55
  286. //
  287.  
  288. #define NELOG_Msg_Shutdown      (ERRLOG_BASE + 40)
  289.     /*
  290.     * The service has stopped due to repeated consecutive
  291.     *  occurrences of a network control block (NCB) error.  The last bad NCB follows
  292.     *  in raw data.
  293.     */
  294.  
  295. #define NELOG_Msg_Sem_Shutdown      (ERRLOG_BASE + 41)
  296.     /*
  297.     * The Message server has stopped due to a lock on the
  298.     *  Message server shared data segment.
  299.     */
  300.  
  301. #define NELOG_Msg_Log_Err       (ERRLOG_BASE + 50)
  302.     /*
  303.     * A file system error occurred while opening or writing to the
  304.     *  system message log file %1. Message logging has been
  305.     *  switched off due to the error. The error code is the data.
  306.     */
  307.  
  308.  
  309.  
  310. #define NELOG_VIO_POPUP_ERR     (ERRLOG_BASE + 51)
  311.     /*
  312.     * Unable to display message POPUP due to system VIO call error.
  313.     *  The error code is the data.
  314.     */
  315.  
  316. #define NELOG_Msg_Unexpected_SMB_Type   (ERRLOG_BASE + 52)
  317.     /*
  318.     * An illegal server message block (SMB) was received.  The SMB is the data.
  319.     */
  320.  
  321. //
  322. //  Workstation specific error log messages from 60 to 75
  323. //
  324.  
  325.  
  326. #define NELOG_Wksta_Infoseg     (ERRLOG_BASE + 60)
  327.     /*
  328.     * The workstation information segment is bigger than 64K.
  329.     *  The size follows, in DWORD format:
  330.     */
  331.  
  332. #define NELOG_Wksta_Compname        (ERRLOG_BASE + 61)
  333.     /*
  334.     * The workstation was unable to get the name-number of the computer.
  335.     */
  336.  
  337. #define NELOG_Wksta_BiosThreadFailure   (ERRLOG_BASE + 62)
  338.     /*
  339.     * The workstation could not initialize the Async NetBIOS Thread.
  340.     *  The error code is the data.
  341.     */
  342.  
  343. #define NELOG_Wksta_IniSeg      (ERRLOG_BASE + 63)
  344.     /*
  345.     * The workstation could not open the initial shared segment.
  346.     *  The error code is the data.
  347.     */
  348.  
  349. #define NELOG_Wksta_HostTab_Full    (ERRLOG_BASE + 64)
  350.     /*
  351.     * The workstation host table is full.
  352.     */
  353.  
  354. #define NELOG_Wksta_Bad_Mailslot_SMB    (ERRLOG_BASE + 65)
  355.     /*
  356.     * A bad mailslot server message block (SMB) was received.  The SMB is the data.
  357.     */
  358.  
  359. #define NELOG_Wksta_UASInit     (ERRLOG_BASE + 66)
  360.     /*
  361.     * The workstation encountered an error while trying to start the user accounts database.
  362.     *  The error code is the data.
  363.     */
  364.  
  365. #define NELOG_Wksta_SSIRelogon      (ERRLOG_BASE + 67)
  366.     /*
  367.     * The workstation encountered an error while responding to an SSI revalidation request.
  368.     *  The function code and the error codes are the data.
  369.     */
  370.  
  371. //
  372. //  Alerter service specific error log messages from 70 to 79
  373. //
  374.  
  375.  
  376. #define NELOG_Build_Name        (ERRLOG_BASE + 70)
  377.     /*
  378.     * The Alerter service had a problem creating the list of
  379.     * alert recipients.  The error code is %1.
  380.     */
  381.  
  382. #define NELOG_Name_Expansion        (ERRLOG_BASE + 71)
  383.     /*
  384.     * There was an error expanding %1 as a group name. Try
  385.     *  splitting the group into two or more smaller groups.
  386.     */
  387.  
  388. #define NELOG_Message_Send      (ERRLOG_BASE + 72)
  389.     /*
  390.     * There was an error sending %2 the alert message -
  391.     *  (
  392.     *  %3 )
  393.     *  The error code is %1.
  394.     */
  395.  
  396. #define NELOG_Mail_Slt_Err      (ERRLOG_BASE + 73)
  397.     /*
  398.     * There was an error in creating or reading the alerter mailslot.
  399.     *  The error code is %1.
  400.     */
  401.  
  402. #define NELOG_AT_cannot_read        (ERRLOG_BASE + 74)
  403.     /*
  404.     * The server could not read the AT schedule file.
  405.     */
  406.  
  407. #define NELOG_AT_sched_err      (ERRLOG_BASE + 75)
  408.     /*
  409.     * The server found an invalid AT schedule record.
  410.     */
  411.  
  412. #define NELOG_AT_schedule_file_created  (ERRLOG_BASE + 76)
  413.     /*
  414.     * The server could not find an AT schedule file so it created one.
  415.     */
  416.  
  417. #define NELOG_Srvnet_NB_Open        (ERRLOG_BASE + 77)
  418.     /*
  419.     * The server could not access the %1 network with NetBiosOpen.
  420.     */
  421.  
  422. #define NELOG_AT_Exec_Err       (ERRLOG_BASE + 78)
  423.     /*
  424.     * The AT command processor could not run %1.
  425.    */
  426.  
  427. //
  428. //      Cache Lazy Write and HPFS386 specific error log messages from 80 to 89
  429. //
  430.  
  431. #define NELOG_Lazy_Write_Err            (ERRLOG_BASE + 80)
  432.         /*
  433.         * WARNING:  Because of a lazy-write error, drive %1 now
  434.         *  contains some corrupted data.  The cache is stopped.
  435.         */
  436.  
  437. #define NELOG_HotFix            (ERRLOG_BASE + 81)
  438.     /*
  439.     * A defective sector on drive %1 has been replaced (hotfixed).
  440.     * No data was lost.  You should run CHKDSK soon to restore full
  441.     * performance and replenish the volume's spare sector pool.
  442.     *
  443.     * The hotfix occurred while processing a remote request.
  444.     */
  445.  
  446. #define NELOG_HardErr_From_Server   (ERRLOG_BASE + 82)
  447.     /*
  448.     * A disk error occurred on the HPFS volume in drive %1.
  449.     * The error occurred while processing a remote request.
  450.     */
  451.  
  452. #define NELOG_LocalSecFail1 (ERRLOG_BASE + 83)
  453.     /*
  454.     * The user accounts database (NET.ACC) is corrupted.  The local security
  455.     * system is replacing the corrupted NET.ACC with the backup
  456.     * made at %1.
  457.     * Any updates made to the database after this time are lost.
  458.     *
  459.     */
  460.  
  461. #define NELOG_LocalSecFail2 (ERRLOG_BASE + 84)
  462.     /*
  463.     * The user accounts database (NET.ACC) is missing.  The local
  464.     * security system is restoring the backup database
  465.     * made at %1.
  466.     * Any updates made to the database made after this time are lost.
  467.     *
  468.     */
  469.  
  470. #define NELOG_LocalSecFail3 (ERRLOG_BASE + 85)
  471.     /*
  472.     * Local security could not be started because the user accounts database
  473.     * (NET.ACC) was missing or corrupted, and no usable backup
  474.     * database was present.
  475.     *
  476.     * THE SYSTEM IS NOT SECURE.
  477.     */
  478.  
  479. #define NELOG_LocalSecGeneralFail   (ERRLOG_BASE + 86)
  480.     /*
  481.     * Local security could not be started because an error
  482.     * occurred during initialization. The error code returned is %1.
  483.     *
  484.     * THE SYSTEM IS NOT SECURE.
  485.     *
  486.     */
  487.  
  488. //
  489. //  NETWKSTA.SYS specific error log messages from 90 to 99
  490. //
  491.  
  492. #define NELOG_NetWkSta_Internal_Error   (ERRLOG_BASE + 90)
  493.     /*
  494.     * A NetWksta internal error has occurred:
  495.     *  %1
  496.     */
  497.  
  498. #define NELOG_NetWkSta_No_Resource  (ERRLOG_BASE + 91)
  499.     /*
  500.     * The redirector is out of a resource: %1.
  501.     */
  502.  
  503. #define NELOG_NetWkSta_SMB_Err      (ERRLOG_BASE + 92)
  504.     /*
  505.     * A server message block (SMB) error occurred on the connection to %1.
  506.     *  The SMB header is the data.
  507.     */
  508.  
  509. #define NELOG_NetWkSta_VC_Err       (ERRLOG_BASE + 93)
  510.     /*
  511.     * A virtual circuit error occurred on the session to %1.
  512.     *  The network control block (NCB) command and return code is the data.
  513.     */
  514.  
  515. #define NELOG_NetWkSta_Stuck_VC_Err (ERRLOG_BASE + 94)
  516.     /*
  517.     * Hanging up a stuck session to %1.
  518.     */
  519.  
  520. #define NELOG_NetWkSta_NCB_Err      (ERRLOG_BASE + 95)
  521.     /*
  522.     * A network control block (NCB) error occurred (%1).
  523.     *  The NCB is the data.
  524.     */
  525.  
  526. #define NELOG_NetWkSta_Write_Behind_Err (ERRLOG_BASE + 96)
  527.     /*
  528.     * A write operation to %1 failed.
  529.     *  Data may have been lost.
  530.     */
  531.  
  532. #define NELOG_NetWkSta_Reset_Err    (ERRLOG_BASE + 97)
  533.     /*
  534.     * Reset of driver %1 failed to complete the network control block (NCB).
  535.     *  The NCB is the data.
  536.     */
  537.  
  538. #define NELOG_NetWkSta_Too_Many     (ERRLOG_BASE + 98)
  539.     /*
  540.     * The amount of resource %1 requested was more
  541.     *  than the maximum. The maximum amount was allocated.
  542.     */
  543.  
  544. //
  545. //  Spooler specific error log messages from 100 to 103
  546. //
  547.  
  548. #define NELOG_Srv_Thread_Failure        (ERRLOG_BASE + 104)
  549.     /*
  550.     * The server could not create a thread.
  551.     *  The THREADS parameter in the CONFIG.SYS file should be increased.
  552.     */
  553.  
  554. #define NELOG_Srv_Close_Failure         (ERRLOG_BASE + 105)
  555.     /*
  556.     * The server could not close %1.
  557.     *  The file is probably corrupted.
  558.     */
  559.  
  560. #define NELOG_ReplUserCurDir               (ERRLOG_BASE + 106)
  561.     /*
  562.     *The replicator cannot update directory %1. It has tree integrity
  563.     * and is the current directory for some process.
  564.     */
  565.  
  566. #define NELOG_ReplCannotMasterDir       (ERRLOG_BASE + 107)
  567.     /*
  568.     *The server cannot export directory %1 to client %2.
  569.     * It is exported from another server.
  570.     */
  571.  
  572. #define NELOG_ReplUpdateError           (ERRLOG_BASE + 108)
  573.     /*
  574.     *The replication server could not update directory %2 from the source
  575.     * on %3 due to error %1.
  576.     */
  577.  
  578. #define NELOG_ReplLostMaster            (ERRLOG_BASE + 109)
  579.     /*
  580.     *Master %1 did not send an update notice for directory %2 at the expected
  581.     * time.
  582.     */
  583.  
  584. #define NELOG_NetlogonAuthDCFail        (ERRLOG_BASE + 110)
  585.     /*
  586.     *Failed to authenticate with %2, a Windows NT domain controller for domain %1.
  587.     */
  588.  
  589. #define NELOG_ReplLogonFailed           (ERRLOG_BASE + 111)
  590.     /*
  591.     *The replicator attempted to log on at %2 as %1 and failed.
  592.     */
  593.  
  594. #define NELOG_ReplNetErr            (ERRLOG_BASE + 112)
  595.     /*
  596.     *  Network error %1 occurred.
  597.     */
  598.  
  599. #define NELOG_ReplMaxFiles            (ERRLOG_BASE + 113)
  600.     /*
  601.     *  Replicator limit for files in a directory has been exceeded.
  602.     */
  603.  
  604.  
  605. #define NELOG_ReplMaxTreeDepth            (ERRLOG_BASE + 114)
  606.     /*
  607.     *  Replicator limit for tree depth has been exceeded.
  608.     */
  609.  
  610. #define NELOG_ReplBadMsg             (ERRLOG_BASE + 115)
  611.     /*
  612.     *  Unrecognized message received in mailslot.
  613.     */
  614.  
  615. #define NELOG_ReplSysErr            (ERRLOG_BASE + 116)
  616.     /*
  617.     *  System error %1 occurred.
  618.     */
  619.  
  620. #define NELOG_ReplUserLoged          (ERRLOG_BASE + 117)
  621.     /*
  622.     *  Cannot log on. User is currently logged on and argument TRYUSER
  623.     *  is set to NO.
  624.     */
  625.  
  626. #define NELOG_ReplBadImport           (ERRLOG_BASE + 118)
  627.     /*
  628.     *  IMPORT path %1 cannot be found.
  629.     */
  630.  
  631. #define NELOG_ReplBadExport           (ERRLOG_BASE + 119)
  632.     /*
  633.     *  EXPORT path %1 cannot be found.
  634.     */
  635.  
  636. #define NELOG_ReplSignalFileErr           (ERRLOG_BASE + 120)
  637.     /*
  638.     *  Replicator failed to update signal file in directory %2 due to
  639.     *  %1 system error.
  640.     */
  641.  
  642. #define NELOG_DiskFT                (ERRLOG_BASE+121)
  643.     /*
  644.     * Disk Fault Tolerance Error
  645.     *
  646.     * %1
  647.     */
  648.  
  649. #define NELOG_ReplAccessDenied           (ERRLOG_BASE + 122)
  650.     /*
  651.     *  Replicator could not access %2
  652.     *  on %3 due to system error %1.
  653.     */
  654.  
  655. #define NELOG_NetlogonFailedPrimary      (ERRLOG_BASE + 123)
  656.     /*
  657.     *The primary domain controller for domain %1 has apparently failed.
  658.     */
  659.  
  660. #define NELOG_NetlogonPasswdSetFailed (ERRLOG_BASE + 124)
  661.     /*
  662.     * Changing machine account password for account %1 failed with
  663.     * the following error: %n%2
  664.     */
  665.  
  666. #define NELOG_NetlogonTrackingError      (ERRLOG_BASE + 125)
  667.     /*
  668.     *An error occurred while updating the logon or logoff information for %1.
  669.     */
  670.  
  671. #define NELOG_NetlogonSyncError          (ERRLOG_BASE + 126)
  672.     /*
  673.     *An error occurred while synchronizing with primary domain controller %1
  674.     */
  675.  
  676. //
  677. //  UPS service specific error log messages from 130 to 135
  678. //
  679.  
  680. #define NELOG_UPS_PowerOut      (ERRLOG_BASE + 130)
  681.     /*
  682.     * A power failure was detected at the server.
  683.     */
  684.  
  685. #define NELOG_UPS_Shutdown      (ERRLOG_BASE + 131)
  686.     /*
  687.     * The UPS service performed server shut down.
  688.     */
  689.  
  690. #define NELOG_UPS_CmdFileError      (ERRLOG_BASE + 132)
  691.     /*
  692.     * The UPS service did not complete execution of the
  693.     * user specified shut down command file.
  694.     */
  695.  
  696. #define NELOG_UPS_CannotOpenDriver  (ERRLOG_BASE+133)
  697.     /*
  698.     * The UPS driver could not be opened.  The error code is
  699.     * the data.
  700.     */
  701.  
  702. #define NELOG_UPS_PowerBack     (ERRLOG_BASE + 134)
  703.     /*
  704.     * Power has been restored.
  705.     */
  706.  
  707. #define NELOG_UPS_CmdFileConfig     (ERRLOG_BASE + 135)
  708.     /*
  709.     * There is a problem with a configuration of user specified
  710.     * shut down command file.
  711.     */
  712.  
  713. #define NELOG_UPS_CmdFileExec       (ERRLOG_BASE + 136)
  714.     /*
  715.     * The UPS service failed to execute a user specified shutdown
  716.     * command file %1.  The error code is the data.
  717.     */
  718.  
  719. //
  720. //  Remoteboot server specific error log messages are from 150 to 157
  721. //
  722.  
  723. #define NELOG_Missing_Parameter     (ERRLOG_BASE + 150)
  724.     /*
  725.     * Initialization failed because of an invalid or missing
  726.     *  parameter in the configuration file %1.
  727.     */
  728.  
  729. #define NELOG_Invalid_Config_Line   (ERRLOG_BASE + 151)
  730.     /*
  731.     * Initialization failed because of an invalid line in the
  732.     *  configuration file %1. The invalid line is the data.
  733.     */
  734.  
  735. #define NELOG_Invalid_Config_File   (ERRLOG_BASE + 152)
  736.     /*
  737.     * Initialization failed because of an error in the configuration
  738.     *  file %1.
  739.     */
  740.  
  741. #define NELOG_File_Changed      (ERRLOG_BASE + 153)
  742.     /*
  743.     * The file %1 has been changed after initialization.
  744.     *  The boot-block loading was temporarily terminated.
  745.     */
  746.  
  747. #define NELOG_Files_Dont_Fit        (ERRLOG_BASE + 154)
  748.     /*
  749.     * The files do not fit to the boot-block configuration
  750.     * file %1. Change the BASE and ORG definitions or the order
  751.     * of the files.
  752.     */
  753.  
  754. #define NELOG_Wrong_DLL_Version     (ERRLOG_BASE + 155)
  755.     /*
  756.     * Initialization failed because the dynamic-link
  757.     *  library %1 returned an incorrect version number.
  758.     */
  759.  
  760. #define NELOG_Error_in_DLL      (ERRLOG_BASE + 156)
  761.     /*
  762.     * There was an unrecoverable error in the dynamic-
  763.     *  link library of the service.
  764.     */
  765.  
  766. #define NELOG_System_Error      (ERRLOG_BASE + 157)
  767.     /*
  768.     * The system returned an unexpected error code.
  769.     *  The error code is the data.
  770.     */
  771.  
  772. #define NELOG_FT_ErrLog_Too_Large (ERRLOG_BASE + 158)
  773.     /*
  774.     * The fault-tolerance error log file, LANROOT\LOGS\FT.LOG,
  775.     *  is more than 64K.
  776.     */
  777.  
  778. #define NELOG_FT_Update_In_Progress (ERRLOG_BASE + 159)
  779.     /*
  780.     * The fault-tolerance error-log file, LANROOT\LOGS\FT.LOG, had the
  781.     * update in progress bit set upon opening, which means that the
  782.     * system crashed while working on the error log.
  783.     */
  784.  
  785.  
  786. //
  787. // Microsoft has created a generic error log entry for OEMs to use to
  788. // log errors from OEM value added services.  The code, which is the
  789. // 2nd arg to NetErrorLogWrite, is 3299.  This value is manifest in
  790. // NET/H/ERRLOG.H as NELOG_OEM_Code.  The text for error log entry
  791. // NELOG_OEM_Code is:  "%1 %2 %3 %4 %5 %6 %7 %8 %9.".
  792. //
  793. // Microsoft suggests that OEMs use the insertion strings as follows:
  794. // %1:  OEM System Name (e.g. 3+Open)
  795. // %2:  OEM Service Name (e.g. 3+Mail)
  796. // %3:  Severity level (e.g.  error, warning, etc.)
  797. // %4:  OEM error log entry sub-identifier  (e.g. error code #)
  798. // %5 - % 9:  Text.
  799. //
  800. // The call to NetErrorWrite must set nstrings = 9, and provide 9
  801. // ASCIIZ strings.  If the caller does not have 9 insertion strings,
  802. // provide null strings for the empty insertion strings.
  803. //
  804.  
  805. #define NELOG_OEM_Code              (ERRLOG_BASE + 199)
  806.     /*
  807.     * %1 %2 %3 %4 %5 %6 %7 %8 %9.
  808.     */
  809.  
  810. //
  811. // another error log range defined for NT Lanman.
  812. //
  813.  
  814. #define ERRLOG2_BASE 5700        /* New NT NELOG errors start here */
  815.  
  816. #define NELOG_NetlogonSSIInitError              (ERRLOG2_BASE + 0)
  817.     /*
  818.      * The Netlogon service could not initialize the replication data
  819.      * structures successfully. The service was terminated.  The following
  820.      * error occurred: %n%1
  821.      */
  822.  
  823. #define NELOG_NetlogonFailedToUpdateTrustList   (ERRLOG2_BASE + 1)
  824.     /*
  825.      * The Netlogon service failed to update the domain trust list.  The
  826.      * following error occurred: %n%1
  827.      */
  828.  
  829. #define NELOG_NetlogonFailedToAddRpcInterface   (ERRLOG2_BASE + 2)
  830.     /*
  831.      * The Netlogon service could not add the RPC interface.  The
  832.      * service was terminated. The following error occurred: %n%1
  833.      */
  834.  
  835. #define NELOG_NetlogonFailedToReadMailslot      (ERRLOG2_BASE + 3)
  836.     /*
  837.      * The Netlogon service could not read a mailslot message from %1 due
  838.      * to the following error: %n%2
  839.      */
  840.  
  841. #define NELOG_NetlogonFailedToRegisterSC        (ERRLOG2_BASE + 4)
  842.     /*
  843.      * The Netlogon service failed to register the service with the
  844.      * service controller. The service was terminated. The following
  845.      * error occurred: %n%1
  846.      */
  847.  
  848. #define NELOG_NetlogonChangeLogCorrupt          (ERRLOG2_BASE + 5)
  849.     /*
  850.      * The change log cache maintained by the Netlogon service for
  851.      * database changes is corrupted. The Netlogon service is resetting
  852.      * the change log.
  853.      */
  854.  
  855. #define NELOG_NetlogonFailedToCreateShare       (ERRLOG2_BASE + 6)
  856.     /*
  857.      * The Netlogon service could not create server share %1.  The following
  858.      * error occurred: %n%2
  859.      */
  860.  
  861. #define NELOG_NetlogonDownLevelLogonFailed      (ERRLOG2_BASE + 7)
  862.     /*
  863.      * The down-level logon request for the user %1 from %2 failed.
  864.      */
  865.  
  866. #define NELOG_NetlogonDownLevelLogoffFailed     (ERRLOG2_BASE + 8)
  867.     /*
  868.      * The down-level logoff request for the user %1 from %2 failed.
  869.      */
  870.  
  871. #define NELOG_NetlogonNTLogonFailed             (ERRLOG2_BASE + 9)
  872.     /*
  873.      * The Windows NT %1 logon request for the user %2\%3 from %4 (via %5)
  874.      * failed.
  875.      */
  876.  
  877. #define NELOG_NetlogonNTLogoffFailed            (ERRLOG2_BASE + 10)
  878.     /*
  879.      * The Windows NT %1 logoff request for the user %2\%3 from %4
  880.      * failed.
  881.      */
  882.  
  883. #define NELOG_NetlogonPartialSyncCallSuccess    (ERRLOG2_BASE + 11)
  884.     /*
  885.      * The partial synchronization request from the server %1 completed
  886.      * successfully. %2 changes(s) has(have) been returned to the
  887.      * caller.
  888.      */
  889.  
  890. #define NELOG_NetlogonPartialSyncCallFailed     (ERRLOG2_BASE + 12)
  891.     /*
  892.      * The partial synchronization request from the server %1 failed with
  893.      * the following error: %n%2
  894.      */
  895.  
  896. #define NELOG_NetlogonFullSyncCallSuccess       (ERRLOG2_BASE + 13)
  897.     /*
  898.      * The full synchronization request from the server %1 completed
  899.      * successfully. %2 object(s) has(have) been returned to
  900.      * the caller.
  901.      */
  902.  
  903. #define NELOG_NetlogonFullSyncCallFailed        (ERRLOG2_BASE + 14)
  904.     /*
  905.      * The full synchronization request from the server %1 failed with
  906.      * the following error: %n%2
  907.      */
  908.  
  909. #define NELOG_NetlogonPartialSyncSuccess        (ERRLOG2_BASE + 15)
  910.     /*
  911.      * The partial synchronization replication of the %1 database from the
  912.      * primary domain controller %2 completed successfully. %3 change(s) is(are)
  913.      * applied to the database.
  914.      */
  915.  
  916.  
  917. #define NELOG_NetlogonPartialSyncFailed         (ERRLOG2_BASE + 16)
  918.     /*
  919.      * The partial synchronization replication of the %1 database from the
  920.      * primary domain controller %2 failed with the following error: %n%3
  921.      */
  922.  
  923. #define NELOG_NetlogonFullSyncSuccess           (ERRLOG2_BASE + 17)
  924.     /*
  925.      * The full synchronization replication of the %1 database from the
  926.      * primary domain controller %2 completed successfully.
  927.      */
  928.  
  929.  
  930. #define NELOG_NetlogonFullSyncFailed            (ERRLOG2_BASE + 18)
  931.     /*
  932.      * The full synchronization replication of the %1 database from the
  933.      * primary domain controller %2 failed with the following error: %n%3
  934.      */
  935.  
  936. #define NELOG_NetlogonAuthNoDomainController    (ERRLOG2_BASE + 19)
  937.     /*
  938.      *  No Windows NT Domain Controller is available for domain %1 for
  939.      *  the following reason: %n%2
  940.      */
  941.  
  942. #define NELOG_NetlogonAuthNoTrustLsaSecret      (ERRLOG2_BASE + 20)
  943.     /*
  944.      * The session setup to the Windows NT Domain Controller %1 for the domain %2
  945.      * failed because the computer %3 does not have a local security database account.
  946.      */
  947.  
  948. #define NELOG_NetlogonAuthNoTrustSamAccount     (ERRLOG2_BASE + 21)
  949.     /*
  950.      * The session setup to the Windows NT Domain Controller %1 for the domain %2
  951.      * failed because the Windows NT Domain Controller does not have an account
  952.      * for the computer %3.
  953.      */
  954.  
  955. #define NELOG_NetlogonServerAuthFailed          (ERRLOG2_BASE + 22)
  956.     /*
  957.      * The session setup from the computer %1 failed to authenticate.
  958.      * The name of the account referenced in the security database is
  959.      * %2.  The following error occurred: %n%3
  960.      */
  961.  
  962. #define NELOG_NetlogonServerAuthNoTrustSamAccount (ERRLOG2_BASE + 23)
  963.     /*
  964.      * The session setup from the computer %1 failed because there is
  965.      * no trust account in the security database for this computer. The name of
  966.      * the account referenced in the security database is %2.
  967.      */
  968.  
  969. //
  970. // General log messages for NT services.
  971. //
  972.  
  973. #define NELOG_FailedToRegisterSC                  (ERRLOG2_BASE + 24)
  974.     /*
  975.      * Could not register control handler with service controller %1.
  976.      */
  977.  
  978. #define NELOG_FailedToSetServiceStatus            (ERRLOG2_BASE + 25)
  979.     /*
  980.      * Could not set service status with service controller %1.
  981.      */
  982.  
  983. #define NELOG_FailedToGetComputerName             (ERRLOG2_BASE + 26)
  984.     /*
  985.      * Could not find the computer name %1.
  986.      */
  987.  
  988. #define NELOG_DriverNotLoaded                     (ERRLOG2_BASE + 27)
  989.     /*
  990.      * Could not load %1 device driver.
  991.      */
  992.  
  993. #define NELOG_NoTranportLoaded                    (ERRLOG2_BASE + 28)
  994.     /*
  995.      * Could not load any transport.
  996.      */
  997.  
  998. //
  999. // More Netlogon service events
  1000. //
  1001.  
  1002. #define NELOG_NetlogonFailedDomainDelta           (ERRLOG2_BASE + 29)
  1003.     /*
  1004.      * Replication of the %1 Domain Object "%2" from primary domain controller
  1005.      * %3 failed with the following error: %n%4
  1006.      */
  1007.  
  1008. #define NELOG_NetlogonFailedGlobalGroupDelta      (ERRLOG2_BASE + 30)
  1009.     /*
  1010.      * Replication of the %1 Global Group "%2" from primary domain controller
  1011.      * %3 failed with the following error: %n%4
  1012.      */
  1013.  
  1014. #define NELOG_NetlogonFailedLocalGroupDelta       (ERRLOG2_BASE + 31)
  1015.     /*
  1016.      * Replication of the %1 Local Group "%2" from primary domain controller
  1017.      * %3 failed with the following error: %n%4
  1018.      */
  1019.  
  1020. #define NELOG_NetlogonFailedUserDelta             (ERRLOG2_BASE + 32)
  1021.     /*
  1022.      * Replication of the %1 User "%2" from primary domain controller
  1023.      * %3 failed with the following error: %n%4
  1024.      */
  1025.  
  1026. #define NELOG_NetlogonFailedPolicyDelta           (ERRLOG2_BASE + 33)
  1027.     /*
  1028.      * Replication of the %1 Policy Object "%2" from primary domain controller
  1029.      * %3 failed with the following error: %n%4
  1030.      */
  1031.  
  1032. #define NELOG_NetlogonFailedTrustedDomainDelta    (ERRLOG2_BASE + 34)
  1033.     /*
  1034.      * Replication of the %1 Trusted Domain Object "%2" from primary domain controller
  1035.      * %3 failed with the following error: %n%4
  1036.      */
  1037.  
  1038. #define NELOG_NetlogonFailedAccountDelta          (ERRLOG2_BASE + 35)
  1039.     /*
  1040.      * Replication of the %1 Account Object "%2" from primary domain controller
  1041.      * %3 failed with the following error: %n%4
  1042.      */
  1043.  
  1044. #define NELOG_NetlogonFailedSecretDelta           (ERRLOG2_BASE + 36)
  1045.     /*
  1046.      * Replication of the %1 Secret "%2" from primary domain controller
  1047.      * %3 failed with the following error: %n%4
  1048.      */
  1049.  
  1050. #define NELOG_NetlogonSystemError                 (ERRLOG2_BASE + 37)
  1051.     /*
  1052.     * The system returned the following unexpected error code: %n%1
  1053.     */
  1054.  
  1055. #define NELOG_NetlogonDuplicateMachineAccounts    (ERRLOG2_BASE + 38)
  1056.     /*
  1057.     * Netlogon has detected two machine accounts for server "%1".
  1058.     * The server can be either a Windows NT Server that is a member of the
  1059.     * domain or the server can be a LAN Manager server with an account in the
  1060.     * SERVERS global group.  It cannot be both.
  1061.     */
  1062.  
  1063. #define NELOG_NetlogonTooManyGlobalGroups         (ERRLOG2_BASE + 39)
  1064.     /*
  1065.     * This domain has more global groups than can be replicated to a LanMan
  1066.     * BDC.  Either delete some of your global groups or remove the LanMan
  1067.     * BDCs from the domain.
  1068.     */
  1069.  
  1070. #define NELOG_NetlogonBrowserDriver               (ERRLOG2_BASE + 40)
  1071.     /*
  1072.     * The Browser driver returned the following error to Netlogon: %n%1
  1073.     */
  1074.  
  1075. #define NELOG_NetlogonAddNameFailure              (ERRLOG2_BASE + 41)
  1076.     /*
  1077.     * Netlogon could not register the %1<1B> name for the following reason: %n%2
  1078.     */
  1079.  
  1080. //
  1081. //  More Remoteboot service events.
  1082. //
  1083. #define NELOG_RplMessages                         (ERRLOG2_BASE + 42)
  1084.     /*
  1085.     * Service failed to retrieve messages needed to boot remote boot clients.
  1086.     */
  1087.  
  1088. #define NELOG_RplXnsBoot                          (ERRLOG2_BASE + 43)
  1089.     /*
  1090.     * Service experienced a severe error and can no longer provide remote boot
  1091.     * for 3Com 3Start remote boot clients.
  1092.     */
  1093.  
  1094. #define NELOG_RplSystem                           (ERRLOG2_BASE + 44)
  1095.     /*
  1096.     * Service experienced a severe system error and will shut itself down.
  1097.     */
  1098.  
  1099. #define NELOG_RplWkstaTimeout                     (ERRLOG2_BASE + 45)
  1100.     /*
  1101.     * Client with computer name %1 failed to acknowledge receipt of the
  1102.     * boot data.  Remote boot of this client was not completed.
  1103.     */
  1104.  
  1105. #define NELOG_RplWkstaFileOpen                    (ERRLOG2_BASE + 46)
  1106.     /*
  1107.     * Client with computer name %1 was not booted due to an error in opening
  1108.     * file %2.
  1109.     */
  1110.  
  1111. #define NELOG_RplWkstaFileRead                    (ERRLOG2_BASE + 47)
  1112.     /*
  1113.     * Client with computer name %1 was not booted due to an error in reading
  1114.     * file %2.
  1115.     */
  1116.  
  1117. #define NELOG_RplWkstaMemory                      (ERRLOG2_BASE + 48)
  1118.     /*
  1119.     * Client with computer name %1 was not booted due to insufficent memory
  1120.     * at the remote boot server.
  1121.     */
  1122.  
  1123. #define NELOG_RplWkstaFileChecksum                (ERRLOG2_BASE + 49)
  1124.     /*
  1125.     * Client with computer name %1 will be booted without using checksums
  1126.     * because checksum for file %2 could not be calculated.
  1127.     */
  1128.  
  1129. #define NELOG_RplWkstaFileLineCount               (ERRLOG2_BASE + 50)
  1130.     /*
  1131.     * Client with computer name %1 was not booted due to too many lines in
  1132.     * file %2.
  1133.     */
  1134.  
  1135. #define NELOG_RplWkstaBbcFile                     (ERRLOG2_BASE + 51)
  1136.     /*
  1137.     * Client with computer name %1 was not booted because the boot block
  1138.     * configuration file %2 for this client does not contain boot block
  1139.     * line and/or loader line.
  1140.     */
  1141.  
  1142. #define NELOG_RplWkstaFileSize                    (ERRLOG2_BASE + 52)
  1143.     /*
  1144.     * Client with computer name %1 was not booted due to a bad size of
  1145.     * file %2.
  1146.     */
  1147.  
  1148. #define NELOG_RplWkstaInternal                    (ERRLOG2_BASE + 53)
  1149.     /*
  1150.     * Client with computer name %1 was not booted due to remote boot
  1151.     * service internal error.
  1152.     */
  1153.  
  1154. #define NELOG_RplWkstaWrongVersion                (ERRLOG2_BASE + 54)
  1155.     /*
  1156.     * Client with computer name %1 was not booted because file %2 has an
  1157.     * invalid boot header.
  1158.     */
  1159.  
  1160. #define NELOG_RplWkstaNetwork                     (ERRLOG2_BASE + 55)
  1161.     /*
  1162.     * Client with computer name %1 was not booted due to network error.
  1163.     */
  1164.  
  1165. #define NELOG_RplAdapterResource                  (ERRLOG2_BASE + 56)
  1166.     /*
  1167.     * Client with adapter id %1 was not booted due to lack of resources.
  1168.     */
  1169.  
  1170. #define NELOG_RplFileCopy                         (ERRLOG2_BASE + 57)
  1171.     /*
  1172.     * Service experienced error copying file or directory %1.
  1173.     */
  1174.  
  1175. #define NELOG_RplFileDelete                       (ERRLOG2_BASE + 58)
  1176.     /*
  1177.     * Service experienced error deleting file or directory %1.
  1178.     */
  1179.  
  1180. #define NELOG_RplFilePerms                        (ERRLOG2_BASE + 59)
  1181.     /*
  1182.     * Service experienced error setting permissions on file or directory %1.
  1183.     */
  1184. #define NELOG_RplCheckConfigs                     (ERRLOG2_BASE + 60)
  1185.     /*
  1186.     * Service experienced error evaluating RPL configurations.
  1187.     */
  1188. #define NELOG_RplCreateProfiles                   (ERRLOG2_BASE + 61)
  1189.     /*
  1190.     * Service experienced error creating RPL profiles for all configurations.
  1191.     */
  1192. #define NELOG_RplRegistry                         (ERRLOG2_BASE + 62)
  1193.     /*
  1194.     * Service experienced error accessing registry.
  1195.     */
  1196. #define NELOG_RplReplaceRPLDISK                   (ERRLOG2_BASE + 63)
  1197.     /*
  1198.     * Service experienced error replacing possibly outdated RPLDISK.SYS.
  1199.     */
  1200. #define NELOG_RplCheckSecurity                    (ERRLOG2_BASE + 64)
  1201.     /*
  1202.     * Service experienced error adding security accounts or setting
  1203.     * file permissions.  These accounts are the RPLUSER local group
  1204.     * and the user accounts for the individual RPL workstations.
  1205.     */
  1206. #define NELOG_RplBackupDatabase                   (ERRLOG2_BASE + 65)
  1207.     /*
  1208.     * Service failed to back up its database.
  1209.     */
  1210. #define NELOG_RplInitDatabase                     (ERRLOG2_BASE + 66)
  1211.     /*
  1212.     * Service failed to initialize from its database.  The database may be
  1213.     * missing or corrupted.  Service will attempt restoring the database
  1214.     * from the backup.
  1215.     */
  1216. #define NELOG_RplRestoreDatabaseFailure           (ERRLOG2_BASE + 67)
  1217.     /*
  1218.     * Service failed to restore its database from the backup.  Service
  1219.     * will not start.
  1220.     */
  1221. #define NELOG_RplRestoreDatabaseSuccess           (ERRLOG2_BASE + 68)
  1222.     /*
  1223.     * Service sucessfully restored its database from the backup.
  1224.     */
  1225. #define NELOG_RplInitRestoredDatabase             (ERRLOG2_BASE + 69)
  1226.     /*
  1227.     * Service failed to initialize from its restored database.  Service
  1228.     * will not start.
  1229.     */
  1230.  
  1231. //
  1232. // More Netlogon service events
  1233. //
  1234. #define NELOG_NetlogonSessionTypeWrong            (ERRLOG2_BASE + 70)
  1235.     /*
  1236.      * The session setup to the Windows NT Domain Controller %1 from computer
  1237.      * %2 using account %4 failed.  %2 is declared to be a BDC in domain %3.
  1238.      * However, %2 tried to connect as either a DC in a trusted domain,
  1239.      * a member workstation in domain %3, or as a server in domain %3.
  1240.      * Use the Server Manager to remove the BDC account for %2.
  1241.      */
  1242.  
  1243. #endif // _LMERRLOG_
  1244.