OSDN Git Service

More on assuming GCC is greater than or equal to version 3.5.4 and that
[mingw/mingw-org-wsl.git] / include / lmerrlog.h
1 #ifndef _LMERRLOG_H
2 #define _LMERRLOG_H
3 #pragma GCC system_header
4
5 #ifdef __cplusplus
6 extern "C" {
7 #endif
8 #define ERRLOG_BASE 3100
9 #define ERRLOG2_BASE 5700 
10 #define LOGFLAGS_FORWARD 0
11 #define LOGFLAGS_BACKWARD 1
12 #define LOGFLAGS_SEEK 2
13 #define NELOG_Internal_Error ERRLOG_BASE
14 #define NELOG_Resource_Shortage (ERRLOG_BASE+1)
15 #define NELOG_Unable_To_Lock_Segment (ERRLOG_BASE+2)
16 #define NELOG_Unable_To_Unlock_Segment (ERRLOG_BASE+3)
17 #define NELOG_Uninstall_Service (ERRLOG_BASE+4)
18 #define NELOG_Init_Exec_Fail (ERRLOG_BASE+5)
19 #define NELOG_Ncb_Error (ERRLOG_BASE+6)
20 #define NELOG_Net_Not_Started (ERRLOG_BASE+7)
21 #define NELOG_Ioctl_Error (ERRLOG_BASE+8)
22 #define NELOG_System_Semaphore (ERRLOG_BASE+9)
23 #define NELOG_Init_OpenCreate_Err (ERRLOG_BASE+10)
24 #define NELOG_NetBios (ERRLOG_BASE+11)
25 #define NELOG_SMB_Illegal (ERRLOG_BASE+12)
26 #define NELOG_Service_Fail (ERRLOG_BASE+13)
27 #define NELOG_Entries_Lost (ERRLOG_BASE+14)
28 #define NELOG_Init_Seg_Overflow (ERRLOG_BASE+20)
29 #define NELOG_Srv_No_Mem_Grow (ERRLOG_BASE+21)
30 #define NELOG_Access_File_Bad (ERRLOG_BASE+22)
31 #define NELOG_Srvnet_Not_Started (ERRLOG_BASE+23)
32 #define NELOG_Init_Chardev_Err (ERRLOG_BASE+24)
33 #define NELOG_Remote_API (ERRLOG_BASE+25)
34 #define NELOG_Ncb_TooManyErr (ERRLOG_BASE+26)
35 #define NELOG_Mailslot_err (ERRLOG_BASE+27)
36 #define NELOG_ReleaseMem_Alert (ERRLOG_BASE+28)
37 #define NELOG_AT_cannot_write (ERRLOG_BASE+29)
38 #define NELOG_Cant_Make_Msg_File (ERRLOG_BASE+30)
39 #define NELOG_Exec_Netservr_NoMem (ERRLOG_BASE+31)
40 #define NELOG_Server_Lock_Failure (ERRLOG_BASE+32)
41 #define NELOG_Msg_Shutdown (ERRLOG_BASE+40)
42 #define NELOG_Msg_Sem_Shutdown (ERRLOG_BASE+41)
43 #define NELOG_Msg_Log_Err (ERRLOG_BASE+50)
44 #define NELOG_VIO_POPUP_ERR (ERRLOG_BASE+51)
45 #define NELOG_Msg_Unexpected_SMB_Type (ERRLOG_BASE+52)
46 #define NELOG_Wksta_Infoseg (ERRLOG_BASE+60)
47 #define NELOG_Wksta_Compname (ERRLOG_BASE+61)
48 #define NELOG_Wksta_BiosThreadFailure (ERRLOG_BASE+62)
49 #define NELOG_Wksta_IniSeg (ERRLOG_BASE+63)
50 #define NELOG_Wksta_HostTab_Full (ERRLOG_BASE+64)
51 #define NELOG_Wksta_Bad_Mailslot_SMB (ERRLOG_BASE+65)
52 #define NELOG_Wksta_UASInit (ERRLOG_BASE+66)
53 #define NELOG_Wksta_SSIRelogon (ERRLOG_BASE+67)
54 #define NELOG_Build_Name (ERRLOG_BASE+70)
55 #define NELOG_Name_Expansion (ERRLOG_BASE+71)
56 #define NELOG_Message_Send (ERRLOG_BASE+72)
57 #define NELOG_Mail_Slt_Err (ERRLOG_BASE+73)
58 #define NELOG_AT_cannot_read (ERRLOG_BASE+74)
59 #define NELOG_AT_sched_err (ERRLOG_BASE+75)
60 #define NELOG_AT_schedule_file_created (ERRLOG_BASE+76)
61 #define NELOG_Srvnet_NB_Open (ERRLOG_BASE+77)
62 #define NELOG_AT_Exec_Err (ERRLOG_BASE+78)
63 #define NELOG_Lazy_Write_Err (ERRLOG_BASE+80)
64 #define NELOG_HotFix (ERRLOG_BASE+81)
65 #define NELOG_HardErr_From_Server (ERRLOG_BASE+82)
66 #define NELOG_LocalSecFail1 (ERRLOG_BASE+83)
67 #define NELOG_LocalSecFail2 (ERRLOG_BASE+84)
68 #define NELOG_LocalSecFail3 (ERRLOG_BASE+85)
69 #define NELOG_LocalSecGeneralFail (ERRLOG_BASE+86)
70 #define NELOG_NetWkSta_Internal_Error (ERRLOG_BASE+90)
71 #define NELOG_NetWkSta_No_Resource (ERRLOG_BASE+91)
72 #define NELOG_NetWkSta_SMB_Err (ERRLOG_BASE+92)
73 #define NELOG_NetWkSta_VC_Err (ERRLOG_BASE+93)
74 #define NELOG_NetWkSta_Stuck_VC_Err (ERRLOG_BASE+94)
75 #define NELOG_NetWkSta_NCB_Err (ERRLOG_BASE+95)
76 #define NELOG_NetWkSta_Write_Behind_Err (ERRLOG_BASE+96)
77 #define NELOG_NetWkSta_Reset_Err (ERRLOG_BASE+97)
78 #define NELOG_NetWkSta_Too_Many (ERRLOG_BASE+98)
79 #define NELOG_Srv_Thread_Failure (ERRLOG_BASE+104)
80 #define NELOG_Srv_Close_Failure (ERRLOG_BASE+105)
81 #define NELOG_ReplUserCurDir (ERRLOG_BASE+106)
82 #define NELOG_ReplCannotMasterDir (ERRLOG_BASE+107)
83 #define NELOG_ReplUpdateError (ERRLOG_BASE+108)
84 #define NELOG_ReplLostMaster (ERRLOG_BASE+109)
85 #define NELOG_NetlogonAuthDCFail (ERRLOG_BASE+110)
86 #define NELOG_ReplLogonFailed (ERRLOG_BASE+111)
87 #define NELOG_ReplNetErr (ERRLOG_BASE+112)
88 #define NELOG_ReplMaxFiles (ERRLOG_BASE+113)
89 #define NELOG_ReplMaxTreeDepth (ERRLOG_BASE+114)
90 #define NELOG_ReplBadMsg (ERRLOG_BASE+115)
91 #define NELOG_ReplSysErr (ERRLOG_BASE+116)
92 #define NELOG_ReplUserLoged (ERRLOG_BASE+117)
93 #define NELOG_ReplBadImport (ERRLOG_BASE+118)
94 #define NELOG_ReplBadExport (ERRLOG_BASE+119)
95 #define NELOG_ReplSignalFileErr (ERRLOG_BASE+120)
96 #define NELOG_DiskFT (ERRLOG_BASE+121)
97 #define NELOG_ReplAccessDenied (ERRLOG_BASE+122)
98 #define NELOG_NetlogonFailedPrimary (ERRLOG_BASE+123)
99 #define NELOG_NetlogonPasswdSetFailed (ERRLOG_BASE+124)
100 #define NELOG_NetlogonTrackingError (ERRLOG_BASE+125)
101 #define NELOG_NetlogonSyncError (ERRLOG_BASE+126)
102 #define NELOG_UPS_PowerOut (ERRLOG_BASE+130)
103 #define NELOG_UPS_Shutdown (ERRLOG_BASE+131)
104 #define NELOG_UPS_CmdFileError (ERRLOG_BASE+132)
105 #define NELOG_UPS_CannotOpenDriver (ERRLOG_BASE+133)
106 #define NELOG_UPS_PowerBack (ERRLOG_BASE+134)
107 #define NELOG_UPS_CmdFileConfig (ERRLOG_BASE+135)
108 #define NELOG_UPS_CmdFileExec (ERRLOG_BASE+136)
109 #define NELOG_Missing_Parameter (ERRLOG_BASE+150)
110 #define NELOG_Invalid_Config_Line (ERRLOG_BASE+151)
111 #define NELOG_Invalid_Config_File (ERRLOG_BASE+152)
112 #define NELOG_File_Changed (ERRLOG_BASE+153)
113 #define NELOG_Files_Dont_Fit (ERRLOG_BASE+154)
114 #define NELOG_Wrong_DLL_Version (ERRLOG_BASE+155)
115 #define NELOG_Error_in_DLL (ERRLOG_BASE+156)
116 #define NELOG_System_Error (ERRLOG_BASE+157)
117 #define NELOG_FT_ErrLog_Too_Large (ERRLOG_BASE+158)
118 #define NELOG_FT_Update_In_Progress (ERRLOG_BASE+159)
119 #define NELOG_OEM_Code (ERRLOG_BASE+199)
120 #define NELOG_NetlogonSSIInitError ERRLOG2_BASE
121 #define NELOG_NetlogonFailedToUpdateTrustList (ERRLOG2_BASE+1)
122 #define NELOG_NetlogonFailedToAddRpcInterface (ERRLOG2_BASE+2)
123 #define NELOG_NetlogonFailedToReadMailslot (ERRLOG2_BASE+3)
124 #define NELOG_NetlogonFailedToRegisterSC (ERRLOG2_BASE+4)
125 #define NELOG_NetlogonChangeLogCorrupt (ERRLOG2_BASE+5)
126 #define NELOG_NetlogonFailedToCreateShare (ERRLOG2_BASE+6)
127 #define NELOG_NetlogonDownLevelLogonFailed (ERRLOG2_BASE+7)
128 #define NELOG_NetlogonDownLevelLogoffFailed (ERRLOG2_BASE+8)
129 #define NELOG_NetlogonNTLogonFailed (ERRLOG2_BASE+9)
130 #define NELOG_NetlogonNTLogoffFailed (ERRLOG2_BASE+10)
131 #define NELOG_NetlogonPartialSyncCallSuccess (ERRLOG2_BASE+11)
132 #define NELOG_NetlogonPartialSyncCallFailed (ERRLOG2_BASE+12)
133 #define NELOG_NetlogonFullSyncCallSuccess (ERRLOG2_BASE+13)
134 #define NELOG_NetlogonFullSyncCallFailed (ERRLOG2_BASE+14)
135 #define NELOG_NetlogonPartialSyncSuccess (ERRLOG2_BASE+15)
136 #define NELOG_NetlogonPartialSyncFailed (ERRLOG2_BASE+16)
137 #define NELOG_NetlogonFullSyncSuccess (ERRLOG2_BASE+17)
138 #define NELOG_NetlogonFullSyncFailed (ERRLOG2_BASE+18)
139 #define NELOG_NetlogonAuthNoDomainController (ERRLOG2_BASE+19)
140 #define NELOG_NetlogonAuthNoTrustLsaSecret (ERRLOG2_BASE+20)
141 #define NELOG_NetlogonAuthNoTrustSamAccount (ERRLOG2_BASE+21)
142 #define NELOG_NetlogonServerAuthFailed (ERRLOG2_BASE+22)
143 #define NELOG_NetlogonServerAuthNoTrustSamAccount (ERRLOG2_BASE+23)
144 #define NELOG_FailedToRegisterSC (ERRLOG2_BASE+24)
145 #define NELOG_FailedToSetServiceStatus (ERRLOG2_BASE+25)
146 #define NELOG_FailedToGetComputerName (ERRLOG2_BASE+26)
147 #define NELOG_DriverNotLoaded (ERRLOG2_BASE+27)
148 #define NELOG_NoTranportLoaded (ERRLOG2_BASE+28)
149 #define NELOG_NetlogonFailedDomainDelta (ERRLOG2_BASE+29)
150 #define NELOG_NetlogonFailedGlobalGroupDelta (ERRLOG2_BASE+30)
151 #define NELOG_NetlogonFailedLocalGroupDelta (ERRLOG2_BASE+31)
152 #define NELOG_NetlogonFailedUserDelta (ERRLOG2_BASE+32)
153 #define NELOG_NetlogonFailedPolicyDelta (ERRLOG2_BASE+33)
154 #define NELOG_NetlogonFailedTrustedDomainDelta (ERRLOG2_BASE+34)
155 #define NELOG_NetlogonFailedAccountDelta (ERRLOG2_BASE+35)
156 #define NELOG_NetlogonFailedSecretDelta (ERRLOG2_BASE+36)
157 #define NELOG_NetlogonSystemError (ERRLOG2_BASE+37)
158 #define NELOG_NetlogonDuplicateMachineAccounts (ERRLOG2_BASE+38)
159 #define NELOG_NetlogonTooManyGlobalGroups (ERRLOG2_BASE+39)
160 #define NELOG_NetlogonBrowserDriver (ERRLOG2_BASE+40)
161 #define NELOG_NetlogonAddNameFailure (ERRLOG2_BASE+41)
162 #define NELOG_RplMessages (ERRLOG2_BASE+42)
163 #define NELOG_RplXnsBoot (ERRLOG2_BASE+43)
164 #define NELOG_RplSystem (ERRLOG2_BASE+44)
165 #define NELOG_RplWkstaTimeout (ERRLOG2_BASE+45)
166 #define NELOG_RplWkstaFileOpen (ERRLOG2_BASE+46)
167 #define NELOG_RplWkstaFileRead (ERRLOG2_BASE+47)
168 #define NELOG_RplWkstaMemory (ERRLOG2_BASE+48)
169 #define NELOG_RplWkstaFileChecksum (ERRLOG2_BASE+49)
170 #define NELOG_RplWkstaFileLineCount (ERRLOG2_BASE+50)
171 #define NELOG_RplWkstaBbcFile (ERRLOG2_BASE+51)
172 #define NELOG_RplWkstaFileSize (ERRLOG2_BASE+52)
173 #define NELOG_RplWkstaInternal (ERRLOG2_BASE+53)
174 #define NELOG_RplWkstaWrongVersion (ERRLOG2_BASE+54)
175 #define NELOG_RplWkstaNetwork (ERRLOG2_BASE+55)
176 #define NELOG_RplAdapterResource (ERRLOG2_BASE+56)
177 #define NELOG_RplFileCopy (ERRLOG2_BASE+57)
178 #define NELOG_RplFileDelete (ERRLOG2_BASE+58)
179 #define NELOG_RplFilePerms (ERRLOG2_BASE+59)
180 #define NELOG_RplCheckConfigs (ERRLOG2_BASE+60)
181 #define NELOG_RplCreateProfiles (ERRLOG2_BASE+61)
182 #define NELOG_RplRegistry (ERRLOG2_BASE+62)
183 #define NELOG_RplReplaceRPLDISK (ERRLOG2_BASE+63)
184 #define NELOG_RplCheckSecurity (ERRLOG2_BASE+64)
185 #define NELOG_RplBackupDatabase (ERRLOG2_BASE+65)
186 #define NELOG_RplInitDatabase (ERRLOG2_BASE+66)
187 #define NELOG_RplRestoreDatabaseFailure (ERRLOG2_BASE+67)
188 #define NELOG_RplRestoreDatabaseSuccess (ERRLOG2_BASE+68)
189 #define NELOG_RplInitRestoredDatabase (ERRLOG2_BASE+69)
190 #define NELOG_NetlogonSessionTypeWrong (ERRLOG2_BASE+70)
191 #define REVISED_ERROR_LOG_STRUCT
192 typedef struct _ERROR_LOG {
193         DWORD el_len;
194         DWORD el_reserved;
195         DWORD el_time;
196         DWORD el_error;
197         LPWSTR el_name; 
198         LPWSTR el_text; 
199         LPBYTE el_data; 
200         DWORD el_data_size; 
201         DWORD el_nstrings; 
202 } ERROR_LOG,*PERROR_LOG,*LPERROR_LOG;
203 NET_API_STATUS WINAPI NetErrorLogClear(LPCWSTR,LPCWSTR,LPBYTE);
204 NET_API_STATUS WINAPI NetErrorLogRead(LPCWSTR,LPWSTR,LPHLOG,DWORD,LPDWORD,DWORD,DWORD,LPBYTE*,DWORD,LPDWORD,LPDWORD);
205 NET_API_STATUS WINAPI NetErrorLogWrite(LPBYTE,DWORD,LPCWSTR,LPBYTE,DWORD,LPBYTE,DWORD,LPBYTE);
206 #ifdef __cplusplus
207 }
208 #endif
209 #endif