Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1204 lines
34 KiB

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