home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 June / PCFJune.iso / Xenon / C++ / FreeCommandLineTools.exe / Include / lmerr.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-01-31  |  37.7 KB  |  610 lines

  1. /*++ BUILD Version: 0001    // Increment this if a change has global effects
  2. */
  3. /********************************************************************/
  4. /**                     Microsoft LAN Manager                      **/
  5. /**               Copyright(c) Microsoft Corp., 1987-1999          **/
  6. /********************************************************************/
  7.  
  8. /***    lmerr.h - network error definitions
  9.  *
  10.  */
  11.  
  12.  
  13. /**INTERNAL_ONLY**/
  14.  
  15. /***********WARNING ****************
  16.  *See the comment in lmcons.h for  *
  17.  *info on the allocation of errors *
  18.  ***********************************/
  19.  
  20. /**END_INTERNAL**/
  21.  
  22. /*NOINC*/
  23. #ifndef NETERR_INCLUDED
  24. #pragma option push -b -a8 -pc -A- /*P_O_Push*/
  25. #define NETERR_INCLUDED
  26.  
  27. #if _MSC_VER > 1000
  28. #pragma once
  29. #endif
  30.  
  31. /*INC*/
  32.  
  33.  
  34. #define NERR_Success            0       /* Success */
  35.  
  36. // ERROR_ equates can be intermixed with NERR_ equates.
  37. #include <winerror.h>
  38.  
  39.  
  40.  
  41. /***    NERR_BASE is the base of error codes from network utilities,
  42.  *      chosen to avoid conflict with system and redirector error codes.
  43.  *      2100 is a value that has been assigned to us by system.
  44.  */
  45. #define NERR_BASE       2100
  46.  
  47.  
  48. /**INTERNAL_ONLY**/
  49.  
  50. /***********WARNING ****************
  51.  *See the comment in lmcons.h for  *
  52.  *info on the allocation of errors *
  53.  ***********************************/
  54.  
  55. /***********WARNING ****************
  56.  *The range 2750-2799 has been     *
  57.  *allocated to the IBM LAN Server  *
  58.  ***********************************/
  59.  
  60. /***********WARNING ****************
  61.  *The range 2900-2999 has been     *
  62.  *reserved for Microsoft OEMs      *
  63.  ***********************************/
  64.  
  65. /**END_INTERNAL**/
  66.  
  67. /* UNUSED BASE+0 */
  68. /* UNUSED BASE+1 */
  69. #define NERR_NetNotStarted      (NERR_BASE+2)   /* The workstation driver is not installed. */
  70. #define NERR_UnknownServer      (NERR_BASE+3)   /* The server could not be located. */
  71. #define NERR_ShareMem           (NERR_BASE+4)   /* An internal error occurred.  The network cannot access a shared memory segment. */
  72.  
  73. #define NERR_NoNetworkResource  (NERR_BASE+5)   /* A network resource shortage occurred . */
  74. #define NERR_RemoteOnly         (NERR_BASE+6)   /* This operation is not supported on workstations. */
  75. #define NERR_DevNotRedirected   (NERR_BASE+7)   /* The device is not connected. */
  76. /* NERR_BASE+8 is used for ERROR_CONNECTED_OTHER_PASSWORD */
  77. /* UNUSED BASE+9 */
  78. /* UNUSED BASE+10 */
  79. /* UNUSED BASE+11 */
  80. /* UNUSED BASE+12 */
  81. /* UNUSED BASE+13 */
  82. #define NERR_ServerNotStarted   (NERR_BASE+14)  /* The Server service is not started. */
  83. #define NERR_ItemNotFound       (NERR_BASE+15)  /* The queue is empty. */
  84. #define NERR_UnknownDevDir      (NERR_BASE+16)  /* The device or directory does not exist. */
  85. #define NERR_RedirectedPath     (NERR_BASE+17)  /* The operation is invalid on a redirected resource. */
  86. #define NERR_DuplicateShare     (NERR_BASE+18)  /* The name has already been shared. */
  87. #define NERR_NoRoom             (NERR_BASE+19)  /* The server is currently out of the requested resource. */
  88. /* UNUSED BASE+20 */
  89. #define NERR_TooManyItems       (NERR_BASE+21)  /* Requested addition of items exceeds the maximum allowed. */
  90. #define NERR_InvalidMaxUsers    (NERR_BASE+22)  /* The Peer service supports only two simultaneous users. */
  91. #define NERR_BufTooSmall        (NERR_BASE+23)  /* The API return buffer is too small. */
  92. /* UNUSED BASE+24 */
  93. /* UNUSED BASE+25 */
  94. /* UNUSED BASE+26 */
  95. #define NERR_RemoteErr          (NERR_BASE+27)  /* A remote API error occurred.  */
  96. /* UNUSED BASE+28 */
  97. /* UNUSED BASE+29 */
  98. /* UNUSED BASE+30 */
  99. #define NERR_LanmanIniError     (NERR_BASE+31)  /* An error occurred when opening or reading the configuration file. */
  100. /* UNUSED BASE+32 */
  101. /* UNUSED BASE+33 */
  102. /* UNUSED BASE+34 */
  103. /* UNUSED BASE+35 */
  104. #define NERR_NetworkError       (NERR_BASE+36)  /* A general network error occurred. */
  105. #define NERR_WkstaInconsistentState (NERR_BASE+37)
  106.     /* The Workstation service is in an inconsistent state. Restart the computer before restarting the Workstation service. */
  107. #define NERR_WkstaNotStarted    (NERR_BASE+38)  /* The Workstation service has not been started. */
  108. #define NERR_BrowserNotStarted  (NERR_BASE+39)  /* The requested information is not available. */
  109. #define NERR_InternalError      (NERR_BASE+40)  /* An internal Windows 2000 error occurred.*/
  110. #define NERR_BadTransactConfig  (NERR_BASE+41)  /* The server is not configured for transactions. */
  111. #define NERR_InvalidAPI         (NERR_BASE+42)  /* The requested API is not supported on the remote server. */
  112. #define NERR_BadEventName       (NERR_BASE+43)  /* The event name is invalid. */
  113. #define NERR_DupNameReboot      (NERR_BASE+44)  /* The computer name already exists on the network. Change it and restart the computer. */
  114. /*
  115.  *      Config API related
  116.  *              Error codes from BASE+45 to BASE+49
  117.  */
  118.  
  119. /* UNUSED BASE+45 */
  120. #define NERR_CfgCompNotFound    (NERR_BASE+46)  /* The specified component could not be found in the configuration information. */
  121. #define NERR_CfgParamNotFound   (NERR_BASE+47)  /* The specified parameter could not be found in the configuration information. */
  122. #define NERR_LineTooLong        (NERR_BASE+49)  /* A line in the configuration file is too long. */
  123.  
  124. /*
  125.  *      Spooler API related
  126.  *              Error codes from BASE+50 to BASE+79
  127.  */
  128.  
  129. #define NERR_QNotFound          (NERR_BASE+50)  /* The printer does not exist. */
  130. #define NERR_JobNotFound        (NERR_BASE+51)  /* The print job does not exist. */
  131. #define NERR_DestNotFound       (NERR_BASE+52)  /* The printer destination cannot be found. */
  132. #define NERR_DestExists         (NERR_BASE+53)  /* The printer destination already exists. */
  133. #define NERR_QExists            (NERR_BASE+54)  /* The printer queue already exists. */
  134. #define NERR_QNoRoom            (NERR_BASE+55)  /* No more printers can be added. */
  135. #define NERR_JobNoRoom          (NERR_BASE+56)  /* No more print jobs can be added.  */
  136. #define NERR_DestNoRoom         (NERR_BASE+57)  /* No more printer destinations can be added. */
  137. #define NERR_DestIdle           (NERR_BASE+58)  /* This printer destination is idle and cannot accept control operations. */
  138. #define NERR_DestInvalidOp      (NERR_BASE+59)  /* This printer destination request contains an invalid control function. */
  139. #define NERR_ProcNoRespond      (NERR_BASE+60)  /* The print processor is not responding. */
  140. #define NERR_SpoolerNotLoaded   (NERR_BASE+61)  /* The spooler is not running. */
  141. #define NERR_DestInvalidState   (NERR_BASE+62)  /* This operation cannot be performed on the print destination in its current state. */
  142. #define NERR_QInvalidState      (NERR_BASE+63)  /* This operation cannot be performed on the printer queue in its current state. */
  143. #define NERR_JobInvalidState    (NERR_BASE+64)  /* This operation cannot be performed on the print job in its current state. */
  144. #define NERR_SpoolNoMemory      (NERR_BASE+65)  /* A spooler memory allocation failure occurred. */
  145. #define NERR_DriverNotFound     (NERR_BASE+66)  /* The device driver does not exist. */
  146. #define NERR_DataTypeInvalid    (NERR_BASE+67)  /* The data type is not supported by the print processor. */
  147. #define NERR_ProcNotFound       (NERR_BASE+68)  /* The print processor is not installed. */
  148.  
  149. /*
  150.  *      Service API related
  151.  *              Error codes from BASE+80 to BASE+99
  152.  */
  153.  
  154. #define NERR_ServiceTableLocked (NERR_BASE+80)  /* The service database is locked. */
  155. #define NERR_ServiceTableFull   (NERR_BASE+81)  /* The service table is full. */
  156. #define NERR_ServiceInstalled   (NERR_BASE+82)  /* The requested service has already been started. */
  157. #define NERR_ServiceEntryLocked (NERR_BASE+83)  /* The service does not respond to control actions. */
  158. #define NERR_ServiceNotInstalled (NERR_BASE+84) /* The service has not been started. */
  159. #define NERR_BadServiceName     (NERR_BASE+85)  /* The service name is invalid. */
  160. #define NERR_ServiceCtlTimeout  (NERR_BASE+86)  /* The service is not responding to the control function. */
  161. #define NERR_ServiceCtlBusy     (NERR_BASE+87)  /* The service control is busy. */
  162. #define NERR_BadServiceProgName (NERR_BASE+88)  /* The configuration file contains an invalid service program name. */
  163. #define NERR_ServiceNotCtrl     (NERR_BASE+89)  /* The service could not be controlled in its present state. */
  164. #define NERR_ServiceKillProc    (NERR_BASE+90)  /* The service ended abnormally. */
  165. #define NERR_ServiceCtlNotValid (NERR_BASE+91)  /* The requested pause or stop is not valid for this service. */
  166. #define NERR_NotInDispatchTbl   (NERR_BASE+92)  /* The service control dispatcher could not find the service name in the dispatch table. */
  167. #define NERR_BadControlRecv     (NERR_BASE+93)  /* The service control dispatcher pipe read failed. */
  168. #define NERR_ServiceNotStarting (NERR_BASE+94)  /* A thread for the new service could not be created. */
  169.  
  170. /*
  171.  *      Wksta and Logon API related
  172.  *              Error codes from BASE+100 to BASE+118
  173.  */
  174.  
  175. #define NERR_AlreadyLoggedOn    (NERR_BASE+100) /* This workstation is already logged on to the local-area network. */
  176. #define NERR_NotLoggedOn        (NERR_BASE+101) /* The workstation is not logged on to the local-area network. */
  177. #define NERR_BadUsername        (NERR_BASE+102) /* The user name or group name parameter is invalid.  */
  178. #define NERR_BadPassword        (NERR_BASE+103) /* The password parameter is invalid. */
  179. #define NERR_UnableToAddName_W  (NERR_BASE+104) /* @W The logon processor did not add the message alias. */
  180. #define NERR_UnableToAddName_F  (NERR_BASE+105) /* The logon processor did not add the message alias. */
  181. #define NERR_UnableToDelName_W  (NERR_BASE+106) /* @W The logoff processor did not delete the message alias. */
  182. #define NERR_UnableToDelName_F  (NERR_BASE+107) /* The logoff processor did not delete the message alias. */
  183. /* UNUSED BASE+108 */
  184. #define NERR_LogonsPaused       (NERR_BASE+109) /* Network logons are paused. */
  185. #define NERR_LogonServerConflict (NERR_BASE+110)/* A centralized logon-server conflict occurred. */
  186. #define NERR_LogonNoUserPath    (NERR_BASE+111) /* The server is configured without a valid user path. */
  187. #define NERR_LogonScriptError   (NERR_BASE+112) /* An error occurred while loading or running the logon script. */
  188. /* UNUSED BASE+113 */
  189. #define NERR_StandaloneLogon    (NERR_BASE+114) /* The logon server was not specified.  Your computer will be logged on as STANDALONE. */
  190. #define NERR_LogonServerNotFound (NERR_BASE+115) /* The logon server could not be found.  */
  191. #define NERR_LogonDomainExists  (NERR_BASE+116) /* There is already a logon domain for this computer.  */
  192. #define NERR_NonValidatedLogon  (NERR_BASE+117) /* The logon server could not validate the logon. */
  193.  
  194. /*
  195.  *      ACF API related (access, user, group)
  196.  *              Error codes from BASE+119 to BASE+149
  197.  */
  198.  
  199. #define NERR_ACFNotFound        (NERR_BASE+119) /* The security database could not be found. */
  200. #define NERR_GroupNotFound      (NERR_BASE+120) /* The group name could not be found. */
  201. #define NERR_UserNotFound       (NERR_BASE+121) /* The user name could not be found. */
  202. #define NERR_ResourceNotFound   (NERR_BASE+122) /* The resource name could not be found.  */
  203. #define NERR_GroupExists        (NERR_BASE+123) /* The group already exists. */
  204. #define NERR_UserExists         (NERR_BASE+124) /* The account already exists. */
  205. #define NERR_ResourceExists     (NERR_BASE+125) /* The resource permission list already exists. */
  206. #define NERR_NotPrimary         (NERR_BASE+126) /* This operation is only allowed on the primary domain controller of the domain. */
  207. #define NERR_ACFNotLoaded       (NERR_BASE+127) /* The security database has not been started. */
  208. #define NERR_ACFNoRoom          (NERR_BASE+128) /* There are too many names in the user accounts database. */
  209. #define NERR_ACFFileIOFail      (NERR_BASE+129) /* A disk I/O failure occurred.*/
  210. #define NERR_ACFTooManyLists    (NERR_BASE+130) /* The limit of 64 entries per resource was exceeded. */
  211. #define NERR_UserLogon          (NERR_BASE+131) /* Deleting a user with a session is not allowed. */
  212. #define NERR_ACFNoParent        (NERR_BASE+132) /* The parent directory could not be located. */
  213. #define NERR_CanNotGrowSegment  (NERR_BASE+133) /* Unable to add to the security database session cache segment. */
  214. #define NERR_SpeGroupOp         (NERR_BASE+134) /* This operation is not allowed on this special group. */
  215. #define NERR_NotInCache         (NERR_BASE+135) /* This user is not cached in user accounts database session cache. */
  216. #define NERR_UserInGroup        (NERR_BASE+136) /* The user already belongs to this group. */
  217. #define NERR_UserNotInGroup     (NERR_BASE+137) /* The user does not belong to this group. */
  218. #define NERR_AccountUndefined   (NERR_BASE+138) /* This user account is undefined. */
  219. #define NERR_AccountExpired     (NERR_BASE+139) /* This user account has expired. */
  220. #define NERR_InvalidWorkstation (NERR_BASE+140) /* The user is not allowed to log on from this workstation. */
  221. #define NERR_InvalidLogonHours  (NERR_BASE+141) /* The user is not allowed to log on at this time.  */
  222. #define NERR_PasswordExpired    (NERR_BASE+142) /* The password of this user has expired. */
  223. #define NERR_PasswordCantChange (NERR_BASE+143) /* The password of this user cannot change. */
  224. #define NERR_PasswordHistConflict (NERR_BASE+144) /* This password cannot be used now. */
  225. #define NERR_PasswordTooShort   (NERR_BASE+145) /* The password does not meet the password policy requirements. Check the minimum password length, password complexity and password history requirements. */
  226. #define NERR_PasswordTooRecent  (NERR_BASE+146) /* The password of this user is too recent to change.  */
  227. #define NERR_InvalidDatabase    (NERR_BASE+147) /* The security database is corrupted. */
  228. #define NERR_DatabaseUpToDate   (NERR_BASE+148) /* No updates are necessary to this replicant network/local security database. */
  229. #define NERR_SyncRequired       (NERR_BASE+149) /* This replicant database is outdated; synchronization is required. */
  230.  
  231. /*
  232.  *      Use API related
  233.  *              Error codes from BASE+150 to BASE+169
  234.  */
  235.  
  236. #define NERR_UseNotFound        (NERR_BASE+150) /* The network connection could not be found. */
  237. #define NERR_BadAsgType         (NERR_BASE+151) /* This asg_type is invalid. */
  238. #define NERR_DeviceIsShared     (NERR_BASE+152) /* This device is currently being shared. */
  239.  
  240. /*
  241.  *      Message Server related
  242.  *              Error codes BASE+170 to BASE+209
  243.  */
  244.  
  245. #define NERR_NoComputerName     (NERR_BASE+170) /* The computer name could not be added as a message alias.  The name may already exist on the network. */
  246. #define NERR_MsgAlreadyStarted  (NERR_BASE+171) /* The Messenger service is already started. */
  247. #define NERR_MsgInitFailed      (NERR_BASE+172) /* The Messenger service failed to start.  */
  248. #define NERR_NameNotFound       (NERR_BASE+173) /* The message alias could not be found on the network. */
  249. #define NERR_AlreadyForwarded   (NERR_BASE+174) /* This message alias has already been forwarded. */
  250. #define NERR_AddForwarded       (NERR_BASE+175) /* This message alias has been added but is still forwarded. */
  251. #define NERR_AlreadyExists      (NERR_BASE+176) /* This message alias already exists locally. */
  252. #define NERR_TooManyNames       (NERR_BASE+177) /* The maximum number of added message aliases has been exceeded. */
  253. #define NERR_DelComputerName    (NERR_BASE+178) /* The computer name could not be deleted.*/
  254. #define NERR_LocalForward       (NERR_BASE+179) /* Messages cannot be forwarded back to the same workstation. */
  255. #define NERR_GrpMsgProcessor    (NERR_BASE+180) /* An error occurred in the domain message processor. */
  256. #define NERR_PausedRemote       (NERR_BASE+181) /* The message was sent, but the recipient has paused the Messenger service. */
  257. #define NERR_BadReceive         (NERR_BASE+182) /* The message was sent but not received. */
  258. #define NERR_NameInUse          (NERR_BASE+183) /* The message alias is currently in use. Try again later. */
  259. #define NERR_MsgNotStarted      (NERR_BASE+184) /* The Messenger service has not been started. */
  260. #define NERR_NotLocalName       (NERR_BASE+185) /* The name is not on the local computer. */
  261. #define NERR_NoForwardName      (NERR_BASE+186) /* The forwarded message alias could not be found on the network. */
  262. #define NERR_RemoteFull         (NERR_BASE+187) /* The message alias table on the remote station is full. */
  263. #define NERR_NameNotForwarded   (NERR_BASE+188) /* Messages for this alias are not currently being forwarded. */
  264. #define NERR_TruncatedBroadcast (NERR_BASE+189) /* The broadcast message was truncated. */
  265. #define NERR_InvalidDevice      (NERR_BASE+194) /* This is an invalid device name. */
  266. #define NERR_WriteFault         (NERR_BASE+195) /* A write fault occurred. */
  267. /* UNUSED BASE+196 */
  268. #define NERR_DuplicateName      (NERR_BASE+197) /* A duplicate message alias exists on the network. */
  269. #define NERR_DeleteLater        (NERR_BASE+198) /* @W This message alias will be deleted later. */
  270. #define NERR_IncompleteDel      (NERR_BASE+199) /* The message alias was not successfully deleted from all networks. */
  271. #define NERR_MultipleNets       (NERR_BASE+200) /* This operation is not supported on computers with multiple networks. */
  272.  
  273. /*
  274.  *      Server API related
  275.  *              Error codes BASE+210 to BASE+229
  276.  */
  277.  
  278. #define NERR_NetNameNotFound    (NERR_BASE+210) /* This shared resource does not exist.*/
  279. #define NERR_DeviceNotShared    (NERR_BASE+211) /* This device is not shared. */
  280. #define NERR_ClientNameNotFound (NERR_BASE+212) /* A session does not exist with that computer name. */
  281. #define NERR_FileIdNotFound     (NERR_BASE+214) /* There is not an open file with that identification number. */
  282. #define NERR_ExecFailure        (NERR_BASE+215) /* A failure occurred when executing a remote administration command. */
  283. #define NERR_TmpFile            (NERR_BASE+216) /* A failure occurred when opening a remote temporary file. */
  284. #define NERR_TooMuchData        (NERR_BASE+217) /* The data returned from a remote administration command has been truncated to 64K. */
  285. #define NERR_DeviceShareConflict (NERR_BASE+218) /* This device cannot be shared as both a spooled and a non-spooled resource. */
  286. #define NERR_BrowserTableIncomplete (NERR_BASE+219)  /* The information in the list of servers may be incorrect. */
  287. #define NERR_NotLocalDomain     (NERR_BASE+220) /* The computer is not active in this domain. */
  288. #define NERR_IsDfsShare         (NERR_BASE+221) /* The share must be removed from the Distributed File System before it can be deleted. */
  289.  
  290. /*
  291.  *      CharDev API related
  292.  *              Error codes BASE+230 to BASE+249
  293.  */
  294.  
  295. /* UNUSED BASE+230 */
  296. #define NERR_DevInvalidOpCode   (NERR_BASE+231) /* The operation is invalid for this device. */
  297. #define NERR_DevNotFound        (NERR_BASE+232) /* This device cannot be shared. */
  298. #define NERR_DevNotOpen         (NERR_BASE+233) /* This device was not open. */
  299. #define NERR_BadQueueDevString  (NERR_BASE+234) /* This device name list is invalid. */
  300. #define NERR_BadQueuePriority   (NERR_BASE+235) /* The queue priority is invalid. */
  301. #define NERR_NoCommDevs         (NERR_BASE+237) /* There are no shared communication devices. */
  302. #define NERR_QueueNotFound      (NERR_BASE+238) /* The queue you specified does not exist. */
  303. #define NERR_BadDevString       (NERR_BASE+240) /* This list of devices is invalid. */
  304. #define NERR_BadDev             (NERR_BASE+241) /* The requested device is invalid. */
  305. #define NERR_InUseBySpooler     (NERR_BASE+242) /* This device is already in use by the spooler. */
  306. #define NERR_CommDevInUse       (NERR_BASE+243) /* This device is already in use as a communication device. */
  307.  
  308. /*
  309.  *      NetICanonicalize and NetIType and NetIMakeLMFileName
  310.  *      NetIListCanon and NetINameCheck
  311.  *              Error codes BASE+250 to BASE+269
  312.  */
  313.  
  314. #define NERR_InvalidComputer   (NERR_BASE+251) /* This computer name is invalid. */
  315. /* UNUSED BASE+252 */
  316. /* UNUSED BASE+253 */
  317. #define NERR_MaxLenExceeded    (NERR_BASE+254) /* The string and prefix specified are too long. */
  318. /* UNUSED BASE+255 */
  319. #define NERR_BadComponent      (NERR_BASE+256) /* This path component is invalid. */
  320. #define NERR_CantType          (NERR_BASE+257) /* Could not determine the type of input. */
  321. /* UNUSED BASE+258 */
  322. /* UNUSED BASE+259 */
  323. #define NERR_TooManyEntries    (NERR_BASE+262) /* The buffer for types is not big enough. */
  324.  
  325. /*
  326.  *      NetProfile
  327.  *              Error codes BASE+270 to BASE+276
  328.  */
  329.  
  330. #define NERR_ProfileFileTooBig  (NERR_BASE+270) /* Profile files cannot exceed 64K. */
  331. #define NERR_ProfileOffset      (NERR_BASE+271) /* The start offset is out of range. */
  332. #define NERR_ProfileCleanup     (NERR_BASE+272) /* The system cannot delete current connections to network resources. */
  333. #define NERR_ProfileUnknownCmd  (NERR_BASE+273) /* The system was unable to parse the command line in this file.*/
  334. #define NERR_ProfileLoadErr     (NERR_BASE+274) /* An error occurred while loading the profile file. */
  335. #define NERR_ProfileSaveErr     (NERR_BASE+275) /* @W Errors occurred while saving the profile file.  The profile was partially saved. */
  336.  
  337.  
  338. /*
  339.  *      NetAudit and NetErrorLog
  340.  *              Error codes BASE+277 to BASE+279
  341.  */
  342.  
  343. #define NERR_LogOverflow           (NERR_BASE+277)      /* Log file %1 is full. */
  344. #define NERR_LogFileChanged        (NERR_BASE+278)      /* This log file has changed between reads. */
  345. #define NERR_LogFileCorrupt        (NERR_BASE+279)      /* Log file %1 is corrupt. */
  346.  
  347.  
  348. /*
  349.  *      NetRemote
  350.  *              Error codes BASE+280 to BASE+299
  351.  */
  352. #define NERR_SourceIsDir   (NERR_BASE+280) /* The source path cannot be a directory. */
  353. #define NERR_BadSource     (NERR_BASE+281) /* The source path is illegal. */
  354. #define NERR_BadDest       (NERR_BASE+282) /* The destination path is illegal. */
  355. #define NERR_DifferentServers   (NERR_BASE+283) /* The source and destination paths are on different servers. */
  356. /* UNUSED BASE+284 */
  357. #define NERR_RunSrvPaused       (NERR_BASE+285) /* The Run server you requested is paused. */
  358. /* UNUSED BASE+286 */
  359. /* UNUSED BASE+287 */
  360. /* UNUSED BASE+288 */
  361. #define NERR_ErrCommRunSrv      (NERR_BASE+289) /* An error occurred when communicating with a Run server. */
  362. /* UNUSED BASE+290 */
  363. #define NERR_ErrorExecingGhost  (NERR_BASE+291) /* An error occurred when starting a background process. */
  364. #define NERR_ShareNotFound      (NERR_BASE+292) /* The shared resource you are connected to could not be found.*/
  365. /* UNUSED BASE+293 */
  366. /* UNUSED BASE+294 */
  367.  
  368.  
  369. /*
  370.  *  NetWksta.sys (redir) returned error codes.
  371.  *
  372.  *          NERR_BASE + (300-329)
  373.  */
  374.  
  375. #define NERR_InvalidLana        (NERR_BASE+300) /* The LAN adapter number is invalid.  */
  376. #define NERR_OpenFiles          (NERR_BASE+301) /* There are open files on the connection.    */
  377. #define NERR_ActiveConns        (NERR_BASE+302) /* Active connections still exist. */
  378. #define NERR_BadPasswordCore    (NERR_BASE+303) /* This share name or password is invalid. */
  379. #define NERR_DevInUse           (NERR_BASE+304) /* The device is being accessed by an active process. */
  380. #define NERR_LocalDrive         (NERR_BASE+305) /* The drive letter is in use locally. */
  381.  
  382. /*
  383.  *  Alert error codes.
  384.  *
  385.  *          NERR_BASE + (330-339)
  386.  */
  387. #define NERR_AlertExists        (NERR_BASE+330) /* The specified client is already registered for the specified event. */
  388. #define NERR_TooManyAlerts      (NERR_BASE+331) /* The alert table is full. */
  389. #define NERR_NoSuchAlert        (NERR_BASE+332) /* An invalid or nonexistent alert name was raised. */
  390. #define NERR_BadRecipient       (NERR_BASE+333) /* The alert recipient is invalid.*/
  391. #define NERR_AcctLimitExceeded  (NERR_BASE+334) /* A user's session with this server has been deleted
  392.                                                  * because the user's logon hours are no longer valid. */
  393.  
  394. /*
  395.  *  Additional Error and Audit log codes.
  396.  *
  397.  *          NERR_BASE +(340-343)
  398.  */
  399. #define NERR_InvalidLogSeek     (NERR_BASE+340) /* The log file does not contain the requested record number. */
  400. /* UNUSED BASE+341 */
  401. /* UNUSED BASE+342 */
  402. /* UNUSED BASE+343 */
  403.  
  404. /*
  405.  *  Additional UAS and NETLOGON codes
  406.  *
  407.  *          NERR_BASE +(350-359)
  408.  */
  409. #define NERR_BadUasConfig       (NERR_BASE+350) /* The user accounts database is not configured correctly. */
  410. #define NERR_InvalidUASOp       (NERR_BASE+351) /* This operation is not permitted when the Netlogon service is running. */
  411. #define NERR_LastAdmin          (NERR_BASE+352) /* This operation is not allowed on the last administrative account. */
  412. #define NERR_DCNotFound         (NERR_BASE+353) /* Could not find domain controller for this domain. */
  413. #define NERR_LogonTrackingError (NERR_BASE+354) /* Could not set logon information for this user. */
  414. #define NERR_NetlogonNotStarted (NERR_BASE+355) /* The Netlogon service has not been started. */
  415. #define NERR_CanNotGrowUASFile  (NERR_BASE+356) /* Unable to add to the user accounts database. */
  416. #define NERR_TimeDiffAtDC       (NERR_BASE+357) /* This server's clock is not synchronized with the primary domain controller's clock. */
  417. #define NERR_PasswordMismatch   (NERR_BASE+358) /* A password mismatch has been detected. */
  418.  
  419.  
  420. /*
  421.  *  Server Integration error codes.
  422.  *
  423.  *          NERR_BASE +(360-369)
  424.  */
  425. #define NERR_NoSuchServer       (NERR_BASE+360) /* The server identification does not specify a valid server. */
  426. #define NERR_NoSuchSession      (NERR_BASE+361) /* The session identification does not specify a valid session. */
  427. #define NERR_NoSuchConnection   (NERR_BASE+362) /* The connection identification does not specify a valid connection. */
  428. #define NERR_TooManyServers     (NERR_BASE+363) /* There is no space for another entry in the table of available servers. */
  429. #define NERR_TooManySessions    (NERR_BASE+364) /* The server has reached the maximum number of sessions it supports. */
  430. #define NERR_TooManyConnections (NERR_BASE+365) /* The server has reached the maximum number of connections it supports. */
  431. #define NERR_TooManyFiles       (NERR_BASE+366) /* The server cannot open more files because it has reached its maximum number. */
  432. #define NERR_NoAlternateServers (NERR_BASE+367) /* There are no alternate servers registered on this server. */
  433. /* UNUSED BASE+368 */
  434. /* UNUSED BASE+369 */
  435.  
  436. #define NERR_TryDownLevel       (NERR_BASE+370) /* Try down-level (remote admin protocol) version of API instead. */
  437.  
  438. /*
  439.  *  UPS error codes.
  440.  *
  441.  *          NERR_BASE + (380-384)
  442.  */
  443. #define NERR_UPSDriverNotStarted    (NERR_BASE+380) /* The UPS driver could not be accessed by the UPS service. */
  444. #define NERR_UPSInvalidConfig       (NERR_BASE+381) /* The UPS service is not configured correctly. */
  445. #define NERR_UPSInvalidCommPort     (NERR_BASE+382) /* The UPS service could not access the specified Comm Port. */
  446. #define NERR_UPSSignalAsserted      (NERR_BASE+383) /* The UPS indicated a line fail or low battery situation. Service not started. */
  447. #define NERR_UPSShutdownFailed      (NERR_BASE+384) /* The UPS service failed to perform a system shut down. */
  448.  
  449. /*
  450.  *  Remoteboot error codes.
  451.  *
  452.  *          NERR_BASE + (400-419)
  453.  *          Error codes 400 - 405 are used by RPLBOOT.SYS.
  454.  *          Error codes 403, 407 - 416 are used by RPLLOADR.COM,
  455.  *          Error code 417 is the alerter message of REMOTEBOOT (RPLSERVR.EXE).
  456.  *          Error code 418 is for when REMOTEBOOT can't start
  457.  *          Error code 419 is for a disallowed 2nd rpl connection
  458.  *
  459.  */
  460. #define NERR_BadDosRetCode      (NERR_BASE+400) /* The program below returned an MS-DOS error code:*/
  461. #define NERR_ProgNeedsExtraMem  (NERR_BASE+401) /* The program below needs more memory:*/
  462. #define NERR_BadDosFunction     (NERR_BASE+402) /* The program below called an unsupported MS-DOS function:*/
  463. #define NERR_RemoteBootFailed   (NERR_BASE+403) /* The workstation failed to boot.*/
  464. #define NERR_BadFileCheckSum    (NERR_BASE+404) /* The file below is corrupt.*/
  465. #define NERR_NoRplBootSystem    (NERR_BASE+405) /* No loader is specified in the boot-block definition file.*/
  466. #define NERR_RplLoadrNetBiosErr (NERR_BASE+406) /* NetBIOS returned an error: The NCB and SMB are dumped above.*/
  467. #define NERR_RplLoadrDiskErr    (NERR_BASE+407) /* A disk I/O error occurred.*/
  468. #define NERR_ImageParamErr      (NERR_BASE+408) /* Image parameter substitution failed.*/
  469. #define NERR_TooManyImageParams (NERR_BASE+409) /* Too many image parameters cross disk sector boundaries.*/
  470. #define NERR_NonDosFloppyUsed   (NERR_BASE+410) /* The image was not generated from an MS-DOS diskette formatted with /S.*/
  471. #define NERR_RplBootRestart     (NERR_BASE+411) /* Remote boot will be restarted later.*/
  472. #define NERR_RplSrvrCallFailed  (NERR_BASE+412) /* The call to the Remoteboot server failed.*/
  473. #define NERR_CantConnectRplSrvr (NERR_BASE+413) /* Cannot connect to the Remoteboot server.*/
  474. #define NERR_CantOpenImageFile  (NERR_BASE+414) /* Cannot open image file on the Remoteboot server.*/
  475. #define NERR_CallingRplSrvr     (NERR_BASE+415) /* Connecting to the Remoteboot server...*/
  476. #define NERR_StartingRplBoot    (NERR_BASE+416) /* Connecting to the Remoteboot server...*/
  477. #define NERR_RplBootServiceTerm (NERR_BASE+417) /* Remote boot service was stopped; check the error log for the cause of the problem.*/
  478. #define NERR_RplBootStartFailed (NERR_BASE+418) /* Remote boot startup failed; check the error log for the cause of the problem.*/
  479. #define NERR_RPL_CONNECTED      (NERR_BASE+419) /* A second connection to a Remoteboot resource is not allowed.*/
  480.  
  481. /*
  482.  *  FTADMIN API error codes
  483.  *
  484.  *       NERR_BASE + (425-434)
  485.  *
  486.  *       (Currently not used in NT)
  487.  *
  488.  */
  489.  
  490. /*
  491.  *  Browser service API error codes
  492.  *
  493.  *       NERR_BASE + (450-475)
  494.  *
  495.  */
  496. #define NERR_BrowserConfiguredToNotRun     (NERR_BASE+450) /* The browser service was configured with MaintainServerList=No. */
  497.  
  498. /*
  499.  *  Additional Remoteboot error codes.
  500.  *
  501.  *          NERR_BASE + (510-550)
  502.  */
  503. #define NERR_RplNoAdaptersStarted          (NERR_BASE+510) /*Service failed to start since none of the network adapters started with this service.*/
  504. #define NERR_RplBadRegistry                (NERR_BASE+511) /*Service failed to start due to bad startup information in the registry.*/
  505. #define NERR_RplBadDatabase                (NERR_BASE+512) /*Service failed to start because its database is absent or corrupt.*/
  506. #define NERR_RplRplfilesShare              (NERR_BASE+513) /*Service failed to start because RPLFILES share is absent.*/
  507. #define NERR_RplNotRplServer               (NERR_BASE+514) /*Service failed to start because RPLUSER group is absent.*/
  508. #define NERR_RplCannotEnum                 (NERR_BASE+515) /*Cannot enumerate service records.*/
  509. #define NERR_RplWkstaInfoCorrupted         (NERR_BASE+516) /*Workstation record information has been corrupted.*/
  510. #define NERR_RplWkstaNotFound              (NERR_BASE+517) /*Workstation record was not found.*/
  511. #define NERR_RplWkstaNameUnavailable       (NERR_BASE+518) /*Workstation name is in use by some other workstation.*/
  512. #define NERR_RplProfileInfoCorrupted       (NERR_BASE+519) /*Profile record information has been corrupted.*/
  513. #define NERR_RplProfileNotFound            (NERR_BASE+520) /*Profile record was not found.*/
  514. #define NERR_RplProfileNameUnavailable     (NERR_BASE+521) /*Profile name is in use by some other profile.*/
  515. #define NERR_RplProfileNotEmpty            (NERR_BASE+522) /*There are workstations using this profile.*/
  516. #define NERR_RplConfigInfoCorrupted        (NERR_BASE+523) /*Configuration record information has been corrupted.*/
  517. #define NERR_RplConfigNotFound             (NERR_BASE+524) /*Configuration record was not found.*/
  518. #define NERR_RplAdapterInfoCorrupted       (NERR_BASE+525) /*Adapter id record information has been corrupted.*/
  519. #define NERR_RplInternal                   (NERR_BASE+526) /*An internal service error has occurred.*/
  520. #define NERR_RplVendorInfoCorrupted        (NERR_BASE+527) /*Vendor id record information has been corrupted.*/
  521. #define NERR_RplBootInfoCorrupted          (NERR_BASE+528) /*Boot block record information has been corrupted.*/
  522. #define NERR_RplWkstaNeedsUserAcct         (NERR_BASE+529) /*The user account for this workstation record is missing.*/
  523. #define NERR_RplNeedsRPLUSERAcct           (NERR_BASE+530) /*The RPLUSER local group could not be found.*/
  524. #define NERR_RplBootNotFound               (NERR_BASE+531) /*Boot block record was not found.*/
  525. #define NERR_RplIncompatibleProfile        (NERR_BASE+532) /*Chosen profile is incompatible with this workstation.*/
  526. #define NERR_RplAdapterNameUnavailable     (NERR_BASE+533) /*Chosen network adapter id is in use by some other workstation.*/
  527. #define NERR_RplConfigNotEmpty             (NERR_BASE+534) /*There are profiles using this configuration.*/
  528. #define NERR_RplBootInUse                  (NERR_BASE+535) /*There are workstations, profiles or configurations using this boot block.*/
  529. #define NERR_RplBackupDatabase             (NERR_BASE+536) /*Service failed to backup Remoteboot database.*/
  530. #define NERR_RplAdapterNotFound            (NERR_BASE+537) /*Adapter record was not found.*/
  531. #define NERR_RplVendorNotFound             (NERR_BASE+538) /*Vendor record was not found.*/
  532. #define NERR_RplVendorNameUnavailable      (NERR_BASE+539) /*Vendor name is in use by some other vendor record.*/
  533. #define NERR_RplBootNameUnavailable        (NERR_BASE+540) /*(boot name, vendor id) is in use by some other boot block record.*/
  534. #define NERR_RplConfigNameUnavailable      (NERR_BASE+541) /*Configuration name is in use by some other configuration.*/
  535.  
  536. /**INTERNAL_ONLY**/
  537.  
  538. /*
  539.  *  Dfs API error codes.
  540.  *
  541.  *          NERR_BASE + (560-590)
  542.  */
  543.  
  544. #define NERR_DfsInternalCorruption         (NERR_BASE+560) /*The internal database maintained by the Dfs service is corrupt*/
  545. #define NERR_DfsVolumeDataCorrupt          (NERR_BASE+561) /*One of the records in the internal Dfs database is corrupt*/
  546. #define NERR_DfsNoSuchVolume               (NERR_BASE+562) /*There is no volume whose entry path matches the input Entry Path*/
  547. #define NERR_DfsVolumeAlreadyExists        (NERR_BASE+563) /*A volume with the given name already exists*/
  548. #define NERR_DfsAlreadyShared              (NERR_BASE+564) /*The server share specified is already shared in the Dfs*/
  549. #define NERR_DfsNoSuchShare                (NERR_BASE+565) /*The indicated server share does not support the indicated Dfs volume*/
  550. #define NERR_DfsNotALeafVolume             (NERR_BASE+566) /*The operation is not valid on a non-leaf volume*/
  551. #define NERR_DfsLeafVolume                 (NERR_BASE+567) /*The operation is not valid on a leaf volume*/
  552. #define NERR_DfsVolumeHasMultipleServers   (NERR_BASE+568) /*The operation is ambiguous because the volume has multiple servers*/
  553. #define NERR_DfsCantCreateJunctionPoint    (NERR_BASE+569) /*Unable to create a junction point*/
  554. #define NERR_DfsServerNotDfsAware          (NERR_BASE+570) /*The server is not Dfs Aware*/
  555. #define NERR_DfsBadRenamePath              (NERR_BASE+571) /*The specified rename target path is invalid*/
  556. #define NERR_DfsVolumeIsOffline            (NERR_BASE+572) /*The specified Dfs volume is offline*/
  557. #define NERR_DfsNoSuchServer               (NERR_BASE+573) /*The specified server is not a server for this volume*/
  558. #define NERR_DfsCyclicalName               (NERR_BASE+574) /*A cycle in the Dfs name was detected*/
  559. #define NERR_DfsNotSupportedInServerDfs    (NERR_BASE+575) /*The operation is not supported on a server-based Dfs*/
  560. #define NERR_DfsDuplicateService           (NERR_BASE+576) /*This volume is already supported by the specified server-share*/
  561. #define NERR_DfsCantRemoveLastServerShare  (NERR_BASE+577) /*Can't remove the last server-share supporting this volume*/
  562. #define NERR_DfsVolumeIsInterDfs           (NERR_BASE+578) /*The operation is not supported for an Inter-Dfs volume*/
  563. #define NERR_DfsInconsistent               (NERR_BASE+579) /*The internal state of the Dfs Service has become inconsistent*/
  564. #define NERR_DfsServerUpgraded             (NERR_BASE+580) /*The Dfs Service has been installed on the specified server*/
  565. #define NERR_DfsDataIsIdentical            (NERR_BASE+581) /*The Dfs data being reconciled is identical*/
  566. #define NERR_DfsCantRemoveDfsRoot          (NERR_BASE+582) /*The Dfs root volume cannot be deleted - Uninstall Dfs if required*/
  567. #define NERR_DfsChildOrParentInDfs         (NERR_BASE+583) /*A child or parent directory of the share is already in a Dfs*/
  568. #define NERR_DfsInternalError              (NERR_BASE+590) /*Dfs internal error*/
  569.  
  570. /*
  571.  *  Net setup error codes.
  572.  *
  573.  *          NERR_BASE + (591-600)
  574.  */
  575. #define NERR_SetupAlreadyJoined            (NERR_BASE+591) /*This machine is already joined to a domain.*/
  576. #define NERR_SetupNotJoined                (NERR_BASE+592) /*This machine is not currently joined to a domain.*/
  577. #define NERR_SetupDomainController         (NERR_BASE+593) /*This machine is a domain controller and cannot be unjoined from a domain.*/
  578. #define NERR_DefaultJoinRequired           (NERR_BASE+594) /*The destination domain controller does not support creating machine accounts in OUs.*/
  579. #define NERR_InvalidWorkgroupName          (NERR_BASE+595) /*The specified workgroup name is invalid*/
  580. #define NERR_NameUsesIncompatibleCodePage  (NERR_BASE+596) /*The specified computer name is incompatible with the default language used on the domain controller.*/
  581. #define NERR_ComputerAccountNotFound       (NERR_BASE+597) /*The specified computer account could not be found.*/
  582.  
  583. /***********WARNING ****************
  584.  *The range 2750-2799 has been     *
  585.  *allocated to the IBM LAN Server  *
  586.  ***********************************/
  587.  
  588. /***********WARNING ****************
  589.  *The range 2900-2999 has been     *
  590.  *reserved for Microsoft OEMs      *
  591.  ***********************************/
  592.  
  593. /**END_INTERNAL**/
  594.  
  595. #define MAX_NERR                (NERR_BASE+899) /* This is the last error in NERR range. */
  596.  
  597. /*
  598.  * end of list
  599.  *
  600.  *    WARNING:  Do not exceed MAX_NERR; values above this are used by
  601.  *              other error code ranges (errlog.h, service.h, apperr.h).
  602.  */
  603.  
  604.  
  605. /*NOINC*/
  606. #pragma option pop /*P_O_Pop*/
  607. #endif /* NETERR_INCLUDED */
  608. /*INC*/
  609.  
  610.