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.

1243 lines
36 KiB

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