1*148c5f43SAlan Wright /* 2*148c5f43SAlan Wright * CDDL HEADER START 3*148c5f43SAlan Wright * 4*148c5f43SAlan Wright * The contents of this file are subject to the terms of the 5*148c5f43SAlan Wright * Common Development and Distribution License (the "License"). 6*148c5f43SAlan Wright * You may not use this file except in compliance with the License. 7*148c5f43SAlan Wright * 8*148c5f43SAlan Wright * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*148c5f43SAlan Wright * or http://www.opensolaris.org/os/licensing. 10*148c5f43SAlan Wright * See the License for the specific language governing permissions 11*148c5f43SAlan Wright * and limitations under the License. 12*148c5f43SAlan Wright * 13*148c5f43SAlan Wright * When distributing Covered Code, include this CDDL HEADER in each 14*148c5f43SAlan Wright * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*148c5f43SAlan Wright * If applicable, add the following below this CDDL HEADER, with the 16*148c5f43SAlan Wright * fields enclosed by brackets "[]" replaced with your own identifying 17*148c5f43SAlan Wright * information: Portions Copyright [yyyy] [name of copyright owner] 18*148c5f43SAlan Wright * 19*148c5f43SAlan Wright * CDDL HEADER END 20*148c5f43SAlan Wright */ 21*148c5f43SAlan Wright 22*148c5f43SAlan Wright /* 23*148c5f43SAlan Wright * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. 24*148c5f43SAlan Wright */ 25*148c5f43SAlan Wright 26*148c5f43SAlan Wright #ifndef _SMB_LMERR_H 27*148c5f43SAlan Wright #define _SMB_LMERR_H 28*148c5f43SAlan Wright 29*148c5f43SAlan Wright /* 30*148c5f43SAlan Wright * This file contains the LAN Manager network error definitions. All 31*148c5f43SAlan Wright * network error codes are relative to NERR_BASE (2100), assigned by 32*148c5f43SAlan Wright * Microsoft, to avoid conflicts with system and redirector error 33*148c5f43SAlan Wright * codes. It should be safe to mix NERR error codes with the Win32 34*148c5f43SAlan Wright * error codes defined in nterror.h. 35*148c5f43SAlan Wright * 36*148c5f43SAlan Wright * This file defines error codes in the range 2100 - 2999. NERR values 37*148c5f43SAlan Wright * must not exceed MAX_NERR (2999); values above this are used by other 38*148c5f43SAlan Wright * services. 39*148c5f43SAlan Wright * 40*148c5f43SAlan Wright * The range 2750-2799 has been allocated to the IBM LAN Server. 41*148c5f43SAlan Wright * The range 2900-2999 has been reserved for Microsoft OEMs. 42*148c5f43SAlan Wright * 43*148c5f43SAlan Wright * See lmcons.h for information on the full LANMAN error code range. 44*148c5f43SAlan Wright * 45*148c5f43SAlan Wright * See msdn.microsoft.com for additional information on the meaning 46*148c5f43SAlan Wright * of each error code. 47*148c5f43SAlan Wright * 48*148c5f43SAlan Wright * This file is compatible with the Windows SDK file: Include/LMErr.h 49*148c5f43SAlan Wright * Please preserve this compatibility. 50*148c5f43SAlan Wright */ 51*148c5f43SAlan Wright 52*148c5f43SAlan Wright #ifdef __cplusplus 53*148c5f43SAlan Wright extern "C" { 54*148c5f43SAlan Wright #endif 55*148c5f43SAlan Wright 56*148c5f43SAlan Wright #define NERR_Success 0 57*148c5f43SAlan Wright 58*148c5f43SAlan Wright #define NERR_BASE 2100 59*148c5f43SAlan Wright 60*148c5f43SAlan Wright /* UNUSED BASE+0 */ 61*148c5f43SAlan Wright /* UNUSED BASE+1 */ 62*148c5f43SAlan Wright #define NERR_NetNotStarted (NERR_BASE+2) 63*148c5f43SAlan Wright #define NERR_UnknownServer (NERR_BASE+3) 64*148c5f43SAlan Wright #define NERR_ShareMem (NERR_BASE+4) 65*148c5f43SAlan Wright 66*148c5f43SAlan Wright #define NERR_NoNetworkResource (NERR_BASE+5) 67*148c5f43SAlan Wright #define NERR_RemoteOnly (NERR_BASE+6) 68*148c5f43SAlan Wright #define NERR_DevNotRedirected (NERR_BASE+7) 69*148c5f43SAlan Wright /* NERR_BASE+8 is ERROR_CONNECTED_OTHER_PASSWORD */ 70*148c5f43SAlan Wright /* NERR_BASE+9 is ERROR_CONNECTED_OTHER_PASSWORD_DEFAULT */ 71*148c5f43SAlan Wright /* UNUSED BASE+10 */ 72*148c5f43SAlan Wright /* UNUSED BASE+11 */ 73*148c5f43SAlan Wright /* UNUSED BASE+12 */ 74*148c5f43SAlan Wright /* UNUSED BASE+13 */ 75*148c5f43SAlan Wright #define NERR_ServerNotStarted (NERR_BASE+14) 76*148c5f43SAlan Wright #define NERR_ItemNotFound (NERR_BASE+15) 77*148c5f43SAlan Wright #define NERR_UnknownDevDir (NERR_BASE+16) 78*148c5f43SAlan Wright #define NERR_RedirectedPath (NERR_BASE+17) 79*148c5f43SAlan Wright #define NERR_DuplicateShare (NERR_BASE+18) 80*148c5f43SAlan Wright #define NERR_NoRoom (NERR_BASE+19) 81*148c5f43SAlan Wright /* UNUSED BASE+20 */ 82*148c5f43SAlan Wright #define NERR_TooManyItems (NERR_BASE+21) 83*148c5f43SAlan Wright #define NERR_InvalidMaxUsers (NERR_BASE+22) 84*148c5f43SAlan Wright #define NERR_BufTooSmall (NERR_BASE+23) 85*148c5f43SAlan Wright /* UNUSED BASE+24 */ 86*148c5f43SAlan Wright /* UNUSED BASE+25 */ 87*148c5f43SAlan Wright /* UNUSED BASE+26 */ 88*148c5f43SAlan Wright #define NERR_RemoteErr (NERR_BASE+27) 89*148c5f43SAlan Wright /* UNUSED BASE+28 */ 90*148c5f43SAlan Wright /* UNUSED BASE+29 */ 91*148c5f43SAlan Wright /* UNUSED BASE+30 */ 92*148c5f43SAlan Wright #define NERR_LanmanIniError (NERR_BASE+31) 93*148c5f43SAlan Wright /* UNUSED BASE+32 */ 94*148c5f43SAlan Wright /* UNUSED BASE+33 */ 95*148c5f43SAlan Wright /* UNUSED BASE+34 */ 96*148c5f43SAlan Wright /* UNUSED BASE+35 */ 97*148c5f43SAlan Wright #define NERR_NetworkError (NERR_BASE+36) 98*148c5f43SAlan Wright #define NERR_WkstaInconsistentState (NERR_BASE+37) 99*148c5f43SAlan Wright #define NERR_WkstaNotStarted (NERR_BASE+38) 100*148c5f43SAlan Wright #define NERR_BrowserNotStarted (NERR_BASE+39) 101*148c5f43SAlan Wright #define NERR_InternalError (NERR_BASE+40) 102*148c5f43SAlan Wright #define NERR_BadTransactConfig (NERR_BASE+41) 103*148c5f43SAlan Wright #define NERR_InvalidAPI (NERR_BASE+42) 104*148c5f43SAlan Wright #define NERR_BadEventName (NERR_BASE+43) 105*148c5f43SAlan Wright #define NERR_DupNameReboot (NERR_BASE+44) 106*148c5f43SAlan Wright 107*148c5f43SAlan Wright /* 108*148c5f43SAlan Wright * Config API related 109*148c5f43SAlan Wright * Error codes from BASE+45 to BASE+49 110*148c5f43SAlan Wright */ 111*148c5f43SAlan Wright /* UNUSED BASE+45 */ 112*148c5f43SAlan Wright #define NERR_CfgCompNotFound (NERR_BASE+46) 113*148c5f43SAlan Wright #define NERR_CfgParamNotFound (NERR_BASE+47) 114*148c5f43SAlan Wright #define NERR_LineTooLong (NERR_BASE+49) 115*148c5f43SAlan Wright 116*148c5f43SAlan Wright /* 117*148c5f43SAlan Wright * Spooler API related 118*148c5f43SAlan Wright * Error codes from BASE+50 to BASE+79 119*148c5f43SAlan Wright */ 120*148c5f43SAlan Wright #define NERR_QNotFound (NERR_BASE+50) 121*148c5f43SAlan Wright #define NERR_JobNotFound (NERR_BASE+51) 122*148c5f43SAlan Wright #define NERR_DestNotFound (NERR_BASE+52) 123*148c5f43SAlan Wright #define NERR_DestExists (NERR_BASE+53) 124*148c5f43SAlan Wright #define NERR_QExists (NERR_BASE+54) 125*148c5f43SAlan Wright #define NERR_QNoRoom (NERR_BASE+55) 126*148c5f43SAlan Wright #define NERR_JobNoRoom (NERR_BASE+56) 127*148c5f43SAlan Wright #define NERR_DestNoRoom (NERR_BASE+57) 128*148c5f43SAlan Wright #define NERR_DestIdle (NERR_BASE+58) 129*148c5f43SAlan Wright #define NERR_DestInvalidOp (NERR_BASE+59) 130*148c5f43SAlan Wright #define NERR_ProcNoRespond (NERR_BASE+60) 131*148c5f43SAlan Wright #define NERR_SpoolerNotLoaded (NERR_BASE+61) 132*148c5f43SAlan Wright #define NERR_DestInvalidState (NERR_BASE+62) 133*148c5f43SAlan Wright #define NERR_QInvalidState (NERR_BASE+63) 134*148c5f43SAlan Wright #define NERR_JobInvalidState (NERR_BASE+64) 135*148c5f43SAlan Wright #define NERR_SpoolNoMemory (NERR_BASE+65) 136*148c5f43SAlan Wright #define NERR_DriverNotFound (NERR_BASE+66) 137*148c5f43SAlan Wright #define NERR_DataTypeInvalid (NERR_BASE+67) 138*148c5f43SAlan Wright #define NERR_ProcNotFound (NERR_BASE+68) 139*148c5f43SAlan Wright 140*148c5f43SAlan Wright /* 141*148c5f43SAlan Wright * Service API related 142*148c5f43SAlan Wright * Error codes from BASE+80 to BASE+99 143*148c5f43SAlan Wright */ 144*148c5f43SAlan Wright #define NERR_ServiceTableLocked (NERR_BASE+80) 145*148c5f43SAlan Wright #define NERR_ServiceTableFull (NERR_BASE+81) 146*148c5f43SAlan Wright #define NERR_ServiceInstalled (NERR_BASE+82) 147*148c5f43SAlan Wright #define NERR_ServiceEntryLocked (NERR_BASE+83) 148*148c5f43SAlan Wright #define NERR_ServiceNotInstalled (NERR_BASE+84) 149*148c5f43SAlan Wright #define NERR_BadServiceName (NERR_BASE+85) 150*148c5f43SAlan Wright #define NERR_ServiceCtlTimeout (NERR_BASE+86) 151*148c5f43SAlan Wright #define NERR_ServiceCtlBusy (NERR_BASE+87) 152*148c5f43SAlan Wright #define NERR_BadServiceProgName (NERR_BASE+88) 153*148c5f43SAlan Wright #define NERR_ServiceNotCtrl (NERR_BASE+89) 154*148c5f43SAlan Wright #define NERR_ServiceKillProc (NERR_BASE+90) 155*148c5f43SAlan Wright #define NERR_ServiceCtlNotValid (NERR_BASE+91) 156*148c5f43SAlan Wright #define NERR_NotInDispatchTbl (NERR_BASE+92) 157*148c5f43SAlan Wright #define NERR_BadControlRecv (NERR_BASE+93) 158*148c5f43SAlan Wright #define NERR_ServiceNotStarting (NERR_BASE+94) 159*148c5f43SAlan Wright 160*148c5f43SAlan Wright /* 161*148c5f43SAlan Wright * Wksta and Logon API related 162*148c5f43SAlan Wright * Error codes from BASE+100 to BASE+118 163*148c5f43SAlan Wright */ 164*148c5f43SAlan Wright #define NERR_AlreadyLoggedOn (NERR_BASE+100) 165*148c5f43SAlan Wright #define NERR_NotLoggedOn (NERR_BASE+101) 166*148c5f43SAlan Wright #define NERR_BadUsername (NERR_BASE+102) 167*148c5f43SAlan Wright #define NERR_BadPassword (NERR_BASE+103) 168*148c5f43SAlan Wright #define NERR_UnableToAddName_W (NERR_BASE+104) 169*148c5f43SAlan Wright #define NERR_UnableToAddName_F (NERR_BASE+105) 170*148c5f43SAlan Wright #define NERR_UnableToDelName_W (NERR_BASE+106) 171*148c5f43SAlan Wright #define NERR_UnableToDelName_F (NERR_BASE+107) 172*148c5f43SAlan Wright /* UNUSED BASE+108 */ 173*148c5f43SAlan Wright #define NERR_LogonsPaused (NERR_BASE+109) 174*148c5f43SAlan Wright #define NERR_LogonServerConflict (NERR_BASE+110) 175*148c5f43SAlan Wright #define NERR_LogonNoUserPath (NERR_BASE+111) 176*148c5f43SAlan Wright #define NERR_LogonScriptError (NERR_BASE+112) 177*148c5f43SAlan Wright /* UNUSED BASE+113 */ 178*148c5f43SAlan Wright #define NERR_StandaloneLogon (NERR_BASE+114) 179*148c5f43SAlan Wright #define NERR_LogonServerNotFound (NERR_BASE+115) 180*148c5f43SAlan Wright #define NERR_LogonDomainExists (NERR_BASE+116) 181*148c5f43SAlan Wright #define NERR_NonValidatedLogon (NERR_BASE+117) 182*148c5f43SAlan Wright 183*148c5f43SAlan Wright /* 184*148c5f43SAlan Wright * ACF API related (access, user, group) 185*148c5f43SAlan Wright * Error codes from BASE+119 to BASE+149 186*148c5f43SAlan Wright */ 187*148c5f43SAlan Wright #define NERR_ACFNotFound (NERR_BASE+119) 188*148c5f43SAlan Wright #define NERR_GroupNotFound (NERR_BASE+120) 189*148c5f43SAlan Wright #define NERR_UserNotFound (NERR_BASE+121) 190*148c5f43SAlan Wright #define NERR_ResourceNotFound (NERR_BASE+122) 191*148c5f43SAlan Wright #define NERR_GroupExists (NERR_BASE+123) 192*148c5f43SAlan Wright #define NERR_UserExists (NERR_BASE+124) 193*148c5f43SAlan Wright #define NERR_ResourceExists (NERR_BASE+125) 194*148c5f43SAlan Wright #define NERR_NotPrimary (NERR_BASE+126) 195*148c5f43SAlan Wright #define NERR_ACFNotLoaded (NERR_BASE+127) 196*148c5f43SAlan Wright #define NERR_ACFNoRoom (NERR_BASE+128) 197*148c5f43SAlan Wright #define NERR_ACFFileIOFail (NERR_BASE+129) 198*148c5f43SAlan Wright #define NERR_ACFTooManyLists (NERR_BASE+130) 199*148c5f43SAlan Wright #define NERR_UserLogon (NERR_BASE+131) 200*148c5f43SAlan Wright #define NERR_ACFNoParent (NERR_BASE+132) 201*148c5f43SAlan Wright #define NERR_CanNotGrowSegment (NERR_BASE+133) 202*148c5f43SAlan Wright #define NERR_SpeGroupOp (NERR_BASE+134) 203*148c5f43SAlan Wright #define NERR_NotInCache (NERR_BASE+135) 204*148c5f43SAlan Wright #define NERR_UserInGroup (NERR_BASE+136) 205*148c5f43SAlan Wright #define NERR_UserNotInGroup (NERR_BASE+137) 206*148c5f43SAlan Wright #define NERR_AccountUndefined (NERR_BASE+138) 207*148c5f43SAlan Wright #define NERR_AccountExpired (NERR_BASE+139) 208*148c5f43SAlan Wright #define NERR_InvalidWorkstation (NERR_BASE+140) 209*148c5f43SAlan Wright #define NERR_InvalidLogonHours (NERR_BASE+141) 210*148c5f43SAlan Wright #define NERR_PasswordExpired (NERR_BASE+142) 211*148c5f43SAlan Wright #define NERR_PasswordCantChange (NERR_BASE+143) 212*148c5f43SAlan Wright #define NERR_PasswordHistConflict (NERR_BASE+144) 213*148c5f43SAlan Wright #define NERR_PasswordTooShort (NERR_BASE+145) 214*148c5f43SAlan Wright #define NERR_PasswordTooRecent (NERR_BASE+146) 215*148c5f43SAlan Wright #define NERR_InvalidDatabase (NERR_BASE+147) 216*148c5f43SAlan Wright #define NERR_DatabaseUpToDate (NERR_BASE+148) 217*148c5f43SAlan Wright #define NERR_SyncRequired (NERR_BASE+149) 218*148c5f43SAlan Wright 219*148c5f43SAlan Wright /* 220*148c5f43SAlan Wright * Use API related 221*148c5f43SAlan Wright * Error codes from BASE+150 to BASE+169 222*148c5f43SAlan Wright */ 223*148c5f43SAlan Wright #define NERR_UseNotFound (NERR_BASE+150) 224*148c5f43SAlan Wright #define NERR_BadAsgType (NERR_BASE+151) 225*148c5f43SAlan Wright #define NERR_DeviceIsShared (NERR_BASE+152) 226*148c5f43SAlan Wright 227*148c5f43SAlan Wright /* 228*148c5f43SAlan Wright * Message Server related 229*148c5f43SAlan Wright * Error codes BASE+170 to BASE+209 230*148c5f43SAlan Wright */ 231*148c5f43SAlan Wright #define NERR_NoComputerName (NERR_BASE+170) 232*148c5f43SAlan Wright #define NERR_MsgAlreadyStarted (NERR_BASE+171) 233*148c5f43SAlan Wright #define NERR_MsgInitFailed (NERR_BASE+172) 234*148c5f43SAlan Wright #define NERR_NameNotFound (NERR_BASE+173) 235*148c5f43SAlan Wright #define NERR_AlreadyForwarded (NERR_BASE+174) 236*148c5f43SAlan Wright #define NERR_AddForwarded (NERR_BASE+175) 237*148c5f43SAlan Wright #define NERR_AlreadyExists (NERR_BASE+176) 238*148c5f43SAlan Wright #define NERR_TooManyNames (NERR_BASE+177) 239*148c5f43SAlan Wright #define NERR_DelComputerName (NERR_BASE+178) 240*148c5f43SAlan Wright #define NERR_LocalForward (NERR_BASE+179) 241*148c5f43SAlan Wright #define NERR_GrpMsgProcessor (NERR_BASE+180) 242*148c5f43SAlan Wright #define NERR_PausedRemote (NERR_BASE+181) 243*148c5f43SAlan Wright #define NERR_BadReceive (NERR_BASE+182) 244*148c5f43SAlan Wright #define NERR_NameInUse (NERR_BASE+183) 245*148c5f43SAlan Wright #define NERR_MsgNotStarted (NERR_BASE+184) 246*148c5f43SAlan Wright #define NERR_NotLocalName (NERR_BASE+185) 247*148c5f43SAlan Wright #define NERR_NoForwardName (NERR_BASE+186) 248*148c5f43SAlan Wright #define NERR_RemoteFull (NERR_BASE+187) 249*148c5f43SAlan Wright #define NERR_NameNotForwarded (NERR_BASE+188) 250*148c5f43SAlan Wright #define NERR_TruncatedBroadcast (NERR_BASE+189) 251*148c5f43SAlan Wright #define NERR_InvalidDevice (NERR_BASE+194) 252*148c5f43SAlan Wright #define NERR_WriteFault (NERR_BASE+195) 253*148c5f43SAlan Wright /* UNUSED BASE+196 */ 254*148c5f43SAlan Wright #define NERR_DuplicateName (NERR_BASE+197) 255*148c5f43SAlan Wright #define NERR_DeleteLater (NERR_BASE+198) 256*148c5f43SAlan Wright #define NERR_IncompleteDel (NERR_BASE+199) 257*148c5f43SAlan Wright #define NERR_MultipleNets (NERR_BASE+200) 258*148c5f43SAlan Wright 259*148c5f43SAlan Wright /* 260*148c5f43SAlan Wright * NERR_BASE+201 is ERROR_OPEN_FILES 261*148c5f43SAlan Wright * NERR_BASE+202 is ERROR_ACTIVE_CONNECTIONS 262*148c5f43SAlan Wright * NERR_BASE+204 is ERROR_DEVICE_IN_USE 263*148c5f43SAlan Wright * (see nterror.h) 264*148c5f43SAlan Wright */ 265*148c5f43SAlan Wright 266*148c5f43SAlan Wright /* 267*148c5f43SAlan Wright * Server API related 268*148c5f43SAlan Wright * Error codes BASE+210 to BASE+229 269*148c5f43SAlan Wright */ 270*148c5f43SAlan Wright #define NERR_NetNameNotFound (NERR_BASE+210) 271*148c5f43SAlan Wright #define NERR_DeviceNotShared (NERR_BASE+211) 272*148c5f43SAlan Wright #define NERR_ClientNameNotFound (NERR_BASE+212) 273*148c5f43SAlan Wright #define NERR_FileIdNotFound (NERR_BASE+214) 274*148c5f43SAlan Wright #define NERR_ExecFailure (NERR_BASE+215) 275*148c5f43SAlan Wright #define NERR_TmpFile (NERR_BASE+216) 276*148c5f43SAlan Wright #define NERR_TooMuchData (NERR_BASE+217) 277*148c5f43SAlan Wright #define NERR_DeviceShareConflict (NERR_BASE+218) 278*148c5f43SAlan Wright #define NERR_BrowserTableIncomplete (NERR_BASE+219) 279*148c5f43SAlan Wright #define NERR_NotLocalDomain (NERR_BASE+220) 280*148c5f43SAlan Wright #define NERR_IsDfsShare (NERR_BASE+221) 281*148c5f43SAlan Wright 282*148c5f43SAlan Wright /* 283*148c5f43SAlan Wright * CharDev API related 284*148c5f43SAlan Wright * Error codes BASE+230 to BASE+249 285*148c5f43SAlan Wright */ 286*148c5f43SAlan Wright /* UNUSED BASE+230 */ 287*148c5f43SAlan Wright #define NERR_DevInvalidOpCode (NERR_BASE+231) 288*148c5f43SAlan Wright #define NERR_DevNotFound (NERR_BASE+232) 289*148c5f43SAlan Wright #define NERR_DevNotOpen (NERR_BASE+233) 290*148c5f43SAlan Wright #define NERR_BadQueueDevString (NERR_BASE+234) 291*148c5f43SAlan Wright #define NERR_BadQueuePriority (NERR_BASE+235) 292*148c5f43SAlan Wright #define NERR_NoCommDevs (NERR_BASE+237) 293*148c5f43SAlan Wright #define NERR_QueueNotFound (NERR_BASE+238) 294*148c5f43SAlan Wright #define NERR_BadDevString (NERR_BASE+240) 295*148c5f43SAlan Wright #define NERR_BadDev (NERR_BASE+241) 296*148c5f43SAlan Wright #define NERR_InUseBySpooler (NERR_BASE+242) 297*148c5f43SAlan Wright #define NERR_CommDevInUse (NERR_BASE+243) 298*148c5f43SAlan Wright 299*148c5f43SAlan Wright /* 300*148c5f43SAlan Wright * NetICanonicalize and NetIType and NetIMakeLMFileName 301*148c5f43SAlan Wright * NetIListCanon and NetINameCheck 302*148c5f43SAlan Wright * Error codes BASE+250 to BASE+269 303*148c5f43SAlan Wright */ 304*148c5f43SAlan Wright #define NERR_InvalidComputer (NERR_BASE+251) 305*148c5f43SAlan Wright /* UNUSED BASE+252 */ 306*148c5f43SAlan Wright /* UNUSED BASE+253 */ 307*148c5f43SAlan Wright #define NERR_MaxLenExceeded (NERR_BASE+254) 308*148c5f43SAlan Wright /* UNUSED BASE+255 */ 309*148c5f43SAlan Wright #define NERR_BadComponent (NERR_BASE+256) 310*148c5f43SAlan Wright #define NERR_CantType (NERR_BASE+257) 311*148c5f43SAlan Wright /* UNUSED BASE+258 */ 312*148c5f43SAlan Wright /* UNUSED BASE+259 */ 313*148c5f43SAlan Wright #define NERR_TooManyEntries (NERR_BASE+262) 314*148c5f43SAlan Wright 315*148c5f43SAlan Wright /* 316*148c5f43SAlan Wright * NetProfile 317*148c5f43SAlan Wright * Error codes BASE+270 to BASE+276 318*148c5f43SAlan Wright */ 319*148c5f43SAlan Wright #define NERR_ProfileFileTooBig (NERR_BASE+270) 320*148c5f43SAlan Wright #define NERR_ProfileOffset (NERR_BASE+271) 321*148c5f43SAlan Wright #define NERR_ProfileCleanup (NERR_BASE+272) 322*148c5f43SAlan Wright #define NERR_ProfileUnknownCmd (NERR_BASE+273) 323*148c5f43SAlan Wright #define NERR_ProfileLoadErr (NERR_BASE+274) 324*148c5f43SAlan Wright #define NERR_ProfileSaveErr (NERR_BASE+275) 325*148c5f43SAlan Wright 326*148c5f43SAlan Wright /* 327*148c5f43SAlan Wright * NetAudit and NetErrorLog 328*148c5f43SAlan Wright * Error codes BASE+277 to BASE+279 329*148c5f43SAlan Wright */ 330*148c5f43SAlan Wright #define NERR_LogOverflow (NERR_BASE+277) 331*148c5f43SAlan Wright #define NERR_LogFileChanged (NERR_BASE+278) 332*148c5f43SAlan Wright #define NERR_LogFileCorrupt (NERR_BASE+279) 333*148c5f43SAlan Wright 334*148c5f43SAlan Wright /* 335*148c5f43SAlan Wright * NetRemote 336*148c5f43SAlan Wright * Error codes BASE+280 to BASE+299 337*148c5f43SAlan Wright */ 338*148c5f43SAlan Wright #define NERR_SourceIsDir (NERR_BASE+280) 339*148c5f43SAlan Wright #define NERR_BadSource (NERR_BASE+281) 340*148c5f43SAlan Wright #define NERR_BadDest (NERR_BASE+282) 341*148c5f43SAlan Wright #define NERR_DifferentServers (NERR_BASE+283) 342*148c5f43SAlan Wright /* UNUSED BASE+284 */ 343*148c5f43SAlan Wright #define NERR_RunSrvPaused (NERR_BASE+285) 344*148c5f43SAlan Wright /* UNUSED BASE+286 */ 345*148c5f43SAlan Wright /* UNUSED BASE+287 */ 346*148c5f43SAlan Wright /* UNUSED BASE+288 */ 347*148c5f43SAlan Wright #define NERR_ErrCommRunSrv (NERR_BASE+289) 348*148c5f43SAlan Wright /* UNUSED BASE+290 */ 349*148c5f43SAlan Wright #define NERR_ErrorExecingGhost (NERR_BASE+291) 350*148c5f43SAlan Wright #define NERR_ShareNotFound (NERR_BASE+292) 351*148c5f43SAlan Wright /* UNUSED BASE+293 */ 352*148c5f43SAlan Wright /* UNUSED BASE+294 */ 353*148c5f43SAlan Wright 354*148c5f43SAlan Wright 355*148c5f43SAlan Wright /* 356*148c5f43SAlan Wright * NetWksta.sys (redir) returned error codes. 357*148c5f43SAlan Wright * NERR_BASE + (300-329) 358*148c5f43SAlan Wright */ 359*148c5f43SAlan Wright #define NERR_InvalidLana (NERR_BASE+300) 360*148c5f43SAlan Wright #define NERR_OpenFiles (NERR_BASE+301) 361*148c5f43SAlan Wright #define NERR_ActiveConns (NERR_BASE+302) 362*148c5f43SAlan Wright #define NERR_BadPasswordCore (NERR_BASE+303) 363*148c5f43SAlan Wright #define NERR_DevInUse (NERR_BASE+304) 364*148c5f43SAlan Wright #define NERR_LocalDrive (NERR_BASE+305) 365*148c5f43SAlan Wright 366*148c5f43SAlan Wright /* 367*148c5f43SAlan Wright * Alert error codes. 368*148c5f43SAlan Wright * NERR_BASE + (330-339) 369*148c5f43SAlan Wright */ 370*148c5f43SAlan Wright #define NERR_AlertExists (NERR_BASE+330) 371*148c5f43SAlan Wright #define NERR_TooManyAlerts (NERR_BASE+331) 372*148c5f43SAlan Wright #define NERR_NoSuchAlert (NERR_BASE+332) 373*148c5f43SAlan Wright #define NERR_BadRecipient (NERR_BASE+333) 374*148c5f43SAlan Wright #define NERR_AcctLimitExceeded (NERR_BASE+334) 375*148c5f43SAlan Wright 376*148c5f43SAlan Wright /* 377*148c5f43SAlan Wright * Additional Error and Audit log codes. 378*148c5f43SAlan Wright * NERR_BASE +(340-343) 379*148c5f43SAlan Wright */ 380*148c5f43SAlan Wright #define NERR_InvalidLogSeek (NERR_BASE+340) 381*148c5f43SAlan Wright /* UNUSED BASE+341 */ 382*148c5f43SAlan Wright /* UNUSED BASE+342 */ 383*148c5f43SAlan Wright /* UNUSED BASE+343 */ 384*148c5f43SAlan Wright 385*148c5f43SAlan Wright /* 386*148c5f43SAlan Wright * Additional UAS and NETLOGON codes 387*148c5f43SAlan Wright * NERR_BASE +(350-359) 388*148c5f43SAlan Wright */ 389*148c5f43SAlan Wright #define NERR_BadUasConfig (NERR_BASE+350) 390*148c5f43SAlan Wright #define NERR_InvalidUASOp (NERR_BASE+351) 391*148c5f43SAlan Wright #define NERR_LastAdmin (NERR_BASE+352) 392*148c5f43SAlan Wright #define NERR_DCNotFound (NERR_BASE+353) 393*148c5f43SAlan Wright #define NERR_LogonTrackingError (NERR_BASE+354) 394*148c5f43SAlan Wright #define NERR_NetlogonNotStarted (NERR_BASE+355) 395*148c5f43SAlan Wright #define NERR_CanNotGrowUASFile (NERR_BASE+356) 396*148c5f43SAlan Wright #define NERR_TimeDiffAtDC (NERR_BASE+357) 397*148c5f43SAlan Wright #define NERR_PasswordMismatch (NERR_BASE+358) 398*148c5f43SAlan Wright 399*148c5f43SAlan Wright /* 400*148c5f43SAlan Wright * Server Integration error codes. 401*148c5f43SAlan Wright * NERR_BASE +(360-369) 402*148c5f43SAlan Wright */ 403*148c5f43SAlan Wright #define NERR_NoSuchServer (NERR_BASE+360) 404*148c5f43SAlan Wright #define NERR_NoSuchSession (NERR_BASE+361) 405*148c5f43SAlan Wright #define NERR_NoSuchConnection (NERR_BASE+362) 406*148c5f43SAlan Wright #define NERR_TooManyServers (NERR_BASE+363) 407*148c5f43SAlan Wright #define NERR_TooManySessions (NERR_BASE+364) 408*148c5f43SAlan Wright #define NERR_TooManyConnections (NERR_BASE+365) 409*148c5f43SAlan Wright #define NERR_TooManyFiles (NERR_BASE+366) 410*148c5f43SAlan Wright #define NERR_NoAlternateServers (NERR_BASE+367) 411*148c5f43SAlan Wright /* UNUSED BASE+368 */ 412*148c5f43SAlan Wright /* UNUSED BASE+369 */ 413*148c5f43SAlan Wright #define NERR_TryDownLevel (NERR_BASE+370) 414*148c5f43SAlan Wright 415*148c5f43SAlan Wright /* 416*148c5f43SAlan Wright * UPS error codes. 417*148c5f43SAlan Wright * NERR_BASE + (380-384) 418*148c5f43SAlan Wright */ 419*148c5f43SAlan Wright #define NERR_UPSDriverNotStarted (NERR_BASE+380) 420*148c5f43SAlan Wright #define NERR_UPSInvalidConfig (NERR_BASE+381) 421*148c5f43SAlan Wright #define NERR_UPSInvalidCommPort (NERR_BASE+382) 422*148c5f43SAlan Wright #define NERR_UPSSignalAsserted (NERR_BASE+383) 423*148c5f43SAlan Wright #define NERR_UPSShutdownFailed (NERR_BASE+384) 424*148c5f43SAlan Wright 425*148c5f43SAlan Wright /* 426*148c5f43SAlan Wright * Remoteboot error codes. 427*148c5f43SAlan Wright * NERR_BASE + (400-419) 428*148c5f43SAlan Wright * Error codes 400 - 405 are used by RPLBOOT.SYS. 429*148c5f43SAlan Wright * Error codes 403, 407 - 416 are used by RPLLOADR.COM, 430*148c5f43SAlan Wright * Error code 417 is the alerter message of REMOTEBOOT (RPLSERVR.EXE). 431*148c5f43SAlan Wright * Error code 418 is for when REMOTEBOOT can't start 432*148c5f43SAlan Wright * Error code 419 is for a disallowed 2nd rpl connection 433*148c5f43SAlan Wright */ 434*148c5f43SAlan Wright #define NERR_BadDosRetCode (NERR_BASE+400) 435*148c5f43SAlan Wright #define NERR_ProgNeedsExtraMem (NERR_BASE+401) 436*148c5f43SAlan Wright #define NERR_BadDosFunction (NERR_BASE+402) 437*148c5f43SAlan Wright #define NERR_RemoteBootFailed (NERR_BASE+403) 438*148c5f43SAlan Wright #define NERR_BadFileCheckSum (NERR_BASE+404) 439*148c5f43SAlan Wright #define NERR_NoRplBootSystem (NERR_BASE+405) 440*148c5f43SAlan Wright #define NERR_RplLoadrNetBiosErr (NERR_BASE+406) 441*148c5f43SAlan Wright #define NERR_RplLoadrDiskErr (NERR_BASE+407) 442*148c5f43SAlan Wright #define NERR_ImageParamErr (NERR_BASE+408) 443*148c5f43SAlan Wright #define NERR_TooManyImageParams (NERR_BASE+409) 444*148c5f43SAlan Wright #define NERR_NonDosFloppyUsed (NERR_BASE+410) 445*148c5f43SAlan Wright #define NERR_RplBootRestart (NERR_BASE+411) 446*148c5f43SAlan Wright #define NERR_RplSrvrCallFailed (NERR_BASE+412) 447*148c5f43SAlan Wright #define NERR_CantConnectRplSrvr (NERR_BASE+413) 448*148c5f43SAlan Wright #define NERR_CantOpenImageFile (NERR_BASE+414) 449*148c5f43SAlan Wright #define NERR_CallingRplSrvr (NERR_BASE+415) 450*148c5f43SAlan Wright #define NERR_StartingRplBoot (NERR_BASE+416) 451*148c5f43SAlan Wright #define NERR_RplBootServiceTerm (NERR_BASE+417) 452*148c5f43SAlan Wright #define NERR_RplBootStartFailed (NERR_BASE+418) 453*148c5f43SAlan Wright #define NERR_RPL_CONNECTED (NERR_BASE+419) 454*148c5f43SAlan Wright 455*148c5f43SAlan Wright /* 456*148c5f43SAlan Wright * FTADMIN API error codes 457*148c5f43SAlan Wright * NERR_BASE + (425-434) 458*148c5f43SAlan Wright * (Currently not used in NT) 459*148c5f43SAlan Wright */ 460*148c5f43SAlan Wright 461*148c5f43SAlan Wright /* 462*148c5f43SAlan Wright * Browser service API error codes 463*148c5f43SAlan Wright * NERR_BASE + (450-475) 464*148c5f43SAlan Wright */ 465*148c5f43SAlan Wright #define NERR_BrowserConfiguredToNotRun (NERR_BASE+450) 466*148c5f43SAlan Wright 467*148c5f43SAlan Wright /* 468*148c5f43SAlan Wright * Additional Remoteboot error codes. 469*148c5f43SAlan Wright * NERR_BASE + (510-550) 470*148c5f43SAlan Wright */ 471*148c5f43SAlan Wright #define NERR_RplNoAdaptersStarted (NERR_BASE+510) 472*148c5f43SAlan Wright #define NERR_RplBadRegistry (NERR_BASE+511) 473*148c5f43SAlan Wright #define NERR_RplBadDatabase (NERR_BASE+512) 474*148c5f43SAlan Wright #define NERR_RplRplfilesShare (NERR_BASE+513) 475*148c5f43SAlan Wright #define NERR_RplNotRplServer (NERR_BASE+514) 476*148c5f43SAlan Wright #define NERR_RplCannotEnum (NERR_BASE+515) 477*148c5f43SAlan Wright #define NERR_RplWkstaInfoCorrupted (NERR_BASE+516) 478*148c5f43SAlan Wright #define NERR_RplWkstaNotFound (NERR_BASE+517) 479*148c5f43SAlan Wright #define NERR_RplWkstaNameUnavailable (NERR_BASE+518) 480*148c5f43SAlan Wright #define NERR_RplProfileInfoCorrupted (NERR_BASE+519) 481*148c5f43SAlan Wright #define NERR_RplProfileNotFound (NERR_BASE+520) 482*148c5f43SAlan Wright #define NERR_RplProfileNameUnavailable (NERR_BASE+521) 483*148c5f43SAlan Wright #define NERR_RplProfileNotEmpty (NERR_BASE+522) 484*148c5f43SAlan Wright #define NERR_RplConfigInfoCorrupted (NERR_BASE+523) 485*148c5f43SAlan Wright #define NERR_RplConfigNotFound (NERR_BASE+524) 486*148c5f43SAlan Wright #define NERR_RplAdapterInfoCorrupted (NERR_BASE+525) 487*148c5f43SAlan Wright #define NERR_RplInternal (NERR_BASE+526) 488*148c5f43SAlan Wright #define NERR_RplVendorInfoCorrupted (NERR_BASE+527) 489*148c5f43SAlan Wright #define NERR_RplBootInfoCorrupted (NERR_BASE+528) 490*148c5f43SAlan Wright #define NERR_RplWkstaNeedsUserAcct (NERR_BASE+529) 491*148c5f43SAlan Wright #define NERR_RplNeedsRPLUSERAcct (NERR_BASE+530) 492*148c5f43SAlan Wright #define NERR_RplBootNotFound (NERR_BASE+531) 493*148c5f43SAlan Wright #define NERR_RplIncompatibleProfile (NERR_BASE+532) 494*148c5f43SAlan Wright #define NERR_RplAdapterNameUnavailable (NERR_BASE+533) 495*148c5f43SAlan Wright #define NERR_RplConfigNotEmpty (NERR_BASE+534) 496*148c5f43SAlan Wright #define NERR_RplBootInUse (NERR_BASE+535) 497*148c5f43SAlan Wright #define NERR_RplBackupDatabase (NERR_BASE+536) 498*148c5f43SAlan Wright #define NERR_RplAdapterNotFound (NERR_BASE+537) 499*148c5f43SAlan Wright #define NERR_RplVendorNotFound (NERR_BASE+538) 500*148c5f43SAlan Wright #define NERR_RplVendorNameUnavailable (NERR_BASE+539) 501*148c5f43SAlan Wright #define NERR_RplBootNameUnavailable (NERR_BASE+540) 502*148c5f43SAlan Wright #define NERR_RplConfigNameUnavailable (NERR_BASE+541) 503*148c5f43SAlan Wright 504*148c5f43SAlan Wright /* 505*148c5f43SAlan Wright * Dfs API error codes. 506*148c5f43SAlan Wright * NERR_BASE + (560-590) 507*148c5f43SAlan Wright */ 508*148c5f43SAlan Wright #define NERR_DfsInternalCorruption (NERR_BASE+560) 509*148c5f43SAlan Wright #define NERR_DfsVolumeDataCorrupt (NERR_BASE+561) 510*148c5f43SAlan Wright #define NERR_DfsNoSuchVolume (NERR_BASE+562) 511*148c5f43SAlan Wright #define NERR_DfsVolumeAlreadyExists (NERR_BASE+563) 512*148c5f43SAlan Wright #define NERR_DfsAlreadyShared (NERR_BASE+564) 513*148c5f43SAlan Wright #define NERR_DfsNoSuchShare (NERR_BASE+565) 514*148c5f43SAlan Wright #define NERR_DfsNotALeafVolume (NERR_BASE+566) 515*148c5f43SAlan Wright #define NERR_DfsLeafVolume (NERR_BASE+567) 516*148c5f43SAlan Wright #define NERR_DfsVolumeHasMultipleServers (NERR_BASE+568) 517*148c5f43SAlan Wright #define NERR_DfsCantCreateJunctionPoint (NERR_BASE+569) 518*148c5f43SAlan Wright #define NERR_DfsServerNotDfsAware (NERR_BASE+570) 519*148c5f43SAlan Wright #define NERR_DfsBadRenamePath (NERR_BASE+571) 520*148c5f43SAlan Wright #define NERR_DfsVolumeIsOffline (NERR_BASE+572) 521*148c5f43SAlan Wright #define NERR_DfsNoSuchServer (NERR_BASE+573) 522*148c5f43SAlan Wright #define NERR_DfsCyclicalName (NERR_BASE+574) 523*148c5f43SAlan Wright #define NERR_DfsNotSupportedInServerDfs (NERR_BASE+575) 524*148c5f43SAlan Wright #define NERR_DfsInternalError (NERR_BASE+590) 525*148c5f43SAlan Wright 526*148c5f43SAlan Wright /* 527*148c5f43SAlan Wright * Net setup error codes. 528*148c5f43SAlan Wright * NERR_BASE + (591-595) 529*148c5f43SAlan Wright */ 530*148c5f43SAlan Wright #define NERR_SetupAlreadyJoined (NERR_BASE+591) 531*148c5f43SAlan Wright #define NERR_SetupNotJoined (NERR_BASE+592) 532*148c5f43SAlan Wright #define NERR_SetupDomainController (NERR_BASE+593) 533*148c5f43SAlan Wright #define NERR_DefaultJoinRequired (NERR_BASE+594) 534*148c5f43SAlan Wright #define NERR_InvalidWorkgroupName (NERR_BASE+595) 535*148c5f43SAlan Wright #define NERR_NameUsesIncompatibleCodePage (NERR_BASE+596) 536*148c5f43SAlan Wright #define NERR_ComputerAccountNotFound (NERR_BASE+597) 537*148c5f43SAlan Wright #define NERR_PersonalSku (NERR_BASE+598) 538*148c5f43SAlan Wright 539*148c5f43SAlan Wright /* 540*148c5f43SAlan Wright * MAX_NERR is the last value in the NERR range. 541*148c5f43SAlan Wright * Do not exceed this value here. 542*148c5f43SAlan Wright */ 543*148c5f43SAlan Wright #define MAX_NERR (NERR_BASE+899) 544*148c5f43SAlan Wright 545*148c5f43SAlan Wright #ifdef __cplusplus 546*148c5f43SAlan Wright } 547*148c5f43SAlan Wright #endif 548*148c5f43SAlan Wright 549*148c5f43SAlan Wright #endif /* _SMB_LMERR_H */ 550