home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / dsstlkt5.zip / dssos2tk / dss / NETERR.H < prev    next >
C/C++ Source or Header  |  1998-05-08  |  55KB  |  1,227 lines

  1. /**************************************************************************/
  2. /*                                                                        */
  3. /*              IBM OS/2(tm) Directory and Security Services (DSS)        */
  4. /*                            Version 5.0                                 */
  5. /*                   (C) Copyright IBM Corp. 1995                         */
  6. /*                  Licensed Materials - Property of IBM                  */
  7. /*                                                                        */
  8. /**************************************************************************/
  9.  
  10.  
  11. /***    neterr.h - network error definitions
  12.  *
  13.  */
  14.  
  15.  
  16.  
  17. #ifndef NETERR_INCLUDED
  18.  
  19. #define NETERR_INCLUDED
  20.  
  21.  
  22. #define NERR_Success            0       /* Success */
  23.  
  24. /*
  25.  *      Redirector related
  26.  *              Error codes from 50 to 79, 88, and 230 to 249
  27.  */
  28.  
  29. #define ERROR_NOT_SUPPORTED     50      /* The network request is not supported.  */
  30. #define ERROR_REM_NOT_LIST      51      /* This remote computer is not listening. */
  31. #define ERROR_DUP_NAME          52      /* A duplicate name exists on the network. */
  32. #define ERROR_BAD_NETPATH       53      /* The network path cannot be located. */
  33. #define ERROR_NETWORK_BUSY      54      /* The network is busy. */
  34. #define ERROR_DEV_NOT_EXIST     55      /* This device does not exist on the network. */
  35. #define ERROR_TOO_MANY_CMDS     56      /* The network BIOS command limit has been reached. */
  36. #define ERROR_ADAP_HDW_ERR      57      /* A network adapter hardware error has occurred. */
  37. #define ERROR_BAD_NET_RESP      58      /* The network responded incorrectly. */
  38. #define ERROR_UNEXP_NET_ERR     59      /* An unexpected network error occurred. */
  39. #define ERROR_BAD_REM_ADAP      60      /* The remote adapter is not compatible. */
  40. #define ERROR_PRINTQ_FULL       61      /* The printer queue is full. */
  41. #define ERROR_NO_SPOOL_SPACE    62      /* Space to store the file waiting to be printed is not available on the server. */
  42. #define ERROR_PRINT_CANCELLED   63      /* The requested print file has been cancelled. */
  43. #define ERROR_NETNAME_DELETED   64      /* The network name was deleted. */
  44. #define ERROR_NETWORK_ACCESS_DENIED 65  /* Network access is denied. */
  45. #define ERROR_BAD_DEV_TYPE      66      /* The network resource type is not correct. */
  46. #define ERROR_BAD_NET_NAME      67      /* The network name cannot be found. */
  47. #define ERROR_TOO_MANY_NAMES    68      /* The name limit for the local computer network adapter card was exceeded. */
  48. #define ERROR_TOO_MANY_SESS     69      /* The network BIOS session limit was exceeded. */
  49. #define ERROR_SHARING_PAUSED    70      /* File sharing has been temporarily paused. */
  50. #define ERROR_REQ_NOT_ACCEP     71      /* The network request was not accepted. */
  51. #define ERROR_REDIR_PAUSED      72      /* Print or disk redirection is temporarily paused. */
  52.  
  53. #define ERROR_NET_WRITE_FAULT   88      /* A network data fault occurred. */
  54.  
  55. #define ERROR_BAD_PIPE          230     /* This is a nonexistent pipe or an invalid operation. */
  56. #define ERROR_PIPE_BUSY         231     /* The specified pipe is busy. */
  57. #define ERROR_NO_DATA           232     /* There is no data to be read on a non-blocking read. */
  58. #define ERROR_PIPE_NOT_CONNECTED 233    /* The server disconnected the pipe. */
  59. #define ERROR_MORE_DATA         234     /* Additional data is available. */
  60.  
  61. #define ERROR_VC_DISCONNECTED   240     /* The session was cancelled. */
  62.  
  63.  
  64.  
  65. /***    NERR_BASE is the base of error codes from network utilities,
  66.  *      chosen to avoid conflict with OS/2 and redirector error codes.
  67.  *      2100 is a value that has been assigned to us by OS/2.
  68.  */
  69. #define NERR_BASE       2100
  70.  
  71.  
  72.  
  73. /* UNUSED BASE+0 */
  74. /* UNUSED BASE+1 */
  75. #define NERR_NetNotStarted      (NERR_BASE+2)   /* The workstation driver (NETWKSTA.SYS on OS/2 workstations, NETWKSTA.EXE on DOS workstations) isn't installed. */
  76. #define NERR_UnknownServer      (NERR_BASE+3)   /* The server cannot be located. */
  77. #define NERR_ShareMem           (NERR_BASE+4)   /* An internal error occurred.  The network cannot access a shared memory segment. */
  78. #define NERR_NoNetworkResource  (NERR_BASE+5)   /* A network resource shortage occurred . */
  79. #define NERR_RemoteOnly         (NERR_BASE+6)   /* This operation is not supported on workstations. */
  80. #define NERR_DevNotRedirected   (NERR_BASE+7)   /* The device is not connected. */
  81. /* UNUSED BASE+8 */
  82. /* UNUSED BASE+9 */
  83. /* UNUSED BASE+10 */
  84. /* UNUSED BASE+11 */
  85. /* UNUSED BASE+12 */
  86. /* UNUSED BASE+13 */
  87. #define NERR_ServerNotStarted   (NERR_BASE+14)  /* The Server service isn't started. */
  88. #define NERR_ItemNotFound       (NERR_BASE+15)  /* The queue is empty. */
  89. #define NERR_UnknownDevDir      (NERR_BASE+16)  /* The device or directory does not exist. */
  90. #define NERR_RedirectedPath     (NERR_BASE+17)  /* The operation is invalid on a redirected resource. */
  91. #define NERR_DuplicateShare     (NERR_BASE+18)  /* The name has already been shared. */
  92. #define NERR_NoRoom             (NERR_BASE+19)  /* The server is currently out of the requested resource. */
  93. /* UNUSED BASE+20 */
  94. #define NERR_TooManyItems       (NERR_BASE+21)  /* Requested add of item exceeds maximum allowed. */
  95. #define NERR_InvalidMaxUsers    (NERR_BASE+22)  /* The Peer service supports only two simultaneous users. */
  96. #define NERR_BufTooSmall        (NERR_BASE+23)  /* The API return buffer is too small. */
  97. /* UNUSED BASE+24 */
  98. /* UNUSED BASE+25 */
  99. /* UNUSED BASE+26 */
  100. #define NERR_RemoteErr          (NERR_BASE+27)  /* A remote API error occurred.  */
  101. /* UNUSED BASE+28 */
  102. /* UNUSED BASE+29 */
  103. /* UNUSED BASE+30 */
  104. #define NERR_LanmanIniError     (NERR_BASE+31)  /* An error occurred when opening or reading IBMLAN.INI. */
  105. /* UNUSED BASE+32 */
  106. /* UNUSED BASE+33 */
  107. #define NERR_OS2IoctlError      (NERR_BASE+34)  /* An internal error occurred when calling the workstation driver. */
  108. /* UNUSED BASE+35 */
  109. #define NERR_NetworkError       (NERR_BASE+36)  /* A general network error occurred. */
  110. /* UNUSED BASE+37 */
  111. #define NERR_WkstaNotStarted    (NERR_BASE+38)  /* The Requester service has not been started. */
  112. /* UNUSED BASE+39 */
  113. #define NERR_InternalError      (NERR_BASE+40)  /* An internal LAN Manager error occurred.*/
  114. #define NERR_BadTransactConfig  (NERR_BASE+41)  /* The server is not configured for transactions. */
  115. #define NERR_InvalidAPI         (NERR_BASE+42)  /* The requested API isn't supported on the remote server. */
  116. #define NERR_BadEventName       (NERR_BASE+43)  /* The event name is invalid. */
  117. /* UNUSED BASE+44 */
  118.  
  119. /*
  120.  *      Config API related
  121.  *              Error codes from BASE+45 to BASE+49
  122.  */
  123.  
  124. /* UNUSED BASE+45 */
  125. #define NERR_CfgCompNotFound    (NERR_BASE+46)  /* Could not find the specified component in IBMLAN.INI. */
  126. #define NERR_CfgParamNotFound   (NERR_BASE+47)  /* Could not find the specified parameter in IBMLAN.INI. */
  127. #define NERR_LineTooLong        (NERR_BASE+49)  /* A line in IBMLAN.INI is too long. */
  128.  
  129. /*
  130.  *      Spooler API related
  131.  *              Error codes from BASE+50 to BASE+79
  132.  */
  133.  
  134. #define NERR_QNotFound          (NERR_BASE+50)  /* The printer queue does not exist. */
  135. #define NERR_JobNotFound        (NERR_BASE+51)  /* The print job does not exist. */
  136. #define NERR_DestNotFound       (NERR_BASE+52)  /* The printer destination cannot be found. */
  137. #define NERR_DestExists         (NERR_BASE+53)  /* The printer destination already exists. */
  138. #define NERR_QExists            (NERR_BASE+54)  /* The printer queue already exists. */
  139. #define NERR_QNoRoom            (NERR_BASE+55)  /* No more printer queues can be added. */
  140. #define NERR_JobNoRoom          (NERR_BASE+56)  /* No more print jobs can be added.  */
  141. #define NERR_DestNoRoom         (NERR_BASE+57)  /* No more printer destinations can be added. */
  142. #define NERR_DestIdle           (NERR_BASE+58)  /* This printer destination is idle and cannot accept control operations. */
  143. #define NERR_DestInvalidOp      (NERR_BASE+59)  /* This printer destination request contains an invalid control function. */
  144. #define NERR_ProcNoRespond      (NERR_BASE+60)  /* The printer processor is not responding. */
  145. #define NERR_SpoolerNotLoaded   (NERR_BASE+61)  /* The spooler is not running. */
  146. #define NERR_DestInvalidState   (NERR_BASE+62)  /* This operation cannot be performed on the print destination in its current state. */
  147. #define NERR_QInvalidState      (NERR_BASE+63)  /* This operation cannot be performed on the printer queue in its current state. */
  148. #define NERR_JobInvalidState    (NERR_BASE+64)  /* This operation cannot be performed on the print job in its current state. */
  149. #define NERR_SpoolNoMemory      (NERR_BASE+65)  /* A spooler memory allocation failure occurred. */
  150. #define NERR_DriverNotFound     (NERR_BASE+66)  /* The device driver does not exist. */
  151. #define NERR_DataTypeInvalid    (NERR_BASE+67)  /* The datatype is not supported by the processor. */
  152. #define NERR_ProcNotFound       (NERR_BASE+68)  /* The print processor is not installed. */
  153.  
  154. /*
  155.  *      Service API related
  156.  *              Error codes from BASE+80 to BASE+99
  157.  */
  158.  
  159. #define NERR_ServiceTableLocked (NERR_BASE+80)  /* The service does not respond to control actions. */
  160. #define NERR_ServiceTableFull   (NERR_BASE+81)  /* The service table is full. */
  161. #define NERR_ServiceInstalled   (NERR_BASE+82)  /* The requested service has already been started. */
  162. #define NERR_ServiceEntryLocked (NERR_BASE+83)  /* The service does not respond to control actions. */
  163. #define NERR_ServiceNotInstalled (NERR_BASE+84) /* The service has not been started. */
  164. #define NERR_BadServiceName     (NERR_BASE+85)  /* The service name is invalid. */
  165. #define NERR_ServiceCtlTimeout  (NERR_BASE+86)  /* The service is not responding to the control function. */
  166. #define NERR_ServiceCtlBusy     (NERR_BASE+87)  /* The service control is busy. */
  167. #define NERR_BadServiceProgName (NERR_BASE+88)  /* IBMLAN.INI contains an invalid service program name. */
  168. #define NERR_ServiceNotCtrl     (NERR_BASE+89)  /* The service cannot be controlled in its present state. */
  169. #define NERR_ServiceKillProc    (NERR_BASE+90)  /* The service ended abnormally. */
  170. #define NERR_ServiceCtlNotValid (NERR_BASE+91)  /* The requested pause or stop is not valid for this service. */
  171.  
  172. /*
  173.  *      Wksta and Logon API related
  174.  *              Error codes from BASE+100 to BASE+118
  175.  */
  176.  
  177. #define NERR_AlreadyLoggedOn    (NERR_BASE+100) /* This workstation is already logged on to the local-area network. */
  178. #define NERR_NotLoggedOn        (NERR_BASE+101) /* The workstation isn't logged on to the local-area network. */
  179. #define NERR_BadUsername        (NERR_BASE+102) /* The username or groupname parameter is invalid.  */
  180. #define NERR_BadPassword        (NERR_BASE+103) /* The password parameter is invalid. */
  181. #define NERR_UnableToAddName_W  (NERR_BASE+104) /* @W The logon processor did not add the message alias. */
  182. #define NERR_UnableToAddName_F  (NERR_BASE+105) /* The logon processor did not add the message alias. */
  183. #define NERR_UnableToDelName_W  (NERR_BASE+106) /* @W The logoff processor did not delete the message alias. */
  184. #define NERR_UnableToDelName_F  (NERR_BASE+107) /* The logoff processor did not delete the message alias. */
  185. /* UNUSED BASE+108 */
  186. #define NERR_LogonsPaused       (NERR_BASE+109) /* Network logons are paused. */
  187. #define NERR_LogonServerConflict (NERR_BASE+110)/* A centralized logon-server conflict occurred. */
  188. #define NERR_LogonNoUserPath    (NERR_BASE+111) /* The server is configured without a valid user path. */
  189. #define NERR_LogonScriptError   (NERR_BASE+112) /* An error occurred while loading or running the logon script. */
  190. /* UNUSED BASE+113 */
  191. #define NERR_StandaloneLogon    (NERR_BASE+114) /* The logon server was not specified.  Your computer will be logged on as STANDALONE. */
  192. #define NERR_LogonServerNotFound (NERR_BASE+115) /* The logon server cannot be found.  */
  193. #define NERR_LogonDomainExists  (NERR_BASE+116) /* There is already a logon domain for this computer.  */
  194. #define NERR_NonValidatedLogon  (NERR_BASE+117) /* The logon server could not validate the logon. */
  195.  
  196. /*
  197.  *      ACF API related (access, user, group)
  198.  *              Error codes from BASE+119 to BASE+149
  199.  */
  200.  
  201. #define NERR_AccountUndeletable (NERR_BASE+118) /* The user account is marked undeletable. */
  202. #define NERR_ACFNotFound        (NERR_BASE+119) /* The accounts file NET.ACC cannot be found. */
  203. #define NERR_GroupNotFound      (NERR_BASE+120) /* The groupname cannot be found. */
  204. #define NERR_UserNotFound       (NERR_BASE+121) /* The username cannot be found. */
  205. #define NERR_ResourceNotFound   (NERR_BASE+122) /* The resource name cannot be found.  */
  206. #define NERR_GroupExists        (NERR_BASE+123) /* The group already exists. */
  207. #define NERR_UserExists         (NERR_BASE+124) /* The user account already exists. */
  208. #define NERR_ResourceExists     (NERR_BASE+125) /* The resource permission list already exists. */
  209. #define NERR_NotPrimary         (NERR_BASE+126) /* The UAS database is replicant and will not allow updates. */
  210. #define NERR_ACFNotLoaded       (NERR_BASE+127) /* The user account system has not been started. */
  211. #define NERR_ACFNoRoom          (NERR_BASE+128) /* There are too many names in the user account system. */
  212. #define NERR_ACFFileIOFail      (NERR_BASE+129) /* A disk I/O failure occurred.*/
  213. #define NERR_ACFTooManyLists    (NERR_BASE+130) /* The limit of 64 entries per resource was exceeded. */
  214. #define NERR_UserLogon          (NERR_BASE+131) /* Deleting a user with a session is not allowed. */
  215. #define NERR_ACFNoParent        (NERR_BASE+132) /* The parent directory cannot be located. */
  216. #define NERR_CanNotGrowSegment  (NERR_BASE+133) /* Unable to grow UAS session cache segment. */
  217. #define NERR_SpeGroupOp         (NERR_BASE+134) /* This operation is not allowed on this special group. */
  218. #define NERR_NotInCache         (NERR_BASE+135) /* This user is not cached in UAS session cache. */
  219. #define NERR_UserInGroup        (NERR_BASE+136) /* The user already belongs to this group. */
  220. #define NERR_UserNotInGroup     (NERR_BASE+137) /* The user does not belong to this group. */
  221. #define NERR_AccountUndefined   (NERR_BASE+138) /* This user account is undefined. */
  222. #define NERR_AccountExpired     (NERR_BASE+139) /* This user account has expired. */
  223. #define NERR_InvalidRequester (NERR_BASE+140) /* The user is not allowed to log on from this workstation. */
  224. #define NERR_InvalidLogonHours  (NERR_BASE+141) /* The user is not allowed to log on at this time.  */
  225. #define NERR_PasswordExpired    (NERR_BASE+142) /* The password of this user has expired. */
  226. #define NERR_PasswordCantChange (NERR_BASE+143) /* The password of this user cannot change. */
  227. #define NERR_PasswordHistConflict (NERR_BASE+144) /* This password cannot be used now. */
  228. #define NERR_PasswordTooShort   (NERR_BASE+145) /* The password is shorter than required. */
  229. #define NERR_PasswordTooRecent  (NERR_BASE+146) /* The password of this user is too recent to change.  */
  230. #define NERR_InvalidDatabase    (NERR_BASE+147) /* The UAS database file is corrupted. */
  231. #define NERR_DatabaseUpToDate   (NERR_BASE+148) /* No updates are necessary to this replicant UAS database. */
  232. #define NERR_SyncRequired       (NERR_BASE+149) /* This replicant database is outdated; synchronization is required. */
  233.  
  234. /*
  235.  *      Use API related
  236.  *              Error codes from BASE+150 to BASE+169
  237.  */
  238.  
  239. #define NERR_UseNotFound        (NERR_BASE+150) /* The connection cannot be found. */
  240. #define NERR_BadAsgType         (NERR_BASE+151) /* This asg_type is invalid. */
  241. #define NERR_DeviceIsShared     (NERR_BASE+152) /* This device is currently being shared. */
  242.  
  243. /*
  244.  *      Message Server related
  245.  *              Error codes BASE+170 to BASE+209
  246.  */
  247.  
  248. #define NERR_NoComputerName     (NERR_BASE+170) /* A computername has not been configured.  */
  249. #define NERR_MsgAlreadyStarted  (NERR_BASE+171) /* The Messenger service is already started. */
  250. #define NERR_MsgInitFailed      (NERR_BASE+172) /* The Messenger service failed to start.  */
  251. #define NERR_NameNotFound       (NERR_BASE+173) /* The message alias cannot be found on the local-area network. */
  252. #define NERR_AlreadyForwarded   (NERR_BASE+174) /* This message alias has already been forwarded. */
  253. #define NERR_AddForwarded       (NERR_BASE+175) /* This message alias has been added but is still forwarded. */
  254. #define NERR_AlreadyExists      (NERR_BASE+176) /* This message alias already exists locally. */
  255. #define NERR_TooManyNames       (NERR_BASE+177) /* The maximum number of added message aliases has been exceeded. */
  256. #define NERR_DelComputerName    (NERR_BASE+178) /* The computername cannot be deleted.*/
  257. #define NERR_LocalForward       (NERR_BASE+179) /* Messages cannot be forwarded back to the same workstation. */
  258. #define NERR_GrpMsgProcessor    (NERR_BASE+180) /* Error in domain message processor */
  259. #define NERR_PausedRemote       (NERR_BASE+181) /* The message was sent, but the recipient has paused the Messenger service. */
  260. #define NERR_BadReceive         (NERR_BASE+182) /* The message was sent but not received. */
  261. #define NERR_NameInUse          (NERR_BASE+183) /* The message alias is currently in use. Try again later. */
  262. #define NERR_MsgNotStarted      (NERR_BASE+184) /* The Messenger service has not been started. */
  263. #define NERR_NotLocalName       (NERR_BASE+185) /* The name is not on the local computer. */
  264. #define NERR_NoForwardName      (NERR_BASE+186) /* The forwarded message alias cannot be found on the network. */
  265. #define NERR_RemoteFull         (NERR_BASE+187) /* The message alias table on the remote station is full. */
  266. #define NERR_NameNotForwarded   (NERR_BASE+188) /* Messages for this alias are not currently being forwarded. */
  267. #define NERR_TruncatedBroadcast (NERR_BASE+189) /* The broadcast message was truncated. */
  268. #define NERR_InvalidDevice      (NERR_BASE+194) /* This is an invalid devicename. */
  269. #define NERR_WriteFault         (NERR_BASE+195) /* A write fault occurred. */
  270. /* UNUSED BASE+196 */
  271. #define NERR_DuplicateName      (NERR_BASE+197) /* A duplicate message alias exists on the local-area network. */
  272. #define NERR_DeleteLater        (NERR_BASE+198) /* @W This message alias will be deleted later. */
  273. #define NERR_IncompleteDel      (NERR_BASE+199) /* The message alias was not successfully deleted from all networks. */
  274. #define NERR_MultipleNets       (NERR_BASE+200) /* This operation is not supported on machines with multiple networks. */
  275.  
  276. /*
  277.  *      DASD limit API error codes--BASE+201 to BASE+209
  278.  */
  279.  
  280. #define NERR_DASDNotInstalled         (NERR_BASE+201)
  281. #define NERR_DASDAlreadyInstalled     (NERR_BASE+202)
  282. #define NERR_NotHPFSVolume            (NERR_BASE+203)
  283. #define NERR_DASDMaxValidationFailed  (NERR_BASE+204)
  284. #define NERR_DASDInstallVolumeLocked  (NERR_BASE+205)
  285. #define NERR_LimitNotFound            (NERR_BASE+206)
  286. #define NERR_LimitExists              (NERR_BASE+207)
  287. #define NERR_DASDNotRunning           (NERR_BASE+208)
  288. #define NERR_DASDNotOperational       (NERR_BASE+209)
  289.  
  290. /*
  291.  *      Server API related
  292.  *              Error codes BASE+210 to BASE+229
  293.  */
  294.  
  295. #define NERR_NetNameNotFound    (NERR_BASE+210) /* This shared resource does not exist.*/
  296. #define NERR_DeviceNotShared    (NERR_BASE+211) /* This device is not shared. */
  297. #define NERR_ClientNameNotFound (NERR_BASE+212) /* A session does not exist with that computername. */
  298. #define NERR_FileIdNotFound     (NERR_BASE+214) /* There isn't an open file with that ID number. */
  299. #define NERR_ExecFailure        (NERR_BASE+215) /* A failure occurred when executing a remote administration command. */
  300. #define NERR_TmpFile            (NERR_BASE+216) /* A failure occurred when opening a remote temporary file. */
  301. #define NERR_TooMuchData        (NERR_BASE+217) /* The data returned from a remote administration command has been truncated to 64K. */
  302. #define NERR_DeviceShareConflict (NERR_BASE+218) /* This device cannot be shared as both a spooled and a non-spooled resource. */
  303. #define NERR_BrowserTableIncomplete (NERR_BASE+219)  /* The information in the list of servers may be incorrect. */
  304. #define NERR_NotLocalDomain     (NERR_BASE+220) /* The computer isn't active on this domain. */
  305.  
  306. /*
  307.  * NET APP (cmdline) error messages
  308.  */
  309. #define NERR_RedirectionsNotFound       (NERR_BASE+221)
  310. #define NERR_LocalPathWarning           (NERR_BASE+222)
  311. #define NERR_AssignmentNotMade          (NERR_BASE+223)
  312. #define NERR_ItemNotAssigned            (NERR_BASE+224)
  313. #define NERR_CantAddAssignments         (NERR_BASE+225)
  314. #define NERR_CantSetAssignments         (NERR_BASE+226)
  315. #define NERR_DomainSpecificInfo         (NERR_BASE+227)
  316. #define NERR_TooManyLogonAsn            (NERR_BASE+228)
  317. #define NERR_DASDNoAPARs                (NERR_BASE+229)
  318. /*
  319.  *      CharDev API related
  320.  *              Error codes BASE+230 to BASE+249
  321.  */
  322.  
  323. /* UNUSED BASE+230 */
  324. #define NERR_DevInvalidOpCode   (NERR_BASE+231) /* The operation is invalid for this device. */
  325. #define NERR_DevNotFound        (NERR_BASE+232) /* This device cannot be shared. */
  326. #define NERR_DevNotOpen         (NERR_BASE+233) /* This device was not open. */
  327. #define NERR_BadQueueDevString  (NERR_BASE+234) /* This devicename list is invalid. */
  328. #define NERR_BadQueuePriority   (NERR_BASE+235) /* The queue priority is invalid. */
  329. #define NERR_NoCommDevs         (NERR_BASE+237) /* There are no shared communication devices. */
  330. #define NERR_QueueNotFound      (NERR_BASE+238) /* The queue you specified doesn't exist. */
  331. #define NERR_BadDevString       (NERR_BASE+240) /* This list of devices is invalid. */
  332. #define NERR_BadDev             (NERR_BASE+241) /* The requested device is invalid. */
  333. #define NERR_InUseBySpooler     (NERR_BASE+242) /* This device is already in use by the spooler. */
  334. #define NERR_CommDevInUse       (NERR_BASE+243) /* This device is already in use as a communication device. */
  335.  
  336. /*
  337.  *      NetICanonicalize and NetIType and NetIMakeLMFileName
  338.  *      NetIListCanon and NetINameCheck
  339.  *              Error codes BASE+250 to BASE+269
  340.  */
  341.  
  342. #define NERR_InvalidComputer   (NERR_BASE+251) /* This computername is invalid. */
  343. /* UNUSED BASE+252 */
  344. /* UNUSED BASE+253 */
  345. #define NERR_MaxLenExceeded    (NERR_BASE+254) /* The string and prefix specified are too long. */
  346. /* UNUSED BASE+255 */
  347. #define NERR_BadComponent      (NERR_BASE+256) /* This path component is invalid. */
  348. #define NERR_CantType          (NERR_BASE+257) /* Cannot determine type of input. */
  349. /* UNUSED BASE+258 */
  350. /* UNUSED BASE+259 */
  351. #define NERR_TooManyEntries    (NERR_BASE+262) /* The buffer for types is not big enough. */
  352.  
  353. /*
  354.  *      NetProfile
  355.  *              Error codes BASE+270 to BASE+276
  356.  */
  357.  
  358. #define NERR_ProfileFileTooBig  (NERR_BASE+270) /* Profile files cannot exceed 64K. */
  359. #define NERR_ProfileOffset      (NERR_BASE+271) /* The start offset is out of range. */
  360. #define NERR_ProfileCleanup     (NERR_BASE+272) /* The system cannot delete current connections to network resources. */
  361. #define NERR_ProfileUnknownCmd  (NERR_BASE+273) /* The system was unable to parse the command line in this file.*/
  362. #define NERR_ProfileLoadErr     (NERR_BASE+274) /* An error occurred while loading the profile file. */
  363. #define NERR_ProfileSaveErr     (NERR_BASE+275) /* @W Errors occurred while saving the profile file.  The profile was partially saved. */
  364.  
  365.  
  366. /*
  367.  *      NetAudit and NetErrorLog
  368.  *              Error codes BASE+277 to BASE+279
  369.  */
  370.  
  371. #define NERR_LogOverflow           (NERR_BASE+277)      /* This log file exceeds the maximum defined size. */
  372. #define NERR_LogFileChanged        (NERR_BASE+278)      /* This log file has changed between reads. */
  373. #define NERR_LogFileCorrupt        (NERR_BASE+279)      /* This log file is corrupt. */
  374.  
  375. /*
  376.  *      NetRemote
  377.  *              Error codes BASE+280 to BASE+299
  378.  */
  379. #define NERR_SourceIsDir   (NERR_BASE+280) /* The source path cannot be a directory. */
  380. #define NERR_BadSource     (NERR_BASE+281) /* The source path is illegal. */
  381. #define NERR_BadDest       (NERR_BASE+282) /* The destination path is illegal. */
  382. #define NERR_DifferentServers   (NERR_BASE+283) /* The source and destination paths are on different servers. */
  383. /* UNUSED BASE+284 */
  384. #define NERR_RunSrvPaused       (NERR_BASE+285) /* The Run server you requested is paused. */
  385. /* UNUSED BASE+286 */
  386. /* UNUSED BASE+287 */
  387. /* UNUSED BASE+288 */
  388. #define NERR_ErrCommRunSrv      (NERR_BASE+289) /* An error occurred when communicating with a Run server. */
  389. /* UNUSED BASE+290 */
  390. #define NERR_ErrorExecingGhost  (NERR_BASE+291) /* An error occurred when starting a background process. */
  391. #define NERR_ShareNotFound      (NERR_BASE+292) /* The shared resource you are connected to could not be found.*/
  392. /* UNUSED BASE+293 */
  393. /* UNUSED BASE+294 */
  394.  
  395.  
  396. /*
  397.  *  NetWksta.sys (redir) returned error codes.
  398.  *
  399.  *          NERR_BASE + (300-329)
  400.  */
  401.  
  402. #define NERR_InvalidLana        (NERR_BASE+300) /* The LAN adapter number is invalid.  */
  403. #define NERR_OpenFiles          (NERR_BASE+301) /* There are open files on the connection.    */
  404. #define NERR_ActiveConns        (NERR_BASE+302) /* Active connections still exist. */
  405. #define NERR_BadPasswordCore    (NERR_BASE+303) /* This netname or password is invalid. */
  406. #define NERR_DevInUse           (NERR_BASE+304) /* The device is being accessed by an active process. */
  407. #define NERR_LocalDrive         (NERR_BASE+305) /* The drive letter is in use locally. */
  408. #define NERR_PausedConns        (NERR_BASE+306) /* Paused devices cannot be deleted */
  409. #define NERR_PipeBufTooSmall    (NERR_BASE+307) /* Write to a network named pipe buffer that is too small */
  410.  
  411. /*
  412.  *  Alert error codes.
  413.  *
  414.  *          NERR_BASE + (330-339)
  415.  */
  416. #define NERR_AlertExists        (NERR_BASE+330) /* The specified client is already registered for the specified event. */
  417. #define NERR_TooManyAlerts      (NERR_BASE+331) /* The alert table is full. */
  418. #define NERR_NoSuchAlert        (NERR_BASE+332) /* An invalid or nonexistent alertname was raised. */
  419. #define NERR_BadRecipient       (NERR_BASE+333) /* The alert recipient is invalid.*/
  420. #define NERR_AcctLimitExceeded  (NERR_BASE+334) /* A user's session with this server has been deleted
  421.                                                  * because his logon hours are no longer valid */
  422.  
  423. /*
  424.  *  Additional Error and Audit log codes.
  425.  *
  426.  *          NERR_BASE +(340-343)
  427.  */
  428. #define NERR_InvalidLogSeek     (NERR_BASE+340) /* The log file does not contain the requested record number. */
  429. /* UNUSED BASE+341 */
  430. /* UNUSED BASE+342 */
  431. /* UNUSED BASE+343 */
  432.  
  433. /*
  434.  *  Additional UAS and NETLOGON codes
  435.  *
  436.  *          NERR_BASE +(350-359)
  437.  */
  438. #define NERR_BadUasConfig       (NERR_BASE+350) /* The user account system database is not configured correctly. */
  439. #define NERR_InvalidUASOp       (NERR_BASE+351) /* This operation is not permitted when the Netlogon service is running. */
  440. #define NERR_LastAdmin          (NERR_BASE+352) /* This operation is not allowed on the last admin account. */
  441. #define NERR_DCNotFound         (NERR_BASE+353) /* Unable to find domain controller for this domain. */
  442. #define NERR_LogonTrackingError (NERR_BASE+354) /* Unable to set logon information for this user. */
  443. #define NERR_NetlogonNotStarted (NERR_BASE+355) /* The Netlogon service has not been started. */
  444. #define NERR_CanNotGrowUASFile  (NERR_BASE+356) /* Unable to grow the user account system database. */
  445. /* UNUSED BASE+357 */
  446. /* UNUSED BASE+358 */
  447. #define NERR_PasswordMismatch   (NERR_BASE+358) /* A password mismatch has been detected. */
  448. /* d18056 */
  449. #define NERR_MaxBadPasswordExceeded (NERR_BASE+359) /* The number of bad password
  450.                                                      * has exceeded the max allowed
  451.                                                      */
  452.  
  453. /*
  454.  *  Server Integration error codes.
  455.  *
  456.  *          NERR_BASE +(360-369)
  457.  */
  458. #define NERR_NoSuchServer       (NERR_BASE+360) /* The server ID does not specify a valid server. */
  459. #define NERR_NoSuchSession      (NERR_BASE+361) /* The session ID does not specify a valid session. */
  460. #define NERR_NoSuchConnection   (NERR_BASE+362) /* The connection ID does not specify a valid connection. */
  461. #define NERR_TooManyServers     (NERR_BASE+363) /* There is no space for another entry in the table of available servers. */
  462. #define NERR_TooManySessions    (NERR_BASE+364) /* The server has reached the maximum number of sessions it supports. */
  463. #define NERR_TooManyConnections (NERR_BASE+365) /* The server has reached the maximum number of connections it supports. */
  464. #define NERR_TooManyFiles       (NERR_BASE+366) /* The server cannot open more files because it has reached its maximum number. */
  465. #define NERR_NoAlternateServers (NERR_BASE+367) /* There are no alternate servers registered on this server. */
  466. /* UNUSED BASE+368 */
  467. /* UNUSED BASE+369 */
  468.  
  469. /*
  470.  *  UPS error codes.
  471.  *
  472.  *          NERR_BASE + (380-384)
  473.  */
  474. #define NERR_UPSDriverNotStarted    (NERR_BASE+380) /* The UPS driver could not be accessed by the UPS service. */
  475. /* UNUSED BASE+381 */
  476. /* UNUSED BASE+382 */
  477. /* UNUSED BASE+383 */
  478. /* UNUSED BASE+384 */
  479.  
  480. /*
  481.  *  Remoteboot error codes.
  482.  *
  483.  *          NERR_BASE + (400-419)
  484.  *          Error codes 400 - 405 are used by RPLBOOT.SYS.
  485.  *          Error codes 403, 407 - 416 are used by RPLLOADR.COM,
  486.  *          Error code 417 is the alerter message of REMOTEBOOT (RPLSERVR.EXE).
  487.  *          Error code 418 is for when REMOTEBOOT can't start
  488.  *          Error code 419 is for a disallowed 2nd rpl connection
  489.  */
  490. #define NERR_BadDosRetCode      (NERR_BASE+400) /* The program below returned an MS-DOS error code:*/
  491. #define NERR_ProgNeedsExtraMem  (NERR_BASE+401) /* The program below needs more memory:*/
  492. #define NERR_BadDosFunction     (NERR_BASE+402) /* The program below called an unsupported MS-DOS function:*/
  493. #define NERR_RemoteBootFailed   (NERR_BASE+403) /* The workstation failed to boot.*/
  494. #define NERR_BadFileCheckSum    (NERR_BASE+404) /* The file below is corrupt.*/
  495. #define NERR_NoRplBootSystem    (NERR_BASE+405) /* No loader is specified in the boot-block definition file.*/
  496. #define NERR_RplLoadrNetBiosErr (NERR_BASE+406) /* NetBIOS returned an error: The NCB and SMB are dumped above.*/
  497. #define NERR_RplLoadrDiskErr    (NERR_BASE+407) /* A disk I/O error occurred.*/
  498. #define NERR_ImageParamErr      (NERR_BASE+408) /* Image parameter substitution failed.*/
  499. #define NERR_TooManyImageParams (NERR_BASE+409) /* Too many image parameters cross disk sector boundaries.*/
  500. #define NERR_NonDosFloppyUsed   (NERR_BASE+410) /* The image was not generated from an MS-DOS diskette formatted with /S.*/
  501. #define NERR_RplBootRestart     (NERR_BASE+411) /* Remote boot will be restarted later.*/
  502. #define NERR_RplSrvrCallFailed  (NERR_BASE+412) /* The call to the Remoteboot server failed.*/
  503. #define NERR_CantConnectRplSrvr (NERR_BASE+413) /* Cannot connect to the Remoteboot server.*/
  504. #define NERR_CantOpenImageFile  (NERR_BASE+414) /* Cannot open image file on the Remoteboot server.*/
  505. #define NERR_CallingRplSrvr     (NERR_BASE+415) /* Connecting to the Remoteboot server...*/
  506. #define NERR_StartingRplBoot    (NERR_BASE+416) /* Connecting to the Remoteboot server...*/
  507. #define NERR_RplBootServiceTerm (NERR_BASE+417) /* Remote boot service was stopped; check the error log for the cause of the problem.*/
  508. #define NERR_RplBootStartFailed (NERR_BASE+418) /* Remote boot startup failed; check the error log for the cause of the problem.*/
  509. #define NERR_RPL_CONNECTED      (NERR_BASE+419) /* A second connection to a Remoteboot resource is not allowed.*/
  510. #define NERR_RplBootErrDetected (NERR_BASE+420) /* The REMOTEBOOT service detected a configuration error but is continuing.  Check the error log at the remote IPL server for details. */
  511. #define NERR_RPL_COPYRIGHT1     (NERR_BASE+421) /* Remote IPL Initialization Program Version 2.0. */
  512. #define NERR_RPL_COPYRIGHT2     (NERR_BASE+422) /* (C) Copyright International Business Machines Corporation 1989, 1991. */
  513. #define NERR_RPL_COPYRIGHT3     (NERR_BASE+423) /* (C) Copyright Microsoft Corporation 1989, 1991. */
  514.  
  515. /*
  516.  *  FTADMIN API error codes
  517.  *
  518.  *       NERR_BASE + (425-434)
  519.  *
  520.  */
  521. #define NERR_FTNotInstalled     (NERR_BASE+425) /* DISKFT.SYS is not installed. */
  522. #define NERR_FTMONITNotRunning  (NERR_BASE+426) /* FTMONIT is not running */
  523. #define NERR_FTDiskNotLocked    (NERR_BASE+427) /* FTADMIN has not locked the disk. */
  524. #define NERR_FTDiskNotAvailable (NERR_BASE+428) /* Some other process has locked the disk. */
  525. #define NERR_FTUnableToStart    (NERR_BASE+429) /* The verifier/correcter cannot be started. */
  526. #define NERR_FTNotInProgress    (NERR_BASE+430) /* The verifier/correcter can't be aborted because it isn't started. */
  527. #define NERR_FTUnableToAbort    (NERR_BASE+431) /* The verifier/correcter can't be aborted. */
  528. #define NERR_FTUnabletoChange   (NERR_BASE+432) /* The disk could not be locked/unlocked. */
  529. #define NERR_FTInvalidErrHandle (NERR_BASE+433) /* The error handle was not recognized. */
  530. #define NERR_FTDriveNotMirrored (NERR_BASE+434) /* The drive is not mirrored. */
  531.  
  532. /*
  533.  *  ALIAS API error codes
  534.  *
  535.  *       NERR_BASE + 681-688
  536.  *
  537.  */
  538. #define NERR_NoAccessDrive      (NERR_BASE+681)
  539. #if !defined(NERR_AliasExists)
  540. #define NERR_AliasExists        (NERR_BASE+682)
  541. #endif
  542. #if !defined(NERR_AliasNotFound)
  543. #define NERR_AliasNotFound      (NERR_BASE+683)
  544. #endif
  545. #define NERR_InvAliasDev        (NERR_BASE+685)
  546. #if !defined(NERR_DCDBError)
  547. #define NERR_DCDBError          (NERR_BASE+686)
  548. #endif
  549. #if !defined(NERR_NetnameExists)
  550. #define NERR_NetnameExists      (NERR_BASE+687)
  551. #endif
  552. #if !defined(NERR_DupAliasRes)
  553. #define NERR_DupAliasRes       (NERR_BASE+688)
  554. #endif
  555.  
  556. /*
  557.  *  APP API error codes
  558.  *
  559.  *       NERR_BASE + 692-696
  560.  *
  561.  */
  562. #if !defined(NERR_AppExists)
  563. #define NERR_AppExists          (NERR_BASE+692)
  564. #endif
  565. #if !defined(NERR_AppNotFound)
  566. #define NERR_AppNotFound        (NERR_BASE+693)
  567. #endif
  568. #if !defined(NERR_DCDBCreateError)
  569. #define NERR_DCDBCreateError    (NERR_BASE+694)
  570. #endif
  571. #if !defined(NERR_NotPrimaryDCDB)
  572. #define NERR_NotPrimaryDCDB     (NERR_BASE+695)
  573. #endif
  574. #define NERR_BadAppRemark       (NERR_BASE+696)
  575.  
  576. /* NetAccessApply error codes */
  577.  
  578. #define NERR_ApplyNotPermitted  (NERR_BASE+700)
  579. #define NERR_IncompleteApply    (NERR_BASE+701)
  580. #define NERR_ApplyFailed        (NERR_BASE+702)
  581.  
  582.  
  583. /*
  584.  *      RIPLERR_BASE is the base of remote IPL error codes.
  585.  */
  586.  
  587. #define RIPLERR_BASE     5400
  588.  
  589.  
  590. /*      RIPL ERROR MESSAGE RANGE      = 5400 <--> 5499
  591.  *
  592.  *      General RIPL Server errors    = 5400 <--> 5419
  593.  *      NetCreateRIPLMachine errors   = 5420 <--> 5439
  594.  *      NetDeleteRIPLMachine errors   = 5440 <--> 5449
  595.  *      NetEnumRIPLMachine errors     = 5450 <--> 5459
  596.  *      NetGetRIPLMachineInfo errors  = 5460 <--> 5469
  597.  *      NetSetRIPLMachineInfo errors  = 5470 <--> 5479
  598.  *      DOS Images errors             = 5480 <--> 5489
  599.  */
  600.  
  601. /*
  602.  *      Start Remote IPL API error messages
  603.  */
  604.  
  605.  
  606. #define NERR_NotRIPLServer             (RIPLERR_BASE + 1)
  607.         /*
  608.          *The server name specified is a not a valid remote IPL server.
  609.          */
  610.  
  611. #define NERR_RPL_MAPNotFound           (RIPLERR_BASE + 2)
  612.         /*
  613.          *The RPL.MAP file was not found or could not be opened on the
  614.          *remote IPL server.
  615.          */
  616.  
  617. #define NERR_RPL_MAPReadError          (RIPLERR_BASE + 3)
  618.         /*
  619.          *An error was detected while reading the RPL.MAP file on the
  620.          *remote IPL server.
  621.          */
  622.  
  623. #define NERR_RPL_MAPWriteError         (RIPLERR_BASE + 4)
  624.         /*
  625.          *An error occurred while updating the RPL.MAP file on the
  626.          *remote IPL server.
  627.          */
  628.  
  629. #define NERR_MachineNotFound           (RIPLERR_BASE + 5)
  630.         /*
  631.          *The machine definition does not exist on the remote IPL server.
  632.          */
  633.  
  634. #define NERR_FITSFileNotFound          (RIPLERR_BASE + 6)
  635.         /*
  636.          *An error was detected while reading configuration files in
  637.          *the IBMLAN\RPL\FITS directory on the remote IPL server.
  638.          */
  639.  
  640. #define NERR_MACHINESFileNotFound      (RIPLERR_BASE + 7)
  641.         /*
  642.          *An error was detected while reading configuration files in
  643.          *the IBMLAN\RPL\MACHINES directory tree on the remote IPL server.
  644.          */
  645.  
  646. #define NERR_IBMCOMFileNotFound        (RIPLERR_BASE + 8)
  647.         /*
  648.          *An error was detected while reading configuration files in
  649.          *the IBMLAN\RPL\IBMCOM directory tree on the remote IPL server.
  650.          */
  651.  
  652. #define NERR_RPLUSERFileNotFound       (RIPLERR_BASE + 9)
  653.         /*
  654.          *An error was detected while reading configuration files in
  655.          *the IBMLAN\RPLUSER directory tree on the remote IPL server.
  656.          */
  657.  
  658. #define NERR_RPLFileNotFound           (RIPLERR_BASE + 10)
  659.         /*
  660.          *An error was detected while reading configuration files in
  661.          *the IBMLAN\RPL directory tree on the remote IPL server.
  662.          */
  663.  
  664. #define NERR_MachineFilesLocked        (RIPLERR_BASE + 11)
  665.         /*
  666.          *Machine configuration files are locked by the remote IPL
  667.          *server file system.
  668.          */
  669.  
  670. #define NERR_ServerRecordInvalid       (RIPLERR_BASE + 12)
  671.         /*
  672.          *The server record identifier is not defined in an enabled
  673.          *server record entry in the RPL.MAP file.
  674.          */
  675.  
  676. #define NERR_RemarkInvalid             (RIPLERR_BASE + 13)
  677.         /*
  678.          *The machine definition remark was more than 48 bytes.
  679.          */
  680.  
  681. #define NERR_NDISProfileNotFound       (RIPLERR_BASE + 14)
  682.         /*
  683.          *The network adapter directory profile could not be found
  684.          *in the NDISDD.PRO file on the remote IPL server.
  685.          */
  686.  
  687. #define NERR_MachNameTooLong           (RIPLERR_BASE + 15)
  688.         /*
  689.          *The machine name length has exceeded the maximum allowed.
  690.          */
  691.  
  692. #define NERR_CreateMachNameInvalid     (RIPLERR_BASE + 20)
  693.         /*
  694.          *The machine definition could not be created because the name
  695.          *is not unique in the domain.
  696.          */
  697.  
  698. #define NERR_CreateMachNameExists      (RIPLERR_BASE + 21)
  699.         /*
  700.          *The machine definition already exists on the remote IPL server.
  701.          */
  702.  
  703. #define NERR_CreateMachModelInvalid    (RIPLERR_BASE + 22)
  704.         /*
  705.          *The model machine name does not exist on the remote IPL server.
  706.          */
  707.  
  708. #define NERR_CreateMachDriveInvalid    (RIPLERR_BASE + 24)
  709.         /*
  710.          * The remote IPL OS/2 boot drive identifier is not valid.
  711.          */
  712.  
  713. #define NERR_NetworkAddressInvalid     (RIPLERR_BASE + 25)
  714.         /*
  715.          *The network adapter address is not valid.
  716.          */
  717.  
  718. #define NERR_CreateMachAddrExists      (RIPLERR_BASE + 26)
  719.         /*
  720.          *A machine definition already exists with the specified
  721.          *network adapter address.
  722.          */
  723.  
  724. #define NERR_CreateMachReadError       (RIPLERR_BASE + 28)
  725.         /*
  726.          *An error was detected while reading machine configuration
  727.          *files on the remote IPL server.
  728.          */
  729.  
  730. #define NERR_CreateMachWriteError      (RIPLERR_BASE + 29)
  731.         /*
  732.          *An error was detected while writing machine configuration
  733.          *files on the remote IPL server.
  734.          */
  735.  
  736. #define NERR_CreateMachFileNotFound    (RIPLERR_BASE + 30)
  737.         /*
  738.          *Files required for creating a machine definition could not
  739.          *be found on the remote IPL server.
  740.          */
  741.  
  742. #define NERR_CreateMachDirFailure      (RIPLERR_BASE + 32)
  743.         /*
  744.          *An error was detected while creating machine configuration
  745.          *directories on the remote IPL server.
  746.          */
  747.  
  748. #define NERR_CreateMachACLFailure      (RIPLERR_BASE + 33)
  749.         /*
  750.          *An error was detected while creating access control profiles
  751.          *on the remote IPL server.
  752.          */
  753.  
  754. #define NERR_DelMachFailure            (RIPLERR_BASE + 40)
  755.         /*
  756.          *The machine definition could not be deleted.
  757.          */
  758.  
  759. #define NERR_DelMachDirFailure         (RIPLERR_BASE + 41)
  760.         /*
  761.          *An error was detected while deleting machine configuration
  762.          *directories on the remote IPL server.
  763.          */
  764.  
  765. #define NERR_EnumMachNotFound          (RIPLERR_BASE + 50)
  766.         /*
  767.          *A machine definition of the type requested does not exist
  768.          *on the remote IPL server.
  769.          */
  770.  
  771. #define NERR_SetMachDriveFailure       (RIPLERR_BASE + 70)
  772.         /*
  773.          *The remote IPL OS/2 boot drive identifier cannot be changed
  774.          *because the machine has a Workplace Shell desktop defined.
  775.          */
  776.  
  777. #define NERR_SetMachNameInvalid        (RIPLERR_BASE + 71)
  778.         /*
  779.          *The machine definition name cannot be changed.
  780.          */
  781.  
  782. #define NERR_SetMachVersionInvalid     (RIPLERR_BASE + 72)
  783.         /*
  784.          *The machine definition OS/2 version cannot be changed.
  785.          */
  786.  
  787. #define NERR_SetMachCompInvalid        (RIPLERR_BASE + 73)
  788.         /*
  789.          *The operation is not valid on this machine definition.
  790.          */
  791.  
  792. #define NERR_DOSImageNotFound          (RIPLERR_BASE + 80)
  793.         /*
  794.          *The DOS image file name does not exist.
  795.          */
  796.  
  797. /*******    RIPL ERROR MESSAGE RANGE = 5400 <--> 5499     *************/
  798.  
  799. /*
  800.  *              DCE_BASE is the base of DCE Enterprise error codes.
  801.  */
  802.  
  803.  
  804. /*
  805.  *  Error codes  7500 - 7999 are reserved for LSE
  806.  *
  807.  *  DCE interface related error codes
  808.  *  Error codes  7750 - 7799 are reserved for Security
  809.  *
  810.  */
  811.  
  812. #define  DCE_BASE          7500
  813.  
  814. #define NERR_DCEError                   (DCE_BASE + 0) /* DCE error status returned */
  815.         /*
  816.          * The error status buffer contains DCE error information.
  817.          */
  818.  
  819. #define NERR_DCEErrorLogged             (DCE_BASE + 1) /* DCE error status returned and logged */
  820.         /*
  821.          * An error occurred with a DCE request and status information has
  822.          * been logged to the local NET.ERR log.
  823.          */
  824.  
  825. #define NERR_NoResDomName               (DCE_BASE + 2)
  826.         /*
  827.          * No resource domain name is specified.
  828.          */
  829.  
  830. #define NERR_ResDomNotFound             (DCE_BASE + 3)
  831.         /*
  832.          * The specified resource domain does not exist.
  833.          */
  834.  
  835. #define NERR_InvalidObjGlobalName       (DCE_BASE + 4) /* Can not access specified cell  */
  836.         /*
  837.          * Invalid object global name.
  838.          */
  839.  
  840. #define NERR_InvalidResDomName          (DCE_BASE + 5)
  841.         /*
  842.          * One or more of the input parameters is invalid.
  843.          */
  844.  
  845. #define NERR_ResDomInvalidParm           (DCE_BASE + 6)
  846.         /*
  847.          * One or more of the input parameters is invalid.
  848.          */
  849.  
  850. #define NERR_BadUserDataInRgy           (DCE_BASE + 7)
  851.         /*
  852.          * The model user account object does not exist.
  853.          */
  854.  
  855. #define NERR_SchemaNotFound             (DCE_BASE + 8)
  856.         /*
  857.          * Unable to find DSS required schema entry.
  858.          */
  859.  
  860. #define NERR_Consistency_Error          (DCE_BASE + 9)
  861.         /*
  862.          * A secondary error occured while attempting to recover from an
  863.          * error.  The object is now in an unknown state.
  864.          */
  865.  
  866. #define NERR_OrgNotFound                (DCE_BASE + 10)
  867.         /*
  868.          * The specified organization/policy group does not exist.
  869.          */
  870.  
  871. #define NERR_AuthTicketExpired          (DCE_BASE + 11)
  872.         /*
  873.          * The user's DCE authorization ticket has expired.
  874.          */
  875.  
  876. #define NERR_RegistryNotFound           (DCE_BASE + 12)
  877.         /*
  878.          * Unable to contact DCE registry.
  879.          */
  880.  
  881. #define NERR_UserNotInResDom            (DCE_BASE + 13)
  882.         /*
  883.          * The user is not a member of the specified resource domain.
  884.          */
  885.  
  886. #define NERR_UserExistsInCell           (DCE_BASE + 14)
  887.         /*
  888.          * The user already exists in the cell.
  889.          */
  890.  
  891. #define NERR_GroupNotInResDom           (DCE_BASE + 15)
  892.         /*
  893.          * The group is not defined to the specified resource domain.
  894.          */
  895.  
  896. #define NERR_GroupExistsInCell          (DCE_BASE + 16)
  897.         /*
  898.          * The user's DCE authorization ticket has expired.
  899.          */
  900.  
  901. #define NERR_1stResDomError             (DCE_BASE + 17)
  902.         /*
  903.          * Invalid parameter for creating 1st resource domain of cell.
  904.          */
  905.  
  906. #define NERR_ParentResDomNotFound       (DCE_BASE + 18)
  907.         /*
  908.          * The specified parent resource domain does not exist.
  909.          */
  910.  
  911. #define NERR_ResDomAlreadyExists         (DCE_BASE + 19)
  912.         /*
  913.          * The specified resource domain already exists.
  914.          */
  915.  
  916. #define NERR_ResDomNotEmpty              (DCE_BASE + 20)
  917.         /*
  918.          * Resource domain of delete request is not empty.
  919.          */
  920.  
  921. #define NERR_AppNotInResDom             (DCE_BASE + 21)
  922.         /*
  923.          * The application is not defined in the specified resource domain.
  924.          */
  925.  
  926. #define NERR_AliasNotInResDom           (DCE_BASE + 22)
  927.         /*
  928.          * The alias is not defined in the specified resource domain.
  929.          */
  930.  
  931. #define NERR_PrimaryGroup               (DCE_BASE + 23)
  932.         /*
  933.          * Delete realm not empty.
  934.          */
  935.  
  936. #define NERR_ResDomTooManyGroups        (DCE_BASE + 24)
  937.         /*
  938.          * The resource domain contains too many group entries to be
  939.          * a sync resource domain.
  940.          */
  941.  
  942. #define NERR_ResDomMaxGroupEntries      (DCE_BASE + 25)
  943.         /*
  944.          * The resource domain already contains the maximum number of
  945.          * group entries permitted.
  946.          */
  947.  
  948. #define NERR_InvalidUserType            (DCE_BASE + 26)
  949.         /*
  950.          * Invalid user type specified.
  951.          */
  952.  
  953. #define NERR_SpecialGroupAddReject      (DCE_BASE + 27)
  954.         /*
  955.          * Can not add special group.
  956.          */
  957.  
  958. #define NERR_SpecialGroupDeleteReject   (DCE_BASE + 28)
  959.         /*
  960.          * Can not delete special group.
  961.          */
  962.  
  963. #define NERR_CellnameConflict           (DCE_BASE + 29)
  964.         /*
  965.          * Invalid user type specified.
  966.          */
  967.  
  968. #define NERR_InvalidCellName            (DCE_BASE + 30)
  969.         /*
  970.          * Invalid cell name syntax.
  971.          */
  972.  
  973. #define NERR_InvalidAliasNameFormat     (DCE_BASE + 31)
  974.         /*
  975.          * The syntax of an alias entry is invalid.
  976.          */
  977.  
  978.  
  979. #define NERR_IncompatibleLevel          (DCE_BASE + 32)
  980.         /*
  981.          * Stored information requires later info level.
  982.          */
  983.  
  984.  
  985. #define NERR_ResDomServerExists         (DCE_BASE + 33)
  986.         /*
  987.          * The server object already exists in the resource domain.
  988.          */
  989.  
  990.  
  991. #define NERR_RootResDomDelNotAllowed    (DCE_BASE + 34)
  992.         /*
  993.          * The root resource domain of a cell may not be delete.
  994.          */
  995.  
  996. #define NERR_PropertiesMissing          (DCE_BASE + 35)
  997.         /*
  998.          * Not all properties of an object were specified.
  999.          */
  1000.  
  1001. #define NERR_PrimaryGroupNotFound       (DCE_BASE + 36)
  1002.         /*
  1003.          * The specified primary group does not exist.
  1004.          */
  1005.  
  1006. #define NERR_PropertyDependency         (DCE_BASE + 37)
  1007.         /*
  1008.          * The property definition tied to following properties.
  1009.          */
  1010.  
  1011. #define NERR_WrongDataType              (DCE_BASE + 38)
  1012.         /*
  1013.          * An invalid property data type was specified.
  1014.          */
  1015.  
  1016. #define NERR_MultiplePropertyDefs       (DCE_BASE + 39)
  1017.         /*
  1018.          * More than one instance of a property is allowed
  1019.          */
  1020.  
  1021. #define NERR_NoResDomCLI                (DCE_BASE + 40)
  1022.         /*
  1023.          * No resource domain name is specified.
  1024.          */
  1025.  
  1026. #define NERR_RsrvdResName               (DCE_BASE + 41)
  1027.         /*
  1028.          * Can not use reserved resource name.
  1029.          */
  1030.  
  1031. #define NERR_InvalidResDomSyntax        (DCE_BASE + 42)
  1032.         /*
  1033.          * The syntax of the resource domain name is invalid
  1034.          */
  1035.  
  1036.  
  1037. #define NERR_ResDomsLocked              (DCE_BASE + 43)
  1038.         /*
  1039.          * The syntax of the resource domain name is invalid
  1040.          */
  1041.  
  1042. #define NERR_FullSyncCanceled           (DCE_BASE + 44)
  1043.         /*
  1044.          * DIRSYNC full sync request terminated prior tp completion.
  1045.          */
  1046. #define NERR_UserInResdom               (DCE_BASE + 45)
  1047.         /*
  1048.          * The user is already a member of the specified resource domain.
  1049.          */
  1050. #define NERR_NoCDSBind                  (DCE_BASE + 46)
  1051.         /*
  1052.          * Can not bind to DCE CDS server.
  1053.          */
  1054.  
  1055. #define NERR_DSSDCESTART               (DCE_BASE + 47)
  1056.         /*
  1057.          * Error %1 occurred while running DCESTART.
  1058.          */
  1059.  
  1060. #define NERR_DSSDCESTOP                (DCE_BASE + 48)
  1061.         /*
  1062.          *  Error %1 occurred while running DCESTOP.
  1063.          */
  1064.  
  1065. #define NERR_IncompatibleResdom         (DCE_BASE + 53)
  1066.         /*
  1067.          * The domain name does not match the resource domain broadcast name.
  1068.          */
  1069.  
  1070. #define NERR_EncryptedPassword          (DCE_BASE + 54)
  1071.         /*
  1072.          * An error occurred while attempting to set the user's encrypted
  1073.          * password.
  1074.          */
  1075.  
  1076. #define NERR_PasswordHistory            (DCE_BASE + 55)
  1077.         /*
  1078.          * An error occirred while attrmpting to update the user's password
  1079.          * history.
  1080.          */
  1081.  
  1082. #define NERR_DSSRejection               (DCE_BASE + 56)
  1083.         /*
  1084.          * A DSS client attempted to logon to a resource domain.
  1085.          */
  1086.  
  1087. #define NERR_RgySyncFail                (DCE_BASE + 57)
  1088.         /*
  1089.          * An error occurred when initializing the rgysync worker process.
  1090.          */
  1091.  
  1092. #define NERR_InvalidRole                (DCE_BASE + 60)
  1093.         /*
  1094.          * The Server Services cannot execute in a STANDALONE role.
  1095.          */
  1096.  
  1097. #define NERR_PasswordAllSpaces       (DCE_BASE + 150)
  1098.         /*
  1099.          * The password can not be all spaces.
  1100.          */
  1101.  
  1102. #define NERR_PasswordAllAlphNum       (DCE_BASE + 151)
  1103.         /*
  1104.          * The password must contain at least one non-alphanumeric character.
  1105.          */
  1106.  
  1107. #define NERR_ServerPasswordInconsistent (DCE_BASE + 152)
  1108.         /*
  1109.          * The server password in the local keytab file is inconsistent
  1110.          * with the server's password that is contained in the registry.
  1111.          * This caused the server to terminate the logon procedure.
  1112.          * The inconsistency could be caused by password storage corruption
  1113.          * or if the server is a password synchronization server it may have been
  1114.          * partially unconfigured.
  1115.          */
  1116.  
  1117. #define NERR_PwdExpCantLogon            (DCE_BASE + 153)
  1118.         /*
  1119.          * DSS is currently unable to change your expired password.
  1120.          */
  1121.  
  1122.  
  1123.  
  1124. #define NERR_ACLDBOpenFail              (DCE_BASE + 250)
  1125.         /*
  1126.          * The acl databases could not be opened.
  1127.          * The DCE Error Follows.
  1128.          */
  1129. #define NERR_RdaclInitFail              (DCE_BASE + 251)
  1130.         /*
  1131.          * The server could not register the rdacl interface to RPC.
  1132.          * The DCE Error Follows.
  1133.          */
  1134. #define NERR_ACLDeleteFail              (DCE_BASE + 252)
  1135.         /*
  1136.          * The ACL for %1 could not be deleted.
  1137.          * The DCE Error Follows.
  1138.          */
  1139. #define NERR_ACLInheritFail             (DCE_BASE + 253)
  1140.         /*
  1141.          * The Initial ACL for %1 could not be created
  1142.          * The DCE Error Follows.
  1143.          */
  1144. #define NERR_ACLMoveFail                (DCE_BASE + 254)
  1145.         /*
  1146.          * The ACL for %1 could not be renamed.
  1147.          * The DCE Error Follows.
  1148.          */
  1149. #define NERR_MediaDetection             (DCE_BASE + 255)
  1150.         /*
  1151.          * An error %1 occured while determining drives with removable media.
  1152.          */
  1153. #define NERR_ACLReadFail                (DCE_BASE + 256)
  1154.         /*
  1155.          * The ACL for %1 could not be read.
  1156.          * The DCE Error Follows.
  1157.          */
  1158. #define NERR_ACLWriteFail               (DCE_BASE + 257)
  1159.         /*
  1160.          * The ACL for %1 could not be updated.
  1161.          * The DCE Error Follows.
  1162.          */
  1163.  
  1164. #define NERR_RdaclListenFail            (DCE_BASE + 258)
  1165.         /*
  1166.          * An rpc error occured, the server is no longer processing
  1167.          * sec_acl APIs.  The DCE Error follows.
  1168.          */
  1169. #define NERR_RootAclError               (DCE_BASE + 259)
  1170.         /*
  1171.          * The ACL for %1, the device root is missing.
  1172.          */
  1173. #define NERR_CredMgrError               (DCE_BASE + 260)
  1174.         /*
  1175.          * Credential Manager is not started (returned by sinlogon)
  1176.          */
  1177. #define NERR_CreateLgcyPac               (DCE_BASE + 261)
  1178.         /*
  1179.          * Unable to create PAC for Legacy Client (returned by CreateLgcyPac)
  1180.          */
  1181. #define NERR_CredManagementError         (DCE_BASE + 262)
  1182.         /*
  1183.          * A DCE error occured while managing the process credentials.
  1184.          * The data is the DCE error
  1185.          */
  1186. #define NERR_KeyManagementError          (DCE_BASE + 263)
  1187.         /*
  1188.          * A DCE error occured while managing the processes login key.
  1189.          * The data is the DCE error
  1190.          */
  1191. #define NERR_PACBufTooSmall              (DCE_BASE + 264)
  1192.         /*
  1193.          * The global buffer for the PAC is too small.
  1194.          */
  1195. #define NERR_ExchangeTokens              (DCE_BASE + 265)
  1196.         /*
  1197.          * Unable to exchange DCE security tokens.
  1198.          */
  1199. #define NERR_RequestToken                (DCE_BASE + 266)
  1200.         /*
  1201.          * Unable to request DCE security token.
  1202.          */
  1203. #define NERR_ReleaseBuffer               (DCE_BASE + 267)
  1204.         /*
  1205.          * Unable to release memory associated with a DCE buffer.
  1206.          */
  1207. #define NERR_RequestInfo                 (DCE_BASE + 268)
  1208.         /*
  1209.          * Request for DCE information failed.
  1210.          */
  1211. #define NERR_MountableMedia              (DCE_BASE + 274)
  1212.         /*
  1213.          * The operation is not valid on a removable media device
  1214.          */
  1215.  
  1216. #define NERR_ApplyUnexpectedError        (DCE_BASE + 299)
  1217.         /*
  1218.          * The apply server encountered an unexpected error.
  1219.          */
  1220.  
  1221.  
  1222. /*
  1223.  *  NOTE:
  1224.  *    Error codes  7500 - 7999 are reserved for LSE
  1225.  */
  1226. #endif /* NETERR_INCLUDED */
  1227.