📄 lmerrlog.h
字号:
/*++ BUILD Version: 0002 // Increment this if a change has global effects
Copyright 1991-1998 Microsoft Corporation
Module Name:
lmerrlog.h
Abstract:
This module defines the API function prototypes and data structures
for the following groups of NT API functions:
NetErrorLog
Environment:
User Mode - Win32
Notes:
You must include NETCONS.H before this file, since this file depends
on values defined in NETCONS.H.
--*/
#ifndef _LMERRLOG_
#define _LMERRLOG_
#ifdef __cplusplus
extern "C" {
#endif
//
// Data Structures - Config
//
typedef struct _ERROR_LOG {
DWORD el_len;
DWORD el_reserved;
DWORD el_time;
DWORD el_error;
LPWSTR el_name; // pointer to service name
LPWSTR el_text; // pointer to string array
LPBYTE el_data; // pointer to BYTE array
DWORD el_data_size; // byte count of el_data area
DWORD el_nstrings; // number of strings in el_text.
} ERROR_LOG, *PERROR_LOG, *LPERROR_LOG;
// Temporary to let users ifdef on this struct layout.
#define REVISED_ERROR_LOG_STRUCT
#ifndef _LMHLOGDEFINED_
#define _LMHLOGDEFINED_
typedef struct _HLOG {
DWORD time;
DWORD last_flags;
DWORD offset;
DWORD rec_offset;
} HLOG, *PHLOG, *LPHLOG;
#define LOGFLAGS_FORWARD 0
#define LOGFLAGS_BACKWARD 0x1
#define LOGFLAGS_SEEK 0x2
#endif
//
// Function Prototypes - ErrorLog
//
NET_API_STATUS NET_API_FUNCTION
NetErrorLogClear (
IN LPCWSTR server,
IN LPCWSTR backupfile,
IN LPBYTE reserved
);
NET_API_STATUS NET_API_FUNCTION
NetErrorLogRead (
IN LPCWSTR server,
IN LPWSTR reserved1,
IN LPHLOG errloghandle,
IN DWORD offset,
IN LPDWORD reserved2,
IN DWORD reserved3,
IN DWORD offsetflag,
OUT LPBYTE * bufptr,
IN DWORD prefmaxlen,
OUT LPDWORD bytesread,
OUT LPDWORD totalbytes
);
NET_API_STATUS NET_API_FUNCTION
NetErrorLogWrite (
IN LPBYTE reserved1,
IN DWORD code,
IN LPCWSTR component,
IN LPBYTE buffer,
IN DWORD numbytes,
IN LPBYTE msgbuf,
IN DWORD strcount,
IN LPBYTE reserved2
);
//
// Special Values and Constants
//
//
// Generic (could be used by more than one service)
// error log messages from 0 to 25
//
// Do not change the comments following the manifest constants without
// understanding how mapmsg works.
//
#define ERRLOG_BASE 3100 /* NELOG errors start here */
#define NELOG_Internal_Error (ERRLOG_BASE + 0)
/*
* The operation failed because a network software error occurred.
*/
#define NELOG_Resource_Shortage (ERRLOG_BASE + 1)
/*
* The system ran out of a resource controlled by the %1 option.
*/
#define NELOG_Unable_To_Lock_Segment (ERRLOG_BASE + 2)
/*
* The service failed to obtain a long-term lock on the
* segment for network control blocks (NCBs). The error code is the data.
*/
#define NELOG_Unable_To_Unlock_Segment (ERRLOG_BASE + 3)
/*
* The service failed to release the long-term lock on the
* segment for network control blocks (NCBs). The error code is the data.
*/
#define NELOG_Uninstall_Service (ERRLOG_BASE + 4)
/*
* There was an error stopping service %1.
* The error code from NetServiceControl is the data.
*/
#define NELOG_Init_Exec_Fail (ERRLOG_BASE + 5)
/*
* Initialization failed because of a system execution failure on
* path %1. The system error code is the data.
*/
#define NELOG_Ncb_Error (ERRLOG_BASE + 6)
/*
* An unexpected network control block (NCB) was received. The NCB is the data.
*/
#define NELOG_Net_Not_Started (ERRLOG_BASE + 7)
/*
* The network is not started.
*/
#define NELOG_Ioctl_Error (ERRLOG_BASE + 8)
/*
* A DosDevIoctl or DosFsCtl to NETWKSTA.SYS failed.
* The data shown is in this format:
* DWORD approx CS:IP of call to ioctl or fsctl
* WORD error code
* WORD ioctl or fsctl number
*/
#define NELOG_System_Semaphore (ERRLOG_BASE + 9)
/*
* Unable to create or open system semaphore %1.
* The error code is the data.
*/
#define NELOG_Init_OpenCreate_Err (ERRLOG_BASE + 10)
/*
* Initialization failed because of an open/create error on the
* file %1. The system error code is the data.
*/
#define NELOG_NetBios (ERRLOG_BASE + 11)
/*
* An unexpected NetBIOS error occurred.
* The error code is the data.
*/
#define NELOG_SMB_Illegal (ERRLOG_BASE + 12)
/*
* An illegal server message block (SMB) was received.
* The SMB is the data.
*/
#define NELOG_Service_Fail (ERRLOG_BASE + 13)
/*
* Initialization failed because the requested service %1
* could not be started.
*/
#define NELOG_Entries_Lost (ERRLOG_BASE + 14)
/*
* Some entries in the error log were lost because of a buffer
* overflow.
*/
//
// Server specific error log messages from 20 to 40
//
#define NELOG_Init_Seg_Overflow (ERRLOG_BASE + 20)
/*
* Initialization parameters controlling resource usage other
* than net buffers are sized so that too much memory is needed.
*/
#define NELOG_Srv_No_Mem_Grow (ERRLOG_BASE + 21)
/*
* The server cannot increase the size of a memory segment.
*/
#define NELOG_Access_File_Bad (ERRLOG_BASE + 22)
/*
* Initialization failed because account file %1 is either incorrect
* or not present.
*/
#define NELOG_Srvnet_Not_Started (ERRLOG_BASE + 23)
/*
* Initialization failed because network %1 was not started.
*/
#define NELOG_Init_Chardev_Err (ERRLOG_BASE + 24)
/*
* The server failed to start. Either all three chdev
* parameters must be zero or all three must be nonzero.
*/
#define NELOG_Remote_API (ERRLOG_BASE + 25)
/* A remote API request was halted due to the following
* invalid description string: %1.
*/
#define NELOG_Ncb_TooManyErr (ERRLOG_BASE + 26)
/* The network %1 ran out of network control blocks (NCBs). You may need to increase NCBs
* for this network. The following information includes the
* number of NCBs submitted by the server when this error occurred:
*/
#define NELOG_Mailslot_err (ERRLOG_BASE + 27)
/* The server cannot create the %1 mailslot needed to send
* the ReleaseMemory alert message. The error received is:
*/
#define NELOG_ReleaseMem_Alert (ERRLOG_BASE + 28)
/* The server failed to register for the ReleaseMemory alert,
* with recipient %1. The error code from
* NetAlertStart is the data.
*/
#define NELOG_AT_cannot_write (ERRLOG_BASE + 29)
/* The server cannot update the AT schedule file. The file
* is corrupted.
*/
#define NELOG_Cant_Make_Msg_File (ERRLOG_BASE + 30)
/* The server encountered an error when calling
* NetIMakeLMFileName. The error code is the data.
*/
#define NELOG_Exec_Netservr_NoMem (ERRLOG_BASE + 31)
/* Initialization failed because of a system execution failure on
* path %1. There is not enough memory to start the process.
* The system error code is the data.
*/
#define NELOG_Server_Lock_Failure (ERRLOG_BASE + 32)
/* Longterm lock of the server buffers failed.
* Check swap disk's free space and restart the system to start the server.
*/
//
// Message service and POPUP specific error log messages from 40 to 55
//
#define NELOG_Msg_Shutdown (ERRLOG_BASE + 40)
/*
* The service has stopped due to repeated consecutive
* occurrences of a network control block (NCB) error. The last bad NCB follows
* in raw data.
*/
#define NELOG_Msg_Sem_Shutdown (ERRLOG_BASE + 41)
/*
* The Message server has stopped due to a lock on the
* Message server shared data segment.
*/
#define NELOG_Msg_Log_Err (ERRLOG_BASE + 50)
/*
* A file system error occurred while opening or writing to the
* system message log file %1. Message logging has been
* switched off due to the error. The error code is the data.
*/
#define NELOG_VIO_POPUP_ERR (ERRLOG_BASE + 51)
/*
* Unable to display message POPUP due to system VIO call error.
* The error code is the data.
*/
#define NELOG_Msg_Unexpected_SMB_Type (ERRLOG_BASE + 52)
/*
* An illegal server message block (SMB) was received. The SMB is the data.
*/
//
// Workstation specific error log messages from 60 to 75
//
#define NELOG_Wksta_Infoseg (ERRLOG_BASE + 60)
/*
* The workstation information segment is bigger than 64K.
* The size follows, in DWORD format:
*/
#define NELOG_Wksta_Compname (ERRLOG_BASE + 61)
/*
* The workstation was unable to get the name-number of the computer.
*/
#define NELOG_Wksta_BiosThreadFailure (ERRLOG_BASE + 62)
/*
* The workstation could not initialize the Async NetBIOS Thread.
* The error code is the data.
*/
#define NELOG_Wksta_IniSeg (ERRLOG_BASE + 63)
/*
* The workstation could not open the initial shared segment.
* The error code is the data.
*/
#define NELOG_Wksta_HostTab_Full (ERRLOG_BASE + 64)
/*
* The workstation host table is full.
*/
#define NELOG_Wksta_Bad_Mailslot_SMB (ERRLOG_BASE + 65)
/*
* A bad mailslot server message block (SMB) was received. The SMB is the data.
*/
#define NELOG_Wksta_UASInit (ERRLOG_BASE + 66)
/*
* The workstation encountered an error while trying to start the user accounts database.
* The error code is the data.
*/
#define NELOG_Wksta_SSIRelogon (ERRLOG_BASE + 67)
/*
* The workstation encountered an error while responding to an SSI revalidation request.
* The function code and the error codes are the data.
*/
//
// Alerter service specific error log messages from 70 to 79
//
#define NELOG_Build_Name (ERRLOG_BASE + 70)
/*
* The Alerter service had a problem creating the list of
* alert recipients. The error code is %1.
*/
#define NELOG_Name_Expansion (ERRLOG_BASE + 71)
/*
* There was an error expanding %1 as a group name. Try
* splitting the group into two or more smaller groups.
*/
#define NELOG_Message_Send (ERRLOG_BASE + 72)
/*
* There was an error sending %2 the alert message -
* (
* %3 )
* The error code is %1.
*/
#define NELOG_Mail_Slt_Err (ERRLOG_BASE + 73)
/*
* There was an error in creating or reading the alerter mailslot.
* The error code is %1.
*/
#define NELOG_AT_cannot_read (ERRLOG_BASE + 74)
/*
* The server could not read the AT schedule file.
*/
#define NELOG_AT_sched_err (ERRLOG_BASE + 75)
/*
* The server found an invalid AT schedule record.
*/
#define NELOG_AT_schedule_file_created (ERRLOG_BASE + 76)
/*
* The server could not find an AT schedule file so it created one.
*/
#define NELOG_Srvnet_NB_Open (ERRLOG_BASE + 77)
/*
* The server could not access the %1 network with NetBiosOpen.
*/
#define NELOG_AT_Exec_Err (ERRLOG_BASE + 78)
/*
* The AT command processor could not run %1.
*/
//
// Cache Lazy Write and HPFS386 specific error log messages from 80 to 89
//
#define NELOG_Lazy_Write_Err (ERRLOG_BASE + 80)
/*
* WARNING: Because of a lazy-write error, drive %1 now
* contains some corrupted data. The cache is stopped.
*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -