home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / WIN_NT / LMAPI.ZIP / H / LMERR.H < prev    next >
Encoding:
C/C++ Source or Header  |  1993-04-07  |  26.4 KB  |  456 lines

  1. /********************************************************************/
  2. /**                     Microsoft LAN Manager                      **/
  3. /**               Copyright(c) Microsoft Corp., 1987-1993          **/
  4. /********************************************************************/
  5.  
  6. /***    lmerr.h - network error definitions
  7.  *
  8.  */
  9.  
  10.  
  11. /*NOINC*/
  12. #ifndef NETERR_INCLUDED
  13.  
  14. #define NETERR_INCLUDED
  15. /*INC*/
  16.  
  17.  
  18. #define NERR_Success            0       /* Success */
  19.  
  20. // ERROR_ equates can be intermixed with NERR_ equates.
  21. #include <winerror.h>
  22.  
  23.  
  24.  
  25. /***    NERR_BASE is the base of error codes from network utilities,
  26.  *      chosen to avoid conflict with system and redirector error codes.
  27.  *      2100 is a value that has been assigned to us by system.
  28.  */
  29. #define NERR_BASE       2100
  30.  
  31.  
  32. /* UNUSED BASE+0 */
  33. /* UNUSED BASE+1 */
  34. #define NERR_NetNotStarted      (NERR_BASE+2)   /* The workstation driver isn't installed. */
  35. #define NERR_UnknownServer      (NERR_BASE+3)   /* The server could not be located. */
  36. #define NERR_ShareMem           (NERR_BASE+4)   /* An internal error occurred.  The network cannot access a shared memory segment. */
  37.  
  38. #define NERR_NoNetworkResource  (NERR_BASE+5)   /* A network resource shortage occurred . */
  39. #define NERR_RemoteOnly         (NERR_BASE+6)   /* This operation is not supported on workstations. */
  40. #define NERR_DevNotRedirected   (NERR_BASE+7)   /* The device is not connected. */
  41. /* UNUSED BASE+8 */
  42. /* UNUSED BASE+9 */
  43. /* UNUSED BASE+10 */
  44. /* UNUSED BASE+11 */
  45. /* UNUSED BASE+12 */
  46. /* UNUSED BASE+13 */
  47. #define NERR_ServerNotStarted   (NERR_BASE+14)  /* The Server service isn't started. */
  48. #define NERR_ItemNotFound       (NERR_BASE+15)  /* The queue is empty. */
  49. #define NERR_UnknownDevDir      (NERR_BASE+16)  /* The device or directory does not exist. */
  50. #define NERR_RedirectedPath     (NERR_BASE+17)  /* The operation is invalid on a redirected resource. */
  51. #define NERR_DuplicateShare     (NERR_BASE+18)  /* The name has already been shared. */
  52. #define NERR_NoRoom             (NERR_BASE+19)  /* The server is currently out of the requested resource. */
  53. /* UNUSED BASE+20 */
  54. #define NERR_TooManyItems       (NERR_BASE+21)  /* Requested add of item exceeds maximum allowed. */
  55. #define NERR_InvalidMaxUsers    (NERR_BASE+22)  /* The Peer service supports only two simultaneous users. */
  56. #define NERR_BufTooSmall        (NERR_BASE+23)  /* The API return buffer is too small. */
  57. /* UNUSED BASE+24 */
  58. /* UNUSED BASE+25 */
  59. /* UNUSED BASE+26 */
  60. #define NERR_RemoteErr          (NERR_BASE+27)  /* A remote API error occurred.  */
  61. /* UNUSED BASE+28 */
  62. /* UNUSED BASE+29 */
  63. /* UNUSED BASE+30 */
  64. #define NERR_LanmanIniError     (NERR_BASE+31)  /* An error occurred when opening or reading the configuration file. */
  65. /* UNUSED BASE+32 */
  66. /* UNUSED BASE+33 */
  67. /* UNUSED BASE+34 */
  68. /* UNUSED BASE+35 */
  69. #define NERR_NetworkError       (NERR_BASE+36)  /* A general network error occurred. */
  70. #define NERR_WkstaInconsistentState (NERR_BASE+37)
  71.     /* The Workstation service is in an inconsistent state. Reboot the machine before restarting the Workstation service. */
  72. #define NERR_WkstaNotStarted    (NERR_BASE+38)  /* The Workstation service has not been started. */
  73. #define NERR_BrowserNotStarted  (NERR_BASE+39)  /* The requested information is not available. */
  74. #define NERR_InternalError      (NERR_BASE+40)  /* An internal Windows NT error occurred.*/
  75. #define NERR_BadTransactConfig  (NERR_BASE+41)  /* The server is not configured for transactions. */
  76. #define NERR_InvalidAPI         (NERR_BASE+42)  /* The requested API isn't supported on the remote server. */
  77. #define NERR_BadEventName       (NERR_BASE+43)  /* The event name is invalid. */
  78. #define NERR_DupNameReboot      (NERR_BASE+44)  /* Duplicate computer name; change it and restart the computer. */
  79. /*
  80.  *      Config API related
  81.  *              Error codes from BASE+45 to BASE+49
  82.  */
  83.  
  84. /* UNUSED BASE+45 */
  85. #define NERR_CfgCompNotFound    (NERR_BASE+46)  /* Could not find the specified component in the configuration information. */
  86. #define NERR_CfgParamNotFound   (NERR_BASE+47)  /* Could not find the specified parameter in the configuration information. */
  87. #define NERR_LineTooLong        (NERR_BASE+49)  /* A line in the configuration file is too long. */
  88.  
  89. /*
  90.  *      Spooler API related
  91.  *              Error codes from BASE+50 to BASE+79
  92.  */
  93.  
  94. #define NERR_QNotFound          (NERR_BASE+50)  /* The printer does not exist. */
  95. #define NERR_JobNotFound        (NERR_BASE+51)  /* The print job does not exist. */
  96. #define NERR_DestNotFound       (NERR_BASE+52)  /* The printer destination cannot be found. */
  97. #define NERR_DestExists         (NERR_BASE+53)  /* The printer destination already exists. */
  98. #define NERR_QExists            (NERR_BASE+54)  /* The printer queue already exists. */
  99. #define NERR_QNoRoom            (NERR_BASE+55)  /* No more printers can be added. */
  100. #define NERR_JobNoRoom          (NERR_BASE+56)  /* No more print jobs can be added.  */
  101. #define NERR_DestNoRoom         (NERR_BASE+57)  /* No more printer destinations can be added. */
  102. #define NERR_DestIdle           (NERR_BASE+58)  /* This printer destination is idle and cannot accept control operations. */
  103. #define NERR_DestInvalidOp      (NERR_BASE+59)  /* This printer destination request contains an invalid control function. */
  104. #define NERR_ProcNoRespond      (NERR_BASE+60)  /* The printer processor is not responding. */
  105. #define NERR_SpoolerNotLoaded   (NERR_BASE+61)  /* The spooler is not running. */
  106. #define NERR_DestInvalidState   (NERR_BASE+62)  /* This operation cannot be performed on the print destination in its current state. */
  107. #define NERR_QInvalidState      (NERR_BASE+63)  /* This operation cannot be performed on the printer queue in its current state. */
  108. #define NERR_JobInvalidState    (NERR_BASE+64)  /* This operation cannot be performed on the print job in its current state. */
  109. #define NERR_SpoolNoMemory      (NERR_BASE+65)  /* A spooler memory allocation failure occurred. */
  110. #define NERR_DriverNotFound     (NERR_BASE+66)  /* The device driver does not exist. */
  111. #define NERR_DataTypeInvalid    (NERR_BASE+67)  /* The datatype is not supported by the processor. */
  112. #define NERR_ProcNotFound       (NERR_BASE+68)  /* The print processor is not installed. */
  113.  
  114. /*
  115.  *      Service API related
  116.  *              Error codes from BASE+80 to BASE+99
  117.  */
  118.  
  119. #define NERR_ServiceTableLocked (NERR_BASE+80)  /* The service does not respond to control actions. */
  120. #define NERR_ServiceTableFull   (NERR_BASE+81)  /* The service table is full. */
  121. #define NERR_ServiceInstalled   (NERR_BASE+82)  /* The requested service has already been started. */
  122. #define NERR_ServiceEntryLocked (NERR_BASE+83)  /* The service does not respond to control actions. */
  123. #define NERR_ServiceNotInstalled (NERR_BASE+84) /* The service has not been started. */
  124. #define NERR_BadServiceName     (NERR_BASE+85)  /* The service name is invalid. */
  125. #define NERR_ServiceCtlTimeout  (NERR_BASE+86)  /* The service is not responding to the control function. */
  126. #define NERR_ServiceCtlBusy     (NERR_BASE+87)  /* The service control is busy. */
  127. #define NERR_BadServiceProgName (NERR_BASE+88)  /* The configuration file contains an invalid service program name. */
  128. #define NERR_ServiceNotCtrl     (NERR_BASE+89)  /* The service could not be controlled in its present state. */
  129. #define NERR_ServiceKillProc    (NERR_BASE+90)  /* The service ended abnormally. */
  130. #define NERR_ServiceCtlNotValid (NERR_BASE+91)  /* The requested pause or stop is not valid for this service. */
  131. #define NERR_NotInDispatchTbl   (NERR_BASE+92)  /* The service control dispatcher could not find the service name in the dispatch table. */
  132. #define NERR_BadControlRecv     (NERR_BASE+93)  /* The services control dispatcher pipe read failed */
  133. #define NERR_ServiceNotStarting (NERR_BASE+94)  /* A thread for the new service could not be created */
  134.  
  135. /*
  136.  *      Wksta and Logon API related
  137.  *              Error codes from BASE+100 to BASE+118
  138.  */
  139.  
  140. #define NERR_AlreadyLoggedOn    (NERR_BASE+100) /* This workstation is already logged on to the local-area network. */
  141. #define NERR_NotLoggedOn        (NERR_BASE+101) /* The workstation isn't logged on to the local-area network. */
  142. #define NERR_BadUsername        (NERR_BASE+102) /* The username or groupname parameter is invalid.  */
  143. #define NERR_BadPassword        (NERR_BASE+103) /* The password parameter is invalid. */
  144. #define NERR_UnableToAddName_W  (NERR_BASE+104) /* @W The logon processor did not add the message alias. */
  145. #define NERR_UnableToAddName_F  (NERR_BASE+105) /* The logon processor did not add the message alias. */
  146. #define NERR_UnableToDelName_W  (NERR_BASE+106) /* @W The logoff processor did not delete the message alias. */
  147. #define NERR_UnableToDelName_F  (NERR_BASE+107) /* The logoff processor did not delete the message alias. */
  148. /* UNUSED BASE+108 */
  149. #define NERR_LogonsPaused       (NERR_BASE+109) /* Network logons are paused. */
  150. #define NERR_LogonServerConflict (NERR_BASE+110)/* A centralized logon-server conflict occurred. */
  151. #define NERR_LogonNoUserPath    (NERR_BASE+111) /* The server is configured without a valid user path. */
  152. #define NERR_LogonScriptError   (NERR_BASE+112) /* An error occurred while loading or running the logon script. */
  153. /* UNUSED BASE+113 */
  154. #define NERR_StandaloneLogon    (NERR_BASE+114) /* The logon server was not specified.  Your computer will be logged on as STANDALONE. */
  155. #define NERR_LogonServerNotFound (NERR_BASE+115) /* The logon server could not be found.  */
  156. #define NERR_LogonDomainExists  (NERR_BASE+116) /* There is already a logon domain for this computer.  */
  157. #define NERR_NonValidatedLogon  (NERR_BASE+117) /* The logon server could not validate the logon. */
  158.  
  159. /*
  160.  *      ACF API related (access, user, group)
  161.  *              Error codes from BASE+119 to BASE+149
  162.  */
  163.  
  164. #define NERR_ACFNotFound        (NERR_BASE+119) /* The security database could not be found. */
  165. #define NERR_GroupNotFound      (NERR_BASE+120) /* The groupname could not be found. */
  166. #define NERR_UserNotFound       (NERR_BASE+121) /* The username could not be found. */
  167. #define NERR_ResourceNotFound   (NERR_BASE+122) /* The resource name could not be found.  */
  168. #define NERR_GroupExists        (NERR_BASE+123) /* The group already exists. */
  169. #define NERR_UserExists         (NERR_BASE+124) /* The user account already exists. */
  170. #define NERR_ResourceExists     (NERR_BASE+125) /* The resource permission list already exists. */
  171. #define NERR_NotPrimary         (NERR_BASE+126) /* This operation is not allowed on backup domain controllers. */
  172. #define NERR_ACFNotLoaded       (NERR_BASE+127) /* The security database has not been started. */
  173. #define NERR_ACFNoRoom          (NERR_BASE+128) /* There are too many names in the user account system. */
  174. #define NERR_ACFFileIOFail      (NERR_BASE+129) /* A disk I/O failure occurred.*/
  175. #define NERR_ACFTooManyLists    (NERR_BASE+130) /* The limit of 64 entries per resource was exceeded. */
  176. #define NERR_UserLogon          (NERR_BASE+131) /* Deleting a user with a session is not allowed. */
  177. #define NERR_ACFNoParent        (NERR_BASE+132) /* The parent directory could not be located. */
  178. #define NERR_CanNotGrowSegment  (NERR_BASE+133) /* Unable to grow UAS session cache segment. */
  179. #define NERR_SpeGroupOp         (NERR_BASE+134) /* This operation is not allowed on this special group. */
  180. #define NERR_NotInCache         (NERR_BASE+135) /* This user is not cached in UAS session cache. */
  181. #define NERR_UserInGroup        (NERR_BASE+136) /* The user already belongs to this group. */
  182. #define NERR_UserNotInGroup     (NERR_BASE+137) /* The user does not belong to this group. */
  183. #define NERR_AccountUndefined   (NERR_BASE+138) /* This user account is undefined. */
  184. #define NERR_AccountExpired     (NERR_BASE+139) /* This user account has expired. */
  185. #define NERR_InvalidWorkstation (NERR_BASE+140) /* The user is not allowed to log on from this workstation. */
  186. #define NERR_InvalidLogonHours  (NERR_BASE+141) /* The user is not allowed to log on at this time.  */
  187. #define NERR_PasswordExpired    (NERR_BASE+142) /* The password of this user has expired. */
  188. #define NERR_PasswordCantChange (NERR_BASE+143) /* The password of this user cannot change. */
  189. #define NERR_PasswordHistConflict (NERR_BASE+144) /* This password cannot be used now. */
  190. #define NERR_PasswordTooShort   (NERR_BASE+145) /* The password is shorter than required. */
  191. #define NERR_PasswordTooRecent  (NERR_BASE+146) /* The password of this user is too recent to change.  */
  192. #define NERR_InvalidDatabase    (NERR_BASE+147) /* The security database is corrupted. */
  193. #define NERR_DatabaseUpToDate   (NERR_BASE+148) /* No updates are necessary to this replicant network security/local security database. */
  194. #define NERR_SyncRequired       (NERR_BASE+149) /* This replicant database is outdated; synchronization is required. */
  195.  
  196. /*
  197.  *      Use API related
  198.  *              Error codes from BASE+150 to BASE+169
  199.  */
  200.  
  201. #define NERR_UseNotFound        (NERR_BASE+150) /* The network connection could not be found. */
  202. #define NERR_BadAsgType         (NERR_BASE+151) /* This asg_type is invalid. */
  203. #define NERR_DeviceIsShared     (NERR_BASE+152) /* This device is currently being shared. */
  204.  
  205. /*
  206.  *      Message Server related
  207.  *              Error codes BASE+170 to BASE+209
  208.  */
  209.  
  210. #define NERR_NoComputerName     (NERR_BASE+170) /* A computername has not been configured.  */
  211. #define NERR_MsgAlreadyStarted  (NERR_BASE+171) /* The Messenger service is already started. */
  212. #define NERR_MsgInitFailed      (NERR_BASE+172) /* The Messenger service failed to start.  */
  213. #define NERR_NameNotFound       (NERR_BASE+173) /* The message alias could not be found on the network. */
  214. #define NERR_AlreadyForwarded   (NERR_BASE+174) /* This message alias has already been forwarded. */
  215. #define NERR_AddForwarded       (NERR_BASE+175) /* This message alias has been added but is still forwarded. */
  216. #define NERR_AlreadyExists      (NERR_BASE+176) /* This message alias already exists locally. */
  217. #define NERR_TooManyNames       (NERR_BASE+177) /* The maximum number of added message aliases has been exceeded. */
  218. #define NERR_DelComputerName    (NERR_BASE+178) /* The computername could not be deleted.*/
  219. #define NERR_LocalForward       (NERR_BASE+179) /* Messages cannot be forwarded back to the same workstation. */
  220. #define NERR_GrpMsgProcessor    (NERR_BASE+180) /* Error in domain message processor. */
  221. #define NERR_PausedRemote       (NERR_BASE+181) /* The message was sent, but the recipient has paused the Messenger service. */
  222. #define NERR_BadReceive         (NERR_BASE+182) /* The message was sent but not received. */
  223. #define NERR_NameInUse          (NERR_BASE+183) /* The message alias is currently in use. Try again later. */
  224. #define NERR_MsgNotStarted      (NERR_BASE+184) /* The Messenger service has not been started. */
  225. #define NERR_NotLocalName       (NERR_BASE+185) /* The name is not on the local computer. */
  226. #define NERR_NoForwardName      (NERR_BASE+186) /* The forwarded message alias could not be found on the network. */
  227. #define NERR_RemoteFull         (NERR_BASE+187) /* The message alias table on the remote station is full. */
  228. #define NERR_NameNotForwarded   (NERR_BASE+188) /* Messages for this alias are not currently being forwarded. */
  229. #define NERR_TruncatedBroadcast (NERR_BASE+189) /* The broadcast message was truncated. */
  230. #define NERR_InvalidDevice      (NERR_BASE+194) /* This is an invalid devicename. */
  231. #define NERR_WriteFault         (NERR_BASE+195) /* A write fault occurred. */
  232. /* UNUSED BASE+196 */
  233. #define NERR_DuplicateName      (NERR_BASE+197) /* A duplicate message alias exists on the network. */
  234. #define NERR_DeleteLater        (NERR_BASE+198) /* @W This message alias will be deleted later. */
  235. #define NERR_IncompleteDel      (NERR_BASE+199) /* The message alias was not successfully deleted from all networks. */
  236. #define NERR_MultipleNets       (NERR_BASE+200) /* This operation is not supported on computers with multiple networks. */
  237.  
  238. /*
  239.  *      Server API related
  240.  *              Error codes BASE+210 to BASE+229
  241.  */
  242.  
  243. #define NERR_NetNameNotFound    (NERR_BASE+210) /* This shared resource does not exist.*/
  244. #define NERR_DeviceNotShared    (NERR_BASE+211) /* This device is not shared. */
  245. #define NERR_ClientNameNotFound (NERR_BASE+212) /* A session does not exist with that computername. */
  246. #define NERR_FileIdNotFound     (NERR_BASE+214) /* There isn't an open file with that ID number. */
  247. #define NERR_ExecFailure        (NERR_BASE+215) /* A failure occurred when executing a remote administration command. */
  248. #define NERR_TmpFile            (NERR_BASE+216) /* A failure occurred when opening a remote temporary file. */
  249. #define NERR_TooMuchData        (NERR_BASE+217) /* The data returned from a remote administration command has been truncated to 64K. */
  250. #define NERR_DeviceShareConflict (NERR_BASE+218) /* This device cannot be shared as both a spooled and a non-spooled resource. */
  251. #define NERR_BrowserTableIncomplete (NERR_BASE+219)  /* The information in the list of servers may be incorrect. */
  252. #define NERR_NotLocalDomain     (NERR_BASE+220) /* The computer isn't active on this domain. */
  253.  
  254. /*
  255.  *      CharDev API related
  256.  *              Error codes BASE+230 to BASE+249
  257.  */
  258.  
  259. /* UNUSED BASE+230 */
  260. #define NERR_DevInvalidOpCode   (NERR_BASE+231) /* The operation is invalid for this device. */
  261. #define NERR_DevNotFound        (NERR_BASE+232) /* This device cannot be shared. */
  262. #define NERR_DevNotOpen         (NERR_BASE+233) /* This device was not open. */
  263. #define NERR_BadQueueDevString  (NERR_BASE+234) /* This devicename list is invalid. */
  264. #define NERR_BadQueuePriority   (NERR_BASE+235) /* The queue priority is invalid. */
  265. #define NERR_NoCommDevs         (NERR_BASE+237) /* There are no shared communication devices. */
  266. #define NERR_QueueNotFound      (NERR_BASE+238) /* The queue you specified doesn't exist. */
  267. #define NERR_BadDevString       (NERR_BASE+240) /* This list of devices is invalid. */
  268. #define NERR_BadDev             (NERR_BASE+241) /* The requested device is invalid. */
  269. #define NERR_InUseBySpooler     (NERR_BASE+242) /* This device is already in use by the spooler. */
  270. #define NERR_CommDevInUse       (NERR_BASE+243) /* This device is already in use as a communication device. */
  271.  
  272. /*
  273.  *      NetICanonicalize and NetIType and NetIMakeLMFileName
  274.  *      NetIListCanon and NetINameCheck
  275.  *              Error codes BASE+250 to BASE+269
  276.  */
  277.  
  278. #define NERR_InvalidComputer   (NERR_BASE+251) /* This computername is invalid. */
  279. /* UNUSED BASE+252 */
  280. /* UNUSED BASE+253 */
  281. #define NERR_MaxLenExceeded    (NERR_BASE+254) /* The string and prefix specified are too long. */
  282. /* UNUSED BASE+255 */
  283. #define NERR_BadComponent      (NERR_BASE+256) /* This path component is invalid. */
  284. #define NERR_CantType          (NERR_BASE+257) /* Could not determine type of input. */
  285. /* UNUSED BASE+258 */
  286. /* UNUSED BASE+259 */
  287. #define NERR_TooManyEntries    (NERR_BASE+262) /* The buffer for types is not big enough. */
  288.  
  289. /*
  290.  *      NetProfile
  291.  *              Error codes BASE+270 to BASE+276
  292.  */
  293.  
  294. #define NERR_ProfileFileTooBig  (NERR_BASE+270) /* Profile files cannot exceed 64K. */
  295. #define NERR_ProfileOffset      (NERR_BASE+271) /* The start offset is out of range. */
  296. #define NERR_ProfileCleanup     (NERR_BASE+272) /* The system cannot delete current connections to network resources. */
  297. #define NERR_ProfileUnknownCmd  (NERR_BASE+273) /* The system was unable to parse the command line in this file.*/
  298. #define NERR_ProfileLoadErr     (NERR_BASE+274) /* An error occurred while loading the profile file. */
  299. #define NERR_ProfileSaveErr     (NERR_BASE+275) /* @W Errors occurred while saving the profile file.  The profile was partially saved. */
  300.  
  301.  
  302. /*
  303.  *      NetAudit and NetErrorLog
  304.  *              Error codes BASE+277 to BASE+279
  305.  */
  306.  
  307. #define NERR_LogOverflow           (NERR_BASE+277)      /* Log file %1 is full. */
  308. #define NERR_LogFileChanged        (NERR_BASE+278)      /* This log file has changed between reads. */
  309. #define NERR_LogFileCorrupt        (NERR_BASE+279)      /* Log file %1 is corrupt. */
  310.  
  311.  
  312. /*
  313.  *      NetRemote
  314.  *              Error codes BASE+280 to BASE+299
  315.  */
  316. #define NERR_SourceIsDir   (NERR_BASE+280) /* The source path cannot be a directory. */
  317. #define NERR_BadSource     (NERR_BASE+281) /* The source path is illegal. */
  318. #define NERR_BadDest       (NERR_BASE+282) /* The destination path is illegal. */
  319. #define NERR_DifferentServers   (NERR_BASE+283) /* The source and destination paths are on different servers. */
  320. /* UNUSED BASE+284 */
  321. #define NERR_RunSrvPaused       (NERR_BASE+285) /* The Run server you requested is paused. */
  322. /* UNUSED BASE+286 */
  323. /* UNUSED BASE+287 */
  324. /* UNUSED BASE+288 */
  325. #define NERR_ErrCommRunSrv      (NERR_BASE+289) /* An error occurred when communicating with a Run server. */
  326. /* UNUSED BASE+290 */
  327. #define NERR_ErrorExecingGhost  (NERR_BASE+291) /* An error occurred when starting a background process. */
  328. #define NERR_ShareNotFound      (NERR_BASE+292) /* The shared resource you are connected to could not be found.*/
  329. /* UNUSED BASE+293 */
  330. /* UNUSED BASE+294 */
  331.  
  332.  
  333. /*
  334.  *  NetWksta.sys (redir) returned error codes.
  335.  *
  336.  *          NERR_BASE + (300-329)
  337.  */
  338.  
  339. #define NERR_InvalidLana        (NERR_BASE+300) /* The LAN adapter number is invalid.  */
  340. #define NERR_OpenFiles          (NERR_BASE+301) /* There are open files on the connection.    */
  341. #define NERR_ActiveConns        (NERR_BASE+302) /* Active connections still exist. */
  342. #define NERR_BadPasswordCore    (NERR_BASE+303) /* This sharename or password is invalid. */
  343. #define NERR_DevInUse           (NERR_BASE+304) /* The device is being accessed by an active process. */
  344. #define NERR_LocalDrive         (NERR_BASE+305) /* The drive letter is in use locally. */
  345.  
  346. /*
  347.  *  Alert error codes.
  348.  *
  349.  *          NERR_BASE + (330-339)
  350.  */
  351. #define NERR_AlertExists        (NERR_BASE+330) /* The specified client is already registered for the specified event. */
  352. #define NERR_TooManyAlerts      (NERR_BASE+331) /* The alert table is full. */
  353. #define NERR_NoSuchAlert        (NERR_BASE+332) /* An invalid or nonexistent alertname was raised. */
  354. #define NERR_BadRecipient       (NERR_BASE+333) /* The alert recipient is invalid.*/
  355. #define NERR_AcctLimitExceeded  (NERR_BASE+334) /* A user's session with this server has been deleted
  356.                                                  * because the user's logon hours are no longer valid. */
  357.  
  358. /*
  359.  *  Additional Error and Audit log codes.
  360.  *
  361.  *          NERR_BASE +(340-343)
  362.  */
  363. #define NERR_InvalidLogSeek     (NERR_BASE+340) /* The log file does not contain the requested record number. */
  364. /* UNUSED BASE+341 */
  365. /* UNUSED BASE+342 */
  366. /* UNUSED BASE+343 */
  367.  
  368. /*
  369.  *  Additional UAS and NETLOGON codes
  370.  *
  371.  *          NERR_BASE +(350-359)
  372.  */
  373. #define NERR_BadUasConfig       (NERR_BASE+350) /* The user account system database is not configured correctly. */
  374. #define NERR_InvalidUASOp       (NERR_BASE+351) /* This operation is not permitted when the Netlogon service is running. */
  375. #define NERR_LastAdmin          (NERR_BASE+352) /* This operation is not allowed on the last admin account. */
  376. #define NERR_DCNotFound         (NERR_BASE+353) /* Could not find domain controller for this domain. */
  377. #define NERR_LogonTrackingError (NERR_BASE+354) /* Could not set logon information for this user. */
  378. #define NERR_NetlogonNotStarted (NERR_BASE+355) /* The Netlogon service has not been started. */
  379. #define NERR_CanNotGrowUASFile  (NERR_BASE+356) /* Unable to grow the user account system database. */
  380. #define NERR_TimeDiffAtDC       (NERR_BASE+357) /* This server's clock is not synchronized with the domain controller's clock. */
  381. #define NERR_PasswordMismatch   (NERR_BASE+358) /* A password mismatch has been detected. */
  382.  
  383.  
  384. /*
  385.  *  Server Integration error codes.
  386.  *
  387.  *          NERR_BASE +(360-369)
  388.  */
  389. #define NERR_NoSuchServer       (NERR_BASE+360) /* The server ID does not specify a valid server. */
  390. #define NERR_NoSuchSession      (NERR_BASE+361) /* The session ID does not specify a valid session. */
  391. #define NERR_NoSuchConnection   (NERR_BASE+362) /* The connection ID does not specify a valid connection. */
  392. #define NERR_TooManyServers     (NERR_BASE+363) /* There is no space for another entry in the table of available servers. */
  393. #define NERR_TooManySessions    (NERR_BASE+364) /* The server has reached the maximum number of sessions it supports. */
  394. #define NERR_TooManyConnections (NERR_BASE+365) /* The server has reached the maximum number of connections it supports. */
  395. #define NERR_TooManyFiles       (NERR_BASE+366) /* The server cannot open more files because it has reached its maximum number. */
  396. #define NERR_NoAlternateServers (NERR_BASE+367) /* There are no alternate servers registered on this server. */
  397. /* UNUSED BASE+368 */
  398. /* UNUSED BASE+369 */
  399.  
  400. /*
  401.  *  UPS error codes.
  402.  *
  403.  *          NERR_BASE + (380-384)
  404.  */
  405. #define NERR_UPSDriverNotStarted    (NERR_BASE+380) /* The UPS driver could not be accessed by the UPS service. */
  406. #define NERR_UPSInvalidConfig        (NERR_BASE+381) /* The UPS service is not correctly configured. */
  407. #define NERR_UPSInvalidCommPort     (NERR_BASE+382) /* The UPS service could not access the specified Comm Port. */
  408. #define NERR_UPSSignalAsserted        (NERR_BASE+383) /* The UPS indicated a line fail or low battery situation. Service not started. */
  409. #define NERR_UPSShutdownFailed      (NERR_BASE+384) /* The UPS service failed to perform a system shutdown. */
  410.  
  411. /*
  412.  *  Remoteboot error codes.
  413.  *
  414.  *          NERR_BASE + (400-419)
  415.  *          Error codes 400 - 405 are used by RPLBOOT.SYS.
  416.  *          Error codes 403, 407 - 416 are used by RPLLOADR.COM,
  417.  *          Error code 417 is the alerter message of REMOTEBOOT (RPLSERVR.EXE).
  418.  *          Error code 418 is for when REMOTEBOOT can't start
  419.  *          Error code 419 is for a disallowed 2nd rpl connection
  420.  *
  421.  *          (Currently not used in NT)
  422.  */
  423.  
  424. /*
  425.  *  FTADMIN API error codes
  426.  *
  427.  *       NERR_BASE + (425-434)
  428.  *
  429.  *       (Currently not used in NT)
  430.  *
  431.  */
  432.  
  433. /*
  434.  *  Browser service API error codes
  435.  *
  436.  *       NERR_BASE + (450-475)
  437.  *
  438.  */
  439. #define NERR_BrowserConfiguredToNotRun     (NERR_BASE+450) /* The browser service was configured with MaintainServerList=No. */
  440.  
  441.  
  442. #define MAX_NERR                (NERR_BASE+899) /* This is the last error in NERR range. */
  443.  
  444. /*
  445.  * end of list
  446.  *
  447.  *    WARNING:  Do not exceed MAX_NERR; values above this are used by
  448.  *              other error code ranges (errlog.h, service.h, apperr.h).
  449.  */
  450.  
  451.  
  452. /*NOINC*/
  453. #endif /* NETERR_INCLUDED */
  454. /*INC*/
  455.  
  456.