home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / WIN_NT / LMAPI.ZIP / H / LMERRLOG.H < prev    next >
Encoding:
C/C++ Source or Header  |  1993-04-07  |  26.7 KB  |  964 lines

  1. /*
  2.  
  3. Copyright (c) 1991-1993  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. Notes:
  16.  
  17.     You must include NETCONS.H before this file, since this file depends
  18.     on values defined in NETCONS.H.
  19.  
  20. --*/
  21.  
  22. #ifndef _LMERRLOG_
  23. #define _LMERRLOG_
  24.  
  25. //
  26. // Data Structures - Config
  27. //
  28.  
  29. typedef struct _ERROR_LOG {
  30.      DWORD          el_len;
  31.      DWORD          el_reserved;
  32.      DWORD          el_time;
  33.      DWORD          el_error;
  34.      LPTSTR         el_name;             // pointer to service name
  35.      LPTSTR         el_text;             // pointer to string array
  36.      LPBYTE         el_data;             // pointer to BYTE array
  37.      DWORD          el_data_size;        // byte count of el_data area
  38.      DWORD          el_nstrings;         // number of strings in el_text.
  39. } ERROR_LOG, *PERROR_LOG, *LPERROR_LOG;
  40.  
  41.  
  42. #define REVISED_ERROR_LOG_STRUCT
  43.  
  44.  
  45. #ifndef _LMHLOGDEFINED_
  46. #define _LMHLOGDEFINED_
  47.  
  48. typedef struct _HLOG {
  49.      DWORD          time;
  50.      DWORD          last_flags;
  51.      DWORD          offset;
  52.      DWORD          rec_offset;
  53. } HLOG, *PHLOG, *LPHLOG;
  54.  
  55. #define LOGFLAGS_FORWARD    0
  56. #define LOGFLAGS_BACKWARD   0x1
  57. #define LOGFLAGS_SEEK       0x2
  58.  
  59. #endif
  60.  
  61. //
  62. // Function Prototypes - ErrorLog
  63. //
  64.  
  65. NET_API_STATUS NET_API_FUNCTION
  66. NetErrorLogClear (
  67.     IN LPTSTR server,
  68.     IN LPTSTR backupfile,
  69.     IN LPBYTE reserved
  70.     );
  71.  
  72. NET_API_STATUS NET_API_FUNCTION
  73. NetErrorLogRead (
  74.     IN LPTSTR server,
  75.     IN LPTSTR reserved1,
  76.     IN LPHLOG errloghandle,
  77.     IN DWORD offset,
  78.     IN LPDWORD reserved2,
  79.     IN DWORD reserved3,
  80.     IN DWORD offsetflag,
  81.     OUT LPBYTE * bufptr,
  82.     IN DWORD prefmaxlen,
  83.     OUT LPDWORD bytesread,
  84.     OUT LPDWORD totalbytes
  85.     );
  86.  
  87. NET_API_STATUS NET_API_FUNCTION
  88. NetErrorLogWrite (
  89.     IN LPBYTE reserved1,
  90.     IN DWORD code,
  91.     IN LPTSTR component,
  92.     IN LPBYTE buffer,
  93.     IN DWORD numbytes,
  94.     IN LPBYTE msgbuf,
  95.     IN DWORD strcount,
  96.     IN LPBYTE reserved2
  97.     );
  98.  
  99. //
  100. // Special Values and Constants
  101. //
  102.  
  103.  
  104. //
  105. //  Generic (could be used by more than one service)
  106. //   error log messages from 0 to 25
  107. //
  108. // Don't change the comments following the manifest constants without
  109. // understanding how mapmsg works.
  110. //
  111.  
  112. #define ERRLOG_BASE 3100        /* NELOG errors start here */
  113.  
  114. #define NELOG_Internal_Error        (ERRLOG_BASE + 0)
  115.     /*
  116.     * The operation failed because a network software error occurred.
  117.     */
  118.  
  119. #define NELOG_Resource_Shortage     (ERRLOG_BASE + 1)
  120.     /*
  121.     * The system ran out of a resource controlled by the %1 option.
  122.     */
  123.  
  124. #define NELOG_Unable_To_Lock_Segment    (ERRLOG_BASE + 2)
  125.     /*
  126.     * The service failed to obtain a long-term lock on the
  127.     *  segment for NCBs. The error code is the data.
  128.     */
  129.  
  130. #define NELOG_Unable_To_Unlock_Segment  (ERRLOG_BASE + 3)
  131.     /*
  132.     * The service failed to release the long-term lock on the
  133.     *  segment for NCBs. The error code is the data.
  134.     */
  135.  
  136. #define NELOG_Uninstall_Service     (ERRLOG_BASE + 4)
  137.     /*
  138.     * There was an error stopping service %1.
  139.     *  The error code from NetServiceControl is the data.
  140.     */
  141.  
  142. #define NELOG_Init_Exec_Fail        (ERRLOG_BASE + 5)
  143.     /*
  144.     * Initialization failed because of an system exec failure on
  145.     *  path %1. The system error code is the data.
  146.     */
  147.  
  148. #define NELOG_Ncb_Error         (ERRLOG_BASE + 6)
  149.     /*
  150.     * An unexpected network control block (NCB) was received. The NCB is the data.
  151.     */
  152.  
  153. #define NELOG_Net_Not_Started       (ERRLOG_BASE + 7)
  154.     /*
  155.     * The network is not started.
  156.     */
  157.  
  158. #define NELOG_Ioctl_Error       (ERRLOG_BASE + 8)
  159.     /*
  160.     * A DosDevIoctl or DosFsCtl to NETWKSTA.SYS failed.
  161.     * The data shown is in this format:
  162.     *     DWORD  approx CS:IP of call to ioctl or fsctl
  163.     *     WORD   error code
  164.     *     WORD   ioctl or fsctl number
  165.     */
  166.  
  167. #define NELOG_System_Semaphore      (ERRLOG_BASE + 9)
  168.     /*
  169.     * Unable to create or open system semaphore %1.
  170.     *  The error code is the data.
  171.     */
  172.  
  173. #define NELOG_Init_OpenCreate_Err   (ERRLOG_BASE + 10)
  174.     /*
  175.     * Initialization failed because of an open/create error on the
  176.     *  file %1. The system error code is the data.
  177.     */
  178.  
  179. #define NELOG_NetBios           (ERRLOG_BASE + 11)
  180.     /*
  181.     * An unexpected NetBios error occurred.
  182.     *  The error code is the data.
  183.     */
  184.  
  185. #define NELOG_SMB_Illegal       (ERRLOG_BASE + 12)
  186.     /*
  187.     * An illegal server message block (SMB) was received.
  188.     *  The SMB is the data.
  189.     */
  190.  
  191. #define NELOG_Service_Fail      (ERRLOG_BASE + 13)
  192.     /*
  193.     * Initialization failed because the requested service %1
  194.     *  could not be started.
  195.    */
  196.  
  197. #define NELOG_Entries_Lost      (ERRLOG_BASE + 14)
  198.     /*
  199.     * Some entries in the error log were lost because of a buffer
  200.     * overflow.
  201.     */
  202.  
  203.  
  204. //
  205. //  Server specific error log messages from 20 to 40
  206. //
  207.  
  208. #define NELOG_Init_Seg_Overflow     (ERRLOG_BASE + 20)
  209.     /*
  210.     * Initialization parameters controlling resource usage other
  211.     *  than net buffers are sized so that too much memory is needed.
  212.     */
  213.  
  214. #define NELOG_Srv_No_Mem_Grow       (ERRLOG_BASE + 21)
  215.     /*
  216.     * The server cannot increase the size of a memory segment.
  217.     */
  218.  
  219. #define NELOG_Access_File_Bad       (ERRLOG_BASE + 22)
  220.     /*
  221.     * Initialization failed because account file: %1 is either incorrect
  222.     * or not present.
  223.     */
  224.  
  225. #define NELOG_Srvnet_Not_Started    (ERRLOG_BASE + 23)
  226.     /*
  227.     * Initialization failed because network: %1 was not started.
  228.     */
  229.  
  230. #define NELOG_Init_Chardev_Err      (ERRLOG_BASE + 24)
  231.     /*
  232.     * The server failed to start. Either all three chdev
  233.     *  parameters must be zero or all three must be nonzero.
  234.     */
  235.  
  236. #define NELOG_Remote_API        (ERRLOG_BASE + 25)
  237.     /* A remote API request was halted due to the following
  238.     * invalid description string: %1.
  239.     */
  240.  
  241. #define NELOG_Ncb_TooManyErr        (ERRLOG_BASE + 26)
  242.     /* The network %1 ran out of NCBs.  You may need to increase NCBs
  243.     * for this network.  The following information includes the
  244.     * number of NCBs submitted by the server when this error occurred:
  245.     */
  246.  
  247. #define NELOG_Mailslot_err      (ERRLOG_BASE + 27)
  248.     /* The server cannot create the %1 mailslot needed to send
  249.     * the ReleaseMemory alert message.  The error received is:
  250.     */
  251.  
  252. #define NELOG_ReleaseMem_Alert      (ERRLOG_BASE + 28)
  253.     /* The server failed to register for the RELEASEMEMORY alert,
  254.     * with recipient %1. The error code from
  255.     * NetAlertStart is the data.
  256.     */
  257.  
  258. #define NELOG_AT_cannot_write       (ERRLOG_BASE + 29)
  259.     /* The server cannot update the AT schedule file. The file
  260.     * is corrupt.
  261.     */
  262.  
  263. #define NELOG_Cant_Make_Msg_File    (ERRLOG_BASE + 30)
  264.     /* The server encountered an error when calling
  265.     * NetIMakeLMFileName. The error code is the data.
  266.     */
  267.  
  268. #define NELOG_Exec_Netservr_NoMem   (ERRLOG_BASE + 31)
  269.     /* Initialization failed because of an system exec failure on
  270.     * path %1. There is not enough memory to start the process.
  271.     * The system error code is the data.
  272.     */
  273.  
  274. #define NELOG_Server_Lock_Failure   (ERRLOG_BASE + 32)
  275.     /* Longterm lock of server buffers failed.
  276.     * Check swap disk free space and restart system to start server.
  277.     */
  278.  
  279. //
  280. //  Message service and POPUP specific error log messages from 40 to 55
  281. //
  282.  
  283. #define NELOG_Msg_Shutdown      (ERRLOG_BASE + 40)
  284.     /*
  285.     * The service has stopped due to repeated consecutive
  286.     *  occurrences of an network control block (NCB) error.  The last bad NCB follows
  287.     *  in raw data.
  288.     */
  289.  
  290. #define NELOG_Msg_Sem_Shutdown      (ERRLOG_BASE + 41)
  291.     /*
  292.     * The Message server has stopped due to a lock on the
  293.     *  Message server shared data segment.
  294.     */
  295.  
  296. #define NELOG_Msg_Log_Err       (ERRLOG_BASE + 50)
  297.     /*
  298.     * A file system error occurred while opening or writing to the
  299.     *  system message log file, %1. Message logging has been
  300.     *  switched off due to the error. The error code is the data.
  301.     */
  302.  
  303.  
  304.  
  305. #define NELOG_VIO_POPUP_ERR     (ERRLOG_BASE + 51)
  306.     /*
  307.     * Unable to display message POPUP due to system VIO call error.
  308.     *  The error code is the data.
  309.     */
  310.  
  311. #define NELOG_Msg_Unexpected_SMB_Type   (ERRLOG_BASE + 52)
  312.     /*
  313.     * An illegal server message block (SMB) was received.  The SMB is the data.
  314.     */
  315.     
  316. //
  317. //  Workstation specific error log messages from 60 to 75
  318. //
  319.  
  320.  
  321. #define NELOG_Wksta_Infoseg     (ERRLOG_BASE + 60)
  322.     /*
  323.     * The workstation information segment is bigger than 64K bytes.
  324.     *  The size follows, in DWORD format:
  325.     */
  326.  
  327. #define NELOG_Wksta_Compname        (ERRLOG_BASE + 61)
  328.     /*
  329.     * The workstation could not get the name-number of computer name.
  330.     */
  331.  
  332. #define NELOG_Wksta_BiosThreadFailure   (ERRLOG_BASE + 62)
  333.     /*
  334.     * The workstation could not initialize the Async NetBios Thread.
  335.     *  The error code is the data.
  336.     */
  337.  
  338. #define NELOG_Wksta_IniSeg      (ERRLOG_BASE + 63)
  339.     /*
  340.     * The workstation could not open the initial shared segment.
  341.     *  The error code is the data.
  342.     */
  343.  
  344. #define NELOG_Wksta_HostTab_Full    (ERRLOG_BASE + 64)
  345.     /*
  346.     * The workstation host table is full.
  347.     */
  348.  
  349. #define NELOG_Wksta_Bad_Mailslot_SMB    (ERRLOG_BASE + 65)
  350.     /*
  351.     * A bad mailslot SMB was received.  The SMB is the data.
  352.     */
  353.  
  354. #define NELOG_Wksta_UASInit     (ERRLOG_BASE + 66)
  355.     /*
  356.     * The workstation encountered an error while trying to start the UAS.
  357.     *  The error code is the data.
  358.     */
  359.  
  360. #define NELOG_Wksta_SSIRelogon      (ERRLOG_BASE + 67)
  361.     /*
  362.     * The workstation encountered an error while responding to an SSI revalidation request.
  363.     *  The function code and the error codes are the data.
  364.     */
  365.  
  366. //
  367. //  Alerter service specific error log messages from 70 to 79
  368. //
  369.  
  370.  
  371. #define NELOG_Build_Name        (ERRLOG_BASE + 70)
  372.     /*
  373.     * The Alerter service had a problem creating the list of
  374.     * alert recipients.  The error code is %1.
  375.     */
  376.  
  377. #define NELOG_Name_Expansion        (ERRLOG_BASE + 71)
  378.     /*
  379.     * There was an error expanding %1 as a group name. Try
  380.     *  splitting the group into two or more smaller groups.
  381.     */
  382.  
  383. #define NELOG_Message_Send      (ERRLOG_BASE + 72)
  384.     /*
  385.     * There was an error sending %2 the alert message -
  386.     *  (
  387.     *  %3 )
  388.     *  The error code is %1.
  389.     */
  390.  
  391. #define NELOG_Mail_Slt_Err      (ERRLOG_BASE + 73)
  392.     /*
  393.     * There was an error in creating or reading the alerter mailslot.
  394.     *  The error code is %1.
  395.     */
  396.  
  397. #define NELOG_AT_cannot_read        (ERRLOG_BASE + 74)
  398.     /*
  399.     * The server could not read the AT schedule file.
  400.     */
  401.  
  402. #define NELOG_AT_sched_err      (ERRLOG_BASE + 75)
  403.     /*
  404.     * The server found an invalid AT schedule record.
  405.     */
  406.  
  407. #define NELOG_AT_schedule_file_created  (ERRLOG_BASE + 76)
  408.     /*
  409.     * The server could not find an AT schedule file so it created one.
  410.     */
  411.  
  412. #define NELOG_Srvnet_NB_Open        (ERRLOG_BASE + 77)
  413.     /*
  414.     * The server could not access the %1 network with NetBiosOpen.
  415.     */
  416.  
  417. #define NELOG_AT_Exec_Err       (ERRLOG_BASE + 78)
  418.     /*
  419.     * The AT command processor couldn't run %1.
  420.    */
  421.  
  422. //
  423. //      Cache Lazy Write and HPFS386 specific error log messages from 80 to 89
  424. //
  425.  
  426. #define NELOG_Lazy_Write_Err            (ERRLOG_BASE + 80)
  427.         /*
  428.         * WARNING:  Because of a lazy-write error, drive %1 now
  429.         *  contains some corrupt data.  The cache is stopped.
  430.         */
  431.  
  432. #define NELOG_HotFix            (ERRLOG_BASE + 81)
  433.     /*
  434.     * A defective sector on drive %1 has been replaced (hotfixed).
  435.     * No data was lost.  You should run CHKDSK soon to restore full
  436.     * performance and replenish the volume's spare sector pool.
  437.     *
  438.     * The hotfix occurred while processing a remote request.
  439.     */
  440.  
  441. #define NELOG_HardErr_From_Server   (ERRLOG_BASE + 82)
  442.     /*
  443.     * A disk error occurred on the HPFS volume in drive %1.
  444.     * The error occurred while processing a remote request.
  445.     */
  446.  
  447. #define NELOG_LocalSecFail1 (ERRLOG_BASE + 83)
  448.     /*
  449.     * The UAS database (NET.ACC) is corrupt.  The local security
  450.     * system is replacing the corrupted NET.ACC with the backup
  451.     * made at %1.
  452.     * Any updates to the UAS made after this time are lost.
  453.     *
  454.     */
  455.  
  456. #define NELOG_LocalSecFail2 (ERRLOG_BASE + 84)
  457.     /*
  458.     * The UAS database (NET.ACC) is missing.  The local
  459.     * security system is restoring the backup database
  460.     * made at %1.
  461.     * Any updates to the UAS made after this time are lost.
  462.     *
  463.     */
  464.  
  465. #define NELOG_LocalSecFail3 (ERRLOG_BASE + 85)
  466.     /*
  467.     * Local security could not be started because the UAS database
  468.     * (NET.ACC) was missing or corrupt, and no usable backup
  469.     * database was present.
  470.     *
  471.     * THE SYSTEM IS NOT SECURE.
  472.     */
  473.  
  474. #define NELOG_LocalSecGeneralFail   (ERRLOG_BASE + 86)
  475.     /*
  476.     * Local security could not be started because an error
  477.     * occurred during initialization. The error code returned is %1.
  478.     *
  479.     * THE SYSTEM IS NOT SECURE.
  480.     *
  481.     */
  482.  
  483. //
  484. //  NETWKSTA.SYS specific error log messages from 90 to 99
  485. //
  486.  
  487. #define NELOG_NetWkSta_Internal_Error   (ERRLOG_BASE + 90)
  488.     /*
  489.     * A NetWksta internal error has occurred:
  490.     *  %1
  491.     */
  492.  
  493. #define NELOG_NetWkSta_No_Resource  (ERRLOG_BASE + 91)
  494.     /*
  495.     * The redirector is out of a resource: %1.
  496.     */
  497.  
  498. #define NELOG_NetWkSta_SMB_Err      (ERRLOG_BASE + 92)
  499.     /*
  500.     * An SMB error occurred on connection to %1.
  501.     *  The SMB header is the data.
  502.     */
  503.  
  504. #define NELOG_NetWkSta_VC_Err       (ERRLOG_BASE + 93)
  505.     /*
  506.     * A virtual circuit error occurred on the session to %1.
  507.     *  The NCB command and return code is the data.
  508.     */
  509.  
  510. #define NELOG_NetWkSta_Stuck_VC_Err (ERRLOG_BASE + 94)
  511.     /*
  512.     * Hanging up a stuck session to %1.
  513.     */
  514.  
  515. #define NELOG_NetWkSta_NCB_Err      (ERRLOG_BASE + 95)
  516.     /*
  517.     * An NCB error occurred (%1).
  518.     *  The NCB is the data.
  519.     */
  520.  
  521. #define NELOG_NetWkSta_Write_Behind_Err (ERRLOG_BASE + 96)
  522.     /*
  523.     * A write operation to %1 failed.
  524.     *  Data may have been lost.
  525.     */
  526.  
  527. #define NELOG_NetWkSta_Reset_Err    (ERRLOG_BASE + 97)
  528.     /*
  529.     * Reset of driver %1 failed to complete the NCB.
  530.     *  The NCB is the data.
  531.     */
  532.  
  533. #define NELOG_NetWkSta_Too_Many     (ERRLOG_BASE + 98)
  534.     /*
  535.     * The amount of resource %1 requested was more
  536.     *  than the maximum. The maximum amount was allocated.
  537.     */
  538.  
  539. //
  540. //  Spooler specific error log messages from 100 to 103
  541. //
  542.  
  543. #define NELOG_Srv_Thread_Failure        (ERRLOG_BASE + 104)
  544.     /*
  545.     * The server could not create a thread.
  546.     *  The THREADS parameter in CONFIG.SYS should be increased.
  547.     */
  548.  
  549. #define NELOG_Srv_Close_Failure         (ERRLOG_BASE + 105)
  550.     /*
  551.     * The server could not close %1.
  552.     *  The file is probably corrupt.
  553.     */
  554.  
  555. #define NELOG_ReplUserCurDir               (ERRLOG_BASE + 106)
  556.     /*
  557.     *The replicator cannot update directory %1. It has tree integrity
  558.     * and is the current directory for some process.
  559.     */
  560.  
  561. #define NELOG_ReplCannotMasterDir       (ERRLOG_BASE + 107)
  562.     /*
  563.     *The server cannot export directory %1, to client %2.
  564.     * It is exported from another server.
  565.     */
  566.  
  567. #define NELOG_ReplUpdateError           (ERRLOG_BASE + 108)
  568.     /*
  569.     *The replication server could not update directory %2 from the source
  570.     * n %3 due to error %1.
  571.     */
  572.  
  573. #define NELOG_ReplLostMaster            (ERRLOG_BASE + 109)
  574.     /*
  575.     *Master %1 did not send an update notice for directory %2 at the expected
  576.     * time.
  577.     */
  578.  
  579. #define NELOG_NetlogonAuthDCFail        (ERRLOG_BASE + 110)
  580.     /*
  581.     *Failed to authenticate with %2, the domain controller for domain %1.
  582.     */
  583.  
  584. #define NELOG_ReplLogonFailed           (ERRLOG_BASE + 111)
  585.     /*
  586.     *The replicator attempted to log on at %3 as %2 and failed.
  587.     */
  588.  
  589. #define NELOG_ReplNetErr            (ERRLOG_BASE + 112)
  590.     /*
  591.     *  Network error %1 occurred.
  592.     */
  593.  
  594. #define NELOG_ReplMaxFiles            (ERRLOG_BASE + 113)
  595.     /*
  596.     *  Replicator limit for files in a directory has been exceeded.
  597.     */
  598.  
  599.  
  600. #define NELOG_ReplMaxTreeDepth            (ERRLOG_BASE + 114)
  601.     /*
  602.     *  Replicator limit for tree depth has been exceeded.
  603.     */
  604.  
  605. #define NELOG_ReplBadMsg             (ERRLOG_BASE + 115)
  606.     /*
  607.     *  Unrecognized message received in mailslot.
  608.     */
  609.  
  610. #define NELOG_ReplSysErr            (ERRLOG_BASE + 116)
  611.     /*
  612.     *  System error %1 occurred.
  613.     */
  614.  
  615. #define NELOG_ReplUserLoged          (ERRLOG_BASE + 117)
  616.     /*
  617.     *  Cannot log on. User is currently logged on and argument TRYUSER
  618.     *  is set to NO.
  619.     */
  620.  
  621. #define NELOG_ReplBadImport           (ERRLOG_BASE + 118)
  622.     /*
  623.     *  IMPORT path %1 cannot be found.
  624.     */
  625.  
  626. #define NELOG_ReplBadExport           (ERRLOG_BASE + 119)
  627.     /*
  628.     *  EXPORT path %1 cannot be found.
  629.     */
  630.  
  631. #define NELOG_ReplSignalFileErr           (ERRLOG_BASE + 120)
  632.     /*
  633.     *  Replicator failed to update signal file in directory %2 due to
  634.     *  %1 system error.
  635.     */
  636.  
  637. #define NELOG_DiskFT                (ERRLOG_BASE+121)
  638.     /*
  639.     * Disk Fault Tolerance Error
  640.     *
  641.     * %1
  642.     */
  643.  
  644. #define NELOG_ReplAccessDenied           (ERRLOG_BASE + 122)
  645.     /*
  646.     *  Replicator could not access %2
  647.     *  on %3 due to %1 system error.
  648.     */
  649.  
  650. #define NELOG_NetlogonFailedPrimary      (ERRLOG_BASE + 123)
  651.     /*
  652.     *The domain controller for domain %1 has apparently failed.
  653.     */
  654.  
  655. #define NELOG_NetlogonPasswdSetFailed (ERRLOG_BASE + 124)
  656.     /*
  657.     * An error occurred while changing this computer's password.
  658.     */
  659.  
  660. #define NELOG_NetlogonTrackingError      (ERRLOG_BASE + 125)
  661.     /*
  662.     *Error in updating the logon or logoff information for %1.
  663.     */
  664.  
  665. #define NELOG_NetlogonSyncError          (ERRLOG_BASE + 126)
  666.     /*
  667.     *Error in synchronizing with domain controller %1
  668.     */
  669.  
  670. //
  671. //  UPS service specific error log messages from 130 to 135
  672. //
  673.  
  674. #define NELOG_UPS_PowerOut      (ERRLOG_BASE + 130)
  675.     /*
  676.     * Power failure detected.
  677.     */
  678.  
  679. #define NELOG_UPS_Shutdown      (ERRLOG_BASE + 131)
  680.     /*
  681.     * The UPS service performed server shutdown.
  682.     */
  683.  
  684. #define NELOG_UPS_CmdFileError      (ERRLOG_BASE + 132)
  685.     /*
  686.     * The UPS service did not complete execution of the
  687.     * user specified shutdown command file.
  688.     */
  689.  
  690. #define NELOG_UPS_CannotOpenDriver  (ERRLOG_BASE+133)
  691.     /* 
  692.     * The UPS driver could not be opened.  The error code is
  693.     * the data.
  694.     */
  695.  
  696. #define NELOG_UPS_PowerBack     (ERRLOG_BASE + 134)
  697.     /*
  698.     * Power has been restored.
  699.     */
  700.  
  701. #define NELOG_UPS_CmdFileConfig     (ERRLOG_BASE + 135)
  702.     /*
  703.     * There is a problem with a configuration of user specified
  704.     * shutdown command file.
  705.     */
  706.  
  707. #define NELOG_UPS_CmdFileExec       (ERRLOG_BASE + 136)
  708.     /*
  709.     * The UPS service failed to execute a user specified shutdown
  710.     * command file %1.  The error code is the data.
  711.     */
  712.  
  713. //
  714. //  Remote boot server specific error log messages are from 150 to 164
  715. //
  716.  
  717. #define NELOG_Missing_Parameter     (ERRLOG_BASE + 150)
  718.     /*
  719.     * Initialization failed because of an invalid or missing
  720.     *  parameter in the configuration file: %1.
  721.     */
  722.  
  723. #define NELOG_Invalid_Config_Line   (ERRLOG_BASE + 151)
  724.     /*
  725.     * Initialization failed because of an invalid line in the
  726.     *  configuration file %1. The invalid line is the data.
  727.     */
  728.  
  729. #define NELOG_Invalid_Config_File   (ERRLOG_BASE + 152)
  730.     /*
  731.     * Initialization failed because of an error in the configuration
  732.     *  file %1.
  733.     */
  734.  
  735. #define NELOG_File_Changed      (ERRLOG_BASE + 153)
  736.     /*
  737.     * The file %1 has been changed after initialization.
  738.     *  The boot block loading was temporarily terminated.
  739.     */
  740.  
  741. #define NELOG_Files_Dont_Fit        (ERRLOG_BASE + 154)
  742.     /*
  743.     * The files do not fit to the 'boot' block configuration
  744.     * file %1. Change BASE and ORG definitions or the order
  745.     * of the files.
  746.     */
  747.  
  748. #define NELOG_Wrong_DLL_Version     (ERRLOG_BASE + 155)
  749.     /*
  750.     * Initialization failed because the dynamic link
  751.     *  library %1 returned a wrong version number.
  752.     */
  753.  
  754. #define NELOG_Error_in_DLL      (ERRLOG_BASE + 156)
  755.     /*
  756.     * There was an unrecoverable error in the dynamic
  757.     *  link library of the service.
  758.     */
  759.  
  760. #define NELOG_System_Error      (ERRLOG_BASE + 157)
  761.     /*
  762.     * The system returned an unexpected error code.
  763.     *  The error code is the data.
  764.     */
  765.  
  766. #define NELOG_FT_ErrLog_Too_Large (ERRLOG_BASE + 158)
  767.     /*
  768.     * The fault-tolerance error log file, LANROOT\LOGS\FT.LOG
  769.     *  is more than 64K.
  770.     */
  771.  
  772. #define NELOG_FT_Update_In_Progress (ERRLOG_BASE + 159)
  773.     /*
  774.     * The fault-tolerance error-log file, LANROOT\LOGS\FT.LOG, had the
  775.     * update in progress bit set upon opening, which means that the
  776.     * system crashed while working on the errorlog.
  777.     */
  778.  
  779.  
  780.  
  781. #define NELOG_OEM_Code              (ERRLOG_BASE + 199)
  782.  
  783. //
  784. // another error log range defined for NT Lanman.
  785. //
  786.  
  787. #define ERRLOG2_BASE 5700        /* New NT NELOG errors start here */
  788.  
  789. #define NELOG_NetlogonSSIInitError              (ERRLOG2_BASE + 0)
  790.     /*
  791.      * The Netlogon service could not initialize the replication data
  792.      * structures successfully. The service is terminated.
  793.      */
  794.  
  795. #define NELOG_NetlogonFailedToUpdateTrustList   (ERRLOG2_BASE + 1)
  796.     /*
  797.      * The Netlogon service failed to update the domain trust list.
  798.      */
  799.  
  800. #define NELOG_NetlogonFailedToAddRpcInterface   (ERRLOG2_BASE + 2)
  801.     /*
  802.      * The Netlogon service could not add the RPC interface.  The
  803.      * service is terminated.
  804.      */
  805.  
  806. #define NELOG_NetlogonFailedToReadMailslot      (ERRLOG2_BASE + 3)
  807.     /*
  808.      * The Netlogon service could not read a mailslot message from %1.
  809.      */
  810.  
  811. #define NELOG_NetlogonFailedToRegisterSC        (ERRLOG2_BASE + 4)
  812.     /*
  813.      * The Netlogon service failed to register the service with the
  814.      * service controller. The service is terminated.
  815.      */
  816.  
  817. #define NELOG_NetlogonChangeLogCorrupt          (ERRLOG2_BASE + 5)
  818.     /*
  819.      * The change log cache maintained by the Netlogon service for
  820.      * database changes is corrupt. The Netlogon service is resetting
  821.      * the change log.
  822.      */
  823.  
  824. #define NELOG_NetlogonFaliedToCreateShare       (ERRLOG2_BASE + 6)
  825.     /*
  826.      * The Netlogon service could not create server share %1.
  827.      */
  828.  
  829. #define NELOG_NetlogonDownLevelLogonFailed      (ERRLOG2_BASE + 7)
  830.     /*
  831.      * The downlevel logon request for the user %1 from %2 failed.
  832.      */
  833.  
  834. #define NELOG_NetlogonDownLevelLogoffFailed     (ERRLOG2_BASE + 8)
  835.     /*
  836.      * The downlevel logoff request for the user %1 from %2 failed.
  837.      */
  838.  
  839. #define NELOG_NetlogonNTLogonFailed             (ERRLOG2_BASE + 9)
  840.     /*
  841.      * The NT %1 logon request for the user %2\%3 from %4 (via %5)
  842.      * failed.
  843.      */
  844.  
  845. #define NELOG_NetlogonNTLogoffFailed            (ERRLOG2_BASE + 10)
  846.     /*
  847.      * The NT %1 logoff request for the user %2\%3 from %4
  848.      * failed.
  849.      */
  850.  
  851. #define NELOG_NetlogonPartialSyncCallSuccess    (ERRLOG2_BASE + 11)
  852.     /*
  853.      * The partial synchronization request from the server %1 completed
  854.      * successfully. %2 delta(s) has(ve) been returned to the
  855.      * caller.
  856.      */
  857.  
  858. #define NELOG_NetlogonPartialSyncCallFailed     (ERRLOG2_BASE + 12)
  859.     /*
  860.      * The partial synchronization request from the server %1 failed.
  861.      */
  862.  
  863. #define NELOG_NetlogonFullSyncCallSuccess       (ERRLOG2_BASE + 13)
  864.     /*
  865.      * The full synchronization request from the server %1 completed
  866.      * successfully. %2 object(s) has(ve) been returned to
  867.      * the caller.
  868.      */
  869.  
  870. #define NELOG_NetlogonFullSyncCallFailed        (ERRLOG2_BASE + 14)
  871.     /*
  872.      * The full synchronization request from the server %1 failed.
  873.      */
  874.  
  875. #define NELOG_NetlogonPartialSyncSuccess        (ERRLOG2_BASE + 15)
  876.     /*
  877.      * The partial synchronization replication of the %1 database from the
  878.      * domain controller %2 completed successfully. %3 delta(s) is(are)
  879.      * applied to the database.
  880.      */
  881.  
  882.  
  883. #define NELOG_NetlogonPartialSyncFailed         (ERRLOG2_BASE + 16)
  884.     /*
  885.      * The partial synchronization replication of the %1 database from the
  886.      * domain controller %2 failed.
  887.      */
  888.  
  889. #define NELOG_NetlogonFullSyncSuccess           (ERRLOG2_BASE + 17)
  890.     /*
  891.      * The full synchronization replication of the %1 database from the
  892.      * domain controller %2 completed successfully.
  893.      */
  894.  
  895.  
  896. #define NELOG_NetlogonFullSyncFailed            (ERRLOG2_BASE + 18)
  897.     /*
  898.      * The full synchronization replication of the %1 database from the
  899.      * domain controller %2 failed.
  900.      */
  901.  
  902. #define NELOG_NetlogonAuthNoDomainController    (ERRLOG2_BASE + 19)
  903.     /*
  904.      *  No domain controller for the domain %1 is available.
  905.      */
  906.  
  907. #define NELOG_NetlogonAuthNoTrustLsaSecret      (ERRLOG2_BASE + 20)
  908.     /*
  909.      * The session setup to the domain controller %1 for the domain %2
  910.      * failed because the computer %3 does not have a local security database account.
  911.      */
  912.  
  913. #define NELOG_NetlogonAuthNoTrustSamAccount     (ERRLOG2_BASE + 21)
  914.     /*
  915.      * The session setup to the domain controller %1 for the domain %2
  916.      * failed because the domain controller does not have an account for the
  917.      * computer %3.
  918.      */
  919.  
  920. #define NELOG_NetlogonServerAuthFailed          (ERRLOG2_BASE + 22)
  921.     /*
  922.      * The session setup from the computer %1 failed to authenticate.
  923.      * The name of the account referenced on the security database is
  924.      * %2.
  925.      */
  926.  
  927. #define NELOG_NetlogonServerAuthNoTrustSamAccount (ERRLOG2_BASE + 23)
  928.     /*
  929.      * The session setup from the computer %1 failed because there is
  930.      * no trust account in the security database for this computer. The name of
  931.      * the account referenced on the security database is %2.
  932.      */
  933.  
  934. //
  935. // General log messages for NT services.
  936. //
  937.  
  938. #define NELOG_FailedToRegisterSC                  (ERRLOG2_BASE + 24)
  939.     /*
  940.      * Could not register control handler with service controller %1.
  941.      */
  942.  
  943. #define NELOG_FailedToSetServiceStatus            (ERRLOG2_BASE + 25)
  944.     /*
  945.      * Could not set service status with service controller %1.
  946.      */
  947.  
  948. #define NELOG_FailedToGetComputerName             (ERRLOG2_BASE + 26)
  949.     /*
  950.      * Could not find the computername %1.
  951.      */
  952.  
  953. #define NELOG_DriverNotLoaded                     (ERRLOG2_BASE + 27)
  954.     /*
  955.      * Could not load %1 device driver.
  956.      */
  957.  
  958. #define NELOG_NoTranportLoaded                    (ERRLOG2_BASE + 28)
  959.     /*
  960.      * Could not load any transport.
  961.      */
  962.  
  963. #endif // _LMERRLOG_
  964.