home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / warphead.zip / H / NETERR.H < prev    next >
C/C++ Source or Header  |  1997-09-05  |  41KB  |  798 lines

  1. /**************************************************************************/
  2. /*                                                                        */
  3. /*              IBM OS/2(tm) File and Print Client Services               */
  4. /* (c) Copyright International Business Machines Corporation, 1988, 1996  */
  5. /*                                                                        */
  6. /**************************************************************************/
  7.  
  8.  
  9. /***    neterr.h - network error definitions
  10.  *
  11.  */
  12.  
  13.  
  14.  
  15. #ifndef NETERR_INCLUDED
  16.  
  17. #define NETERR_INCLUDED
  18.  
  19.  
  20. #define NERR_Success            0       /* Success */
  21.  
  22. /*
  23.  *      Redirector related
  24.  *              Error codes from 50 to 79, 88, and 230 to 249
  25.  */
  26.  
  27. #define ERROR_NOT_SUPPORTED     50      /* The network request is not supported.  */
  28. #define ERROR_REM_NOT_LIST      51      /* This remote computer is not listening. */
  29. #define ERROR_DUP_NAME          52      /* A duplicate name exists on the network. */
  30. #define ERROR_BAD_NETPATH       53      /* The network path cannot be located. */
  31. #define ERROR_NETWORK_BUSY      54      /* The network is busy. */
  32. #define ERROR_DEV_NOT_EXIST     55      /* This device does not exist on the network. */
  33. #define ERROR_TOO_MANY_CMDS     56      /* The network BIOS command limit has been reached. */
  34. #define ERROR_ADAP_HDW_ERR      57      /* A network adapter hardware error has occurred. */
  35. #define ERROR_BAD_NET_RESP      58      /* The network responded incorrectly. */
  36. #define ERROR_UNEXP_NET_ERR     59      /* An unexpected network error occurred. */
  37. #define ERROR_BAD_REM_ADAP      60      /* The remote adapter is not compatible. */
  38. #define ERROR_PRINTQ_FULL       61      /* The printer queue is full. */
  39. #define ERROR_NO_SPOOL_SPACE    62      /* Space to store the file waiting to be printed is not available on the server. */
  40. #define ERROR_PRINT_CANCELLED   63      /* The requested print file has been cancelled. */
  41. #define ERROR_NETNAME_DELETED   64      /* The network name was deleted. */
  42. #define ERROR_NETWORK_ACCESS_DENIED 65  /* Network access is denied. */
  43. #define ERROR_BAD_DEV_TYPE      66      /* The network resource type is not correct. */
  44. #define ERROR_BAD_NET_NAME      67      /* The network name cannot be found. */
  45. #define ERROR_TOO_MANY_NAMES    68      /* The name limit for the local computer network adapter card was exceeded. */
  46. #define ERROR_TOO_MANY_SESS     69      /* The network BIOS session limit was exceeded. */
  47. #define ERROR_SHARING_PAUSED    70      /* File sharing has been temporarily paused. */
  48. #define ERROR_REQ_NOT_ACCEP     71      /* The network request was not accepted. */
  49. #define ERROR_REDIR_PAUSED      72      /* Print or disk redirection is temporarily paused. */
  50.  
  51. #define ERROR_NET_WRITE_FAULT   88      /* A network data fault occurred. */
  52.  
  53. #define ERROR_BAD_PIPE          230     /* This is a nonexistent pipe or an invalid operation. */
  54. #define ERROR_PIPE_BUSY         231     /* The specified pipe is busy. */
  55. #define ERROR_NO_DATA           232     /* There is no data to be read on a non-blocking read. */
  56. #define ERROR_PIPE_NOT_CONNECTED 233    /* The server disconnected the pipe. */
  57. #define ERROR_MORE_DATA         234     /* Additional data is available. */
  58.  
  59. #define ERROR_VC_DISCONNECTED   240     /* The session was cancelled. */
  60.  
  61.  
  62.  
  63. /***    NERR_BASE is the base of error codes from network utilities,
  64.  *      chosen to avoid conflict with OS/2 and redirector error codes.
  65.  *      2100 is a value that has been assigned to us by OS/2.
  66.  */
  67. #define NERR_BASE       2100
  68.  
  69.  
  70.  
  71. /* UNUSED BASE+0 */
  72. /* UNUSED BASE+1 */
  73. #define NERR_NetNotStarted      (NERR_BASE+2)   /* The workstation driver (NETWKSTA.SYS on OS/2 workstations, NETWKSTA.EXE on DOS workstations) isn't installed. */
  74. #define NERR_UnknownServer      (NERR_BASE+3)   /* The server cannot be located. */
  75. #define NERR_ShareMem           (NERR_BASE+4)   /* An internal error occurred.  The network cannot access a shared memory segment. */
  76. #define NERR_NoNetworkResource  (NERR_BASE+5)   /* A network resource shortage occurred . */
  77. #define NERR_RemoteOnly         (NERR_BASE+6)   /* This operation is not supported on workstations. */
  78. #define NERR_DevNotRedirected   (NERR_BASE+7)   /* The device is not connected. */
  79. /* UNUSED BASE+8 */
  80. /* UNUSED BASE+9 */
  81. /* UNUSED BASE+10 */
  82. /* UNUSED BASE+11 */
  83. /* UNUSED BASE+12 */
  84. /* UNUSED BASE+13 */
  85. #define NERR_ServerNotStarted   (NERR_BASE+14)  /* The Server service isn't started. */
  86. #define NERR_ItemNotFound       (NERR_BASE+15)  /* The queue is empty. */
  87. #define NERR_UnknownDevDir      (NERR_BASE+16)  /* The device or directory does not exist. */
  88. #define NERR_RedirectedPath     (NERR_BASE+17)  /* The operation is invalid on a redirected resource. */
  89. #define NERR_DuplicateShare     (NERR_BASE+18)  /* The name has already been shared. */
  90. #define NERR_NoRoom             (NERR_BASE+19)  /* The server is currently out of the requested resource. */
  91. /* UNUSED BASE+20 */
  92. #define NERR_TooManyItems       (NERR_BASE+21)  /* Requested add of item exceeds maximum allowed. */
  93. #define NERR_InvalidMaxUsers    (NERR_BASE+22)  /* The Peer service supports only two simultaneous users. */
  94. #define NERR_BufTooSmall        (NERR_BASE+23)  /* The API return buffer is too small. */
  95. /* UNUSED BASE+24 */
  96. /* UNUSED BASE+25 */
  97. /* UNUSED BASE+26 */
  98. #define NERR_RemoteErr          (NERR_BASE+27)  /* A remote API error occurred.  */
  99. /* UNUSED BASE+28 */
  100. /* UNUSED BASE+29 */
  101. /* UNUSED BASE+30 */
  102. #define NERR_LanmanIniError     (NERR_BASE+31)  /* An error occurred when opening or reading IBMLAN.INI. */
  103. /* UNUSED BASE+32 */
  104. /* UNUSED BASE+33 */
  105. #define NERR_OS2IoctlError      (NERR_BASE+34)  /* An internal error occurred when calling the workstation driver. */
  106. /* UNUSED BASE+35 */
  107. #define NERR_NetworkError       (NERR_BASE+36)  /* A general network error occurred. */
  108. /* UNUSED BASE+37 */
  109. #define NERR_WkstaNotStarted    (NERR_BASE+38)  /* The Requester service has not been started. */
  110. /* UNUSED BASE+39 */
  111. #define NERR_InternalError      (NERR_BASE+40)  /* An internal LAN Manager error occurred.*/
  112. #define NERR_BadTransactConfig  (NERR_BASE+41)  /* The server is not configured for transactions. */
  113. #define NERR_InvalidAPI         (NERR_BASE+42)  /* The requested API isn't supported on the remote server. */
  114. #define NERR_BadEventName       (NERR_BASE+43)  /* The event name is invalid. */
  115. /* UNUSED BASE+44 */
  116.  
  117. /*
  118.  *      Config API related
  119.  *              Error codes from BASE+45 to BASE+49
  120.  */
  121.  
  122. /* UNUSED BASE+45 */
  123. #define NERR_CfgCompNotFound    (NERR_BASE+46)  /* Could not find the specified component in IBMLAN.INI. */
  124. #define NERR_CfgParamNotFound   (NERR_BASE+47)  /* Could not find the specified parameter in IBMLAN.INI. */
  125. #define NERR_LineTooLong        (NERR_BASE+49)  /* A line in IBMLAN.INI is too long. */
  126.  
  127. /*
  128.  *      Spooler API related
  129.  *              Error codes from BASE+50 to BASE+79
  130.  */
  131.  
  132. #define NERR_QNotFound          (NERR_BASE+50)  /* The printer queue does not exist. */
  133. #define NERR_JobNotFound        (NERR_BASE+51)  /* The print job does not exist. */
  134. #define NERR_DestNotFound       (NERR_BASE+52)  /* The printer destination cannot be found. */
  135. #define NERR_DestExists         (NERR_BASE+53)  /* The printer destination already exists. */
  136. #define NERR_QExists            (NERR_BASE+54)  /* The printer queue already exists. */
  137. #define NERR_QNoRoom            (NERR_BASE+55)  /* No more printer queues can be added. */
  138. #define NERR_JobNoRoom          (NERR_BASE+56)  /* No more print jobs can be added.  */
  139. #define NERR_DestNoRoom         (NERR_BASE+57)  /* No more printer destinations can be added. */
  140. #define NERR_DestIdle           (NERR_BASE+58)  /* This printer destination is idle and cannot accept control operations. */
  141. #define NERR_DestInvalidOp      (NERR_BASE+59)  /* This printer destination request contains an invalid control function. */
  142. #define NERR_ProcNoRespond      (NERR_BASE+60)  /* The printer processor is not responding. */
  143. #define NERR_SpoolerNotLoaded   (NERR_BASE+61)  /* The spooler is not running. */
  144. #define NERR_DestInvalidState   (NERR_BASE+62)  /* This operation cannot be performed on the print destination in its current state. */
  145. #define NERR_QInvalidState      (NERR_BASE+63)  /* This operation cannot be performed on the printer queue in its current state. */
  146. #define NERR_JobInvalidState    (NERR_BASE+64)  /* This operation cannot be performed on the print job in its current state. */
  147. #define NERR_SpoolNoMemory      (NERR_BASE+65)  /* A spooler memory allocation failure occurred. */
  148. #define NERR_DriverNotFound     (NERR_BASE+66)  /* The device driver does not exist. */
  149. #define NERR_DataTypeInvalid    (NERR_BASE+67)  /* The datatype is not supported by the processor. */
  150. #define NERR_ProcNotFound       (NERR_BASE+68)  /* The print processor is not installed. */
  151.  
  152. /*
  153.  *      Service API related
  154.  *              Error codes from BASE+80 to BASE+99
  155.  */
  156.  
  157. #define NERR_ServiceTableLocked (NERR_BASE+80)  /* The service does not respond to control actions. */
  158. #define NERR_ServiceTableFull   (NERR_BASE+81)  /* The service table is full. */
  159. #define NERR_ServiceInstalled   (NERR_BASE+82)  /* The requested service has already been started. */
  160. #define NERR_ServiceEntryLocked (NERR_BASE+83)  /* The service does not respond to control actions. */
  161. #define NERR_ServiceNotInstalled (NERR_BASE+84) /* The service has not been started. */
  162. #define NERR_BadServiceName     (NERR_BASE+85)  /* The service name is invalid. */
  163. #define NERR_ServiceCtlTimeout  (NERR_BASE+86)  /* The service is not responding to the control function. */
  164. #define NERR_ServiceCtlBusy     (NERR_BASE+87)  /* The service control is busy. */
  165. #define NERR_BadServiceProgName (NERR_BASE+88)  /* IBMLAN.INI contains an invalid service program name. */
  166. #define NERR_ServiceNotCtrl     (NERR_BASE+89)  /* The service cannot be controlled in its present state. */
  167. #define NERR_ServiceKillProc    (NERR_BASE+90)  /* The service ended abnormally. */
  168. #define NERR_ServiceCtlNotValid (NERR_BASE+91)  /* The requested pause or stop is not valid for this service. */
  169.  
  170. /*
  171.  *      Wksta and Logon API related
  172.  *              Error codes from BASE+100 to BASE+118
  173.  */
  174.  
  175. #define NERR_AlreadyLoggedOn    (NERR_BASE+100) /* This workstation is already logged on to the local-area network. */
  176. #define NERR_NotLoggedOn        (NERR_BASE+101) /* The workstation isn't logged on to the local-area network. */
  177. #define NERR_BadUsername        (NERR_BASE+102) /* The username or groupname parameter is invalid.  */
  178. #define NERR_BadPassword        (NERR_BASE+103) /* The password parameter is invalid. */
  179. #define NERR_UnableToAddName_W  (NERR_BASE+104) /* @W The logon processor did not add the message alias. */
  180. #define NERR_UnableToAddName_F  (NERR_BASE+105) /* The logon processor did not add the message alias. */
  181. #define NERR_UnableToDelName_W  (NERR_BASE+106) /* @W The logoff processor did not delete the message alias. */
  182. #define NERR_UnableToDelName_F  (NERR_BASE+107) /* The logoff processor did not delete the message alias. */
  183. /* UNUSED BASE+108 */
  184. #define NERR_LogonsPaused       (NERR_BASE+109) /* Network logons are paused. */
  185. #define NERR_LogonServerConflict (NERR_BASE+110)/* A centralized logon-server conflict occurred. */
  186. /* UNUSED BASE+111 */
  187. #define NERR_LogonScriptError   (NERR_BASE+112) /* An error occurred while loading or running the logon script. */
  188. /* UNUSED BASE+113 */
  189. #define NERR_StandaloneLogon    (NERR_BASE+114) /* The logon server was not specified.  Your computer will be logged on as STANDALONE. */
  190. #define NERR_LogonServerNotFound (NERR_BASE+115) /* The logon server cannot be found.  */
  191. /* UNUSED BASE+116 */
  192. #define NERR_NonValidatedLogon  (NERR_BASE+117) /* The logon server could not validate the logon. */
  193.  
  194. /*
  195.  *      ACF API related (access, user, group)
  196.  *              Error codes from BASE+119 to BASE+149
  197.  */
  198.  
  199. #define NERR_AccountUndeletable (NERR_BASE+118) /* The user account is marked undeletable. */
  200. #define NERR_ACFNotFound        (NERR_BASE+119) /* The accounts file NET.ACC cannot be found. */
  201. #define NERR_GroupNotFound      (NERR_BASE+120) /* The groupname cannot be found. */
  202. #define NERR_UserNotFound       (NERR_BASE+121) /* The username cannot be found. */
  203. #define NERR_ResourceNotFound   (NERR_BASE+122) /* The resource name cannot be found.  */
  204. #define NERR_GroupExists        (NERR_BASE+123) /* The group already exists. */
  205. #define NERR_UserExists         (NERR_BASE+124) /* The user account already exists. */
  206. #define NERR_ResourceExists     (NERR_BASE+125) /* The resource permission list already exists. */
  207. #define NERR_NotPrimary         (NERR_BASE+126) /* The UAS database is replicant and will not allow updates. */
  208. #define NERR_ACFNotLoaded       (NERR_BASE+127) /* The user account system has not been started. */
  209. #define NERR_ACFNoRoom          (NERR_BASE+128) /* There are too many names in the user account system. */
  210. #define NERR_ACFFileIOFail      (NERR_BASE+129) /* A disk I/O failure occurred.*/
  211. #define NERR_ACFTooManyLists    (NERR_BASE+130) /* The limit of 64 entries per resource was exceeded. */
  212. #define NERR_UserLogon          (NERR_BASE+131) /* Deleting a user with a session is not allowed. */
  213. #define NERR_ACFNoParent        (NERR_BASE+132) /* The parent directory cannot be located. */
  214. #define NERR_CanNotGrowSegment  (NERR_BASE+133) /* Unable to grow UAS session cache segment. */
  215. #define NERR_SpeGroupOp         (NERR_BASE+134) /* This operation is not allowed on this special group. */
  216. #define NERR_NotInCache         (NERR_BASE+135) /* This user is not cached in UAS session cache. */
  217. #define NERR_UserInGroup        (NERR_BASE+136) /* The user already belongs to this group. */
  218. #define NERR_UserNotInGroup     (NERR_BASE+137) /* The user does not belong to this group. */
  219. #define NERR_AccountUndefined   (NERR_BASE+138) /* This user account is undefined. */
  220. #define NERR_AccountExpired     (NERR_BASE+139) /* This user account has expired. */
  221. #define NERR_InvalidRequester (NERR_BASE+140) /* The user is not allowed to log on from this workstation. */
  222. #define NERR_InvalidLogonHours  (NERR_BASE+141) /* The user is not allowed to log on at this time.  */
  223. #define NERR_PasswordExpired    (NERR_BASE+142) /* The password of this user has expired. */
  224. #define NERR_PasswordCantChange (NERR_BASE+143) /* The password of this user cannot change. */
  225. #define NERR_PasswordHistConflict (NERR_BASE+144) /* This password cannot be used now. */
  226. #define NERR_PasswordTooShort   (NERR_BASE+145) /* The password is shorter than required. */
  227. #define NERR_PasswordTooRecent  (NERR_BASE+146) /* The password of this user is too recent to change.  */
  228. #define NERR_InvalidDatabase    (NERR_BASE+147) /* The UAS database file is corrupted. */
  229. #define NERR_DatabaseUpToDate   (NERR_BASE+148) /* No updates are necessary to this replicant UAS database. */
  230. #define NERR_SyncRequired       (NERR_BASE+149) /* This replicant database is outdated; synchronization is required. */
  231.  
  232. /*
  233.  *      Use API related
  234.  *              Error codes from BASE+150 to BASE+169
  235.  */
  236.  
  237. #define NERR_UseNotFound        (NERR_BASE+150) /* The connection cannot be found. */
  238. #define NERR_BadAsgType         (NERR_BASE+151) /* This asg_type is invalid. */
  239. #define NERR_DeviceIsShared     (NERR_BASE+152) /* This device is currently being shared. */
  240.  
  241. /*
  242.  *      Message Server related
  243.  *              Error codes BASE+170 to BASE+209
  244.  */
  245.  
  246. #define NERR_NoComputerName     (NERR_BASE+170) /* A computername has not been configured.  */
  247. #define NERR_MsgAlreadyStarted  (NERR_BASE+171) /* The Messenger service is already started. */
  248. #define NERR_MsgInitFailed      (NERR_BASE+172) /* The Messenger service failed to start.  */
  249. #define NERR_NameNotFound       (NERR_BASE+173) /* The message alias cannot be found on the local-area network. */
  250. #define NERR_AlreadyForwarded   (NERR_BASE+174) /* This message alias has already been forwarded. */
  251. /* UNUSED BASE+175 */
  252. #define NERR_AlreadyExists      (NERR_BASE+176) /* This message alias already exists locally. */
  253. #define NERR_TooManyNames       (NERR_BASE+177) /* The maximum number of added message aliases has been exceeded. */
  254. #define NERR_DelComputerName    (NERR_BASE+178) /* The computername cannot be deleted.*/
  255. #define NERR_LocalForward       (NERR_BASE+179) /* Messages cannot be forwarded back to the same workstation. */
  256. #define NERR_GrpMsgProcessor    (NERR_BASE+180) /* Error in domain message processor */
  257. #define NERR_PausedRemote       (NERR_BASE+181) /* The message was sent, but the recipient has paused the Messenger service. */
  258. #define NERR_BadReceive         (NERR_BASE+182) /* The message was sent but not received. */
  259. #define NERR_NameInUse          (NERR_BASE+183) /* The message alias is currently in use. Try again later. */
  260. #define NERR_MsgNotStarted      (NERR_BASE+184) /* The Messenger service has not been started. */
  261. #define NERR_NotLocalName       (NERR_BASE+185) /* The name is not on the local computer. */
  262. #define NERR_NoForwardName      (NERR_BASE+186) /* The forwarded message alias cannot be found on the network. */
  263. #define NERR_RemoteFull         (NERR_BASE+187) /* The message alias table on the remote station is full. */
  264. #define NERR_NameNotForwarded   (NERR_BASE+188) /* Messages for this alias are not currently being forwarded. */
  265. #define NERR_TruncatedBroadcast (NERR_BASE+189) /* The broadcast message was truncated. */
  266. #define NERR_InvalidDevice      (NERR_BASE+194) /* This is an invalid devicename. */
  267. #define NERR_WriteFault         (NERR_BASE+195) /* A write fault occurred. */
  268. /* UNUSED BASE+196 */
  269. #define NERR_DuplicateName      (NERR_BASE+197) /* A duplicate message alias exists on the local-area network. */
  270. #define NERR_DeleteLater        (NERR_BASE+198) /* @W This message alias will be deleted later. */
  271. #define NERR_IncompleteDel      (NERR_BASE+199) /* The message alias was not successfully deleted from all networks. */
  272. #define NERR_MultipleNets       (NERR_BASE+200) /* This operation is not supported on machines with multiple networks. */
  273.  
  274. /*
  275.  *      DASD limit API error codes--BASE+201 to BASE+209
  276.  */
  277.  
  278. #define NERR_DASDNotInstalled         (NERR_BASE+201)
  279. #define NERR_DASDAlreadyInstalled     (NERR_BASE+202)
  280. #define NERR_NotHPFSVolume            (NERR_BASE+203)
  281. #define NERR_DASDMaxValidationFailed  (NERR_BASE+204)
  282. #define NERR_DASDInstallVolumeLocked  (NERR_BASE+205)
  283. #define NERR_LimitNotFound            (NERR_BASE+206)
  284. #define NERR_LimitExists              (NERR_BASE+207)
  285. #define NERR_DASDNotRunning           (NERR_BASE+208)
  286. #define NERR_DASDNotOperational       (NERR_BASE+209)
  287.  
  288. /*
  289.  *      Server API related
  290.  *              Error codes BASE+210 to BASE+229
  291.  */
  292.  
  293. #define NERR_NetNameNotFound    (NERR_BASE+210) /* This shared resource does not exist.*/
  294. #define NERR_DeviceNotShared    (NERR_BASE+211) /* This device is not shared. */
  295. #define NERR_ClientNameNotFound (NERR_BASE+212) /* A session does not exist with that computername. */
  296. #define NERR_FileIdNotFound     (NERR_BASE+214) /* There isn't an open file with that ID number. */
  297. #define NERR_ExecFailure        (NERR_BASE+215) /* A failure occurred when executing a remote administration command. */
  298. #define NERR_TmpFile            (NERR_BASE+216) /* A failure occurred when opening a remote temporary file. */
  299. #define NERR_TooMuchData        (NERR_BASE+217) /* The data returned from a remote administration command has been truncated to 64K. */
  300. #define NERR_DeviceShareConflict (NERR_BASE+218) /* This device cannot be shared as both a spooled and a non-spooled resource. */
  301. #define NERR_BrowserTableIncomplete (NERR_BASE+219)  /* The information in the list of servers may be incorrect. */
  302. #define NERR_NotLocalDomain     (NERR_BASE+220) /* The computer isn't active on this domain. */
  303.  
  304. /*
  305.  * NET APP (cmdline) error messages
  306.  */
  307. #define NERR_RedirectionsNotFound       (NERR_BASE+221)
  308. #define NERR_LocalPathWarning           (NERR_BASE+222)
  309. #define NERR_AssignmentNotMade          (NERR_BASE+223)
  310. #define NERR_ItemNotAssigned            (NERR_BASE+224)
  311. #define NERR_CantAddAssignments         (NERR_BASE+225)
  312. #define NERR_CantSetAssignments         (NERR_BASE+226)
  313. #define NERR_DomainSpecificInfo         (NERR_BASE+227)
  314. #define NERR_TooManyLogonAsn            (NERR_BASE+228)
  315. #define NERR_DASDNoAPARs                (NERR_BASE+229)
  316. /*
  317.  *      CharDev API related
  318.  *              Error codes BASE+230 to BASE+249
  319.  */
  320.  
  321. /* UNUSED BASE+230 */
  322. #define NERR_DevInvalidOpCode   (NERR_BASE+231) /* The operation is invalid for this device. */
  323. #define NERR_DevNotFound        (NERR_BASE+232) /* This device cannot be shared. */
  324. #define NERR_DevNotOpen         (NERR_BASE+233) /* This device was not open. */
  325. #define NERR_BadQueueDevString  (NERR_BASE+234) /* This devicename list is invalid. */
  326. #define NERR_BadQueuePriority   (NERR_BASE+235) /* The queue priority is invalid. */
  327. #define NERR_NoCommDevs         (NERR_BASE+237) /* There are no shared communication devices. */
  328. #define NERR_QueueNotFound      (NERR_BASE+238) /* The queue you specified doesn't exist. */
  329. #define NERR_BadDevString       (NERR_BASE+240) /* This list of devices is invalid. */
  330. #define NERR_BadDev             (NERR_BASE+241) /* The requested device is invalid. */
  331. #define NERR_InUseBySpooler     (NERR_BASE+242) /* This device is already in use by the spooler. */
  332. #define NERR_CommDevInUse       (NERR_BASE+243) /* This device is already in use as a communication device. */
  333.  
  334. /*
  335.  *      NetICanonicalize and NetIType and NetIMakeLMFileName
  336.  *      NetIListCanon and NetINameCheck
  337.  *              Error codes BASE+250 to BASE+269
  338.  */
  339.  
  340. #define NERR_InvalidComputer   (NERR_BASE+251) /* This computername is invalid. */
  341. /* UNUSED BASE+252 */
  342. /* UNUSED BASE+253 */
  343. #define NERR_MaxLenExceeded    (NERR_BASE+254) /* The string and prefix specified are too long. */
  344. /* UNUSED BASE+255 */
  345. #define NERR_BadComponent      (NERR_BASE+256) /* This path component is invalid. */
  346. #define NERR_CantType          (NERR_BASE+257) /* Cannot determine type of input. */
  347. /* UNUSED BASE+258 */
  348. /* UNUSED BASE+259 */
  349. #define NERR_TooManyEntries    (NERR_BASE+262) /* The buffer for types is not big enough. */
  350.  
  351. /*
  352.  *      NetProfile
  353.  *              Error codes BASE+270 to BASE+276
  354.  */
  355.  
  356. /* UNUSED BASE+270 */
  357. /* UNUSED BASE+271 */
  358. /* UNUSED BASE+272 */
  359. /* UNUSED BASE+273 */
  360. /* UNUSED BASE+274 */
  361. /* UNUSED BASE+275 */
  362.  
  363.  
  364. /*
  365.  *      NetAudit and NetErrorLog
  366.  *              Error codes BASE+277 to BASE+279
  367.  */
  368.  
  369. #define NERR_LogOverflow           (NERR_BASE+277)      /* This log file exceeds the maximum defined size. */
  370. #define NERR_LogFileChanged        (NERR_BASE+278)      /* This log file has changed between reads. */
  371. #define NERR_LogFileCorrupt        (NERR_BASE+279)      /* This log file is corrupt. */
  372.  
  373. /*
  374.  *      NetRemote
  375.  *              Error codes BASE+280 to BASE+299
  376.  */
  377. #define NERR_SourceIsDir   (NERR_BASE+280) /* The source path cannot be a directory. */
  378. #define NERR_BadSource     (NERR_BASE+281) /* The source path is illegal. */
  379. #define NERR_BadDest       (NERR_BASE+282) /* The destination path is illegal. */
  380. #define NERR_DifferentServers   (NERR_BASE+283) /* The source and destination paths are on different servers. */
  381. /* UNUSED BASE+284 */
  382. #define NERR_RunSrvPaused       (NERR_BASE+285) /* The Run server you requested is paused. */
  383. /* UNUSED BASE+286 */
  384. /* UNUSED BASE+287 */
  385. /* UNUSED BASE+288 */
  386. #define NERR_ErrCommRunSrv      (NERR_BASE+289) /* An error occurred when communicating with a Run server. */
  387. /* UNUSED BASE+290 */
  388. #define NERR_ErrorExecingGhost  (NERR_BASE+291) /* An error occurred when starting a background process. */
  389. #define NERR_ShareNotFound      (NERR_BASE+292) /* The shared resource you are connected to could not be found.*/
  390. /* UNUSED BASE+293 */
  391. /* UNUSED BASE+294 */
  392.  
  393.  
  394. /*
  395.  *  NetWksta.sys (redir) returned error codes.
  396.  *
  397.  *          NERR_BASE + (300-329)
  398.  */
  399.  
  400. #define NERR_InvalidLana        (NERR_BASE+300) /* The LAN adapter number is invalid.  */
  401. #define NERR_OpenFiles          (NERR_BASE+301) /* There are open files on the connection.    */
  402. #define NERR_ActiveConns        (NERR_BASE+302) /* Active connections still exist. */
  403. #define NERR_BadPasswordCore    (NERR_BASE+303) /* This netname or password is invalid. */
  404. #define NERR_DevInUse           (NERR_BASE+304) /* The device is being accessed by an active process. */
  405. #define NERR_LocalDrive         (NERR_BASE+305) /* The drive letter is in use locally. */
  406. #define NERR_PausedConns        (NERR_BASE+306) /* Paused devices cannot be deleted */
  407. #define NERR_PipeBufTooSmall    (NERR_BASE+307) /* Write to a network named pipe buffer that is too small */
  408.  
  409. /*
  410.  *  Alert error codes.
  411.  *
  412.  *          NERR_BASE + (330-339)
  413.  */
  414. #define NERR_AlertExists        (NERR_BASE+330) /* The specified client is already registered for the specified event. */
  415. #define NERR_TooManyAlerts      (NERR_BASE+331) /* The alert table is full. */
  416. #define NERR_NoSuchAlert        (NERR_BASE+332) /* An invalid or nonexistent alertname was raised. */
  417. #define NERR_BadRecipient       (NERR_BASE+333) /* The alert recipient is invalid.*/
  418. #define NERR_AcctLimitExceeded  (NERR_BASE+334) /* A user's session with this server has been deleted
  419.                                                  * because his logon hours are no longer valid */
  420.  
  421. /*
  422.  *  Additional Error and Audit log codes.
  423.  *
  424.  *          NERR_BASE +(340-343)
  425.  */
  426. #define NERR_InvalidLogSeek     (NERR_BASE+340) /* The log file does not contain the requested record number. */
  427. /* UNUSED BASE+341 */
  428. /* UNUSED BASE+342 */
  429. /* UNUSED BASE+343 */
  430.  
  431. /*
  432.  *  Additional UAS and NETLOGON codes
  433.  *
  434.  *          NERR_BASE +(350-359)
  435.  */
  436. #define NERR_BadUasConfig       (NERR_BASE+350) /* The user account system database is not configured correctly. */
  437. #define NERR_InvalidUASOp       (NERR_BASE+351) /* This operation is not permitted when the Netlogon service is running. */
  438. #define NERR_LastAdmin          (NERR_BASE+352) /* This operation is not allowed on the last admin account. */
  439. #define NERR_DCNotFound         (NERR_BASE+353) /* Unable to find domain controller for this domain. */
  440. #define NERR_LogonTrackingError (NERR_BASE+354) /* Unable to set logon information for this user. */
  441. #define NERR_NetlogonNotStarted (NERR_BASE+355) /* The Netlogon service has not been started. */
  442. #define NERR_CanNotGrowUASFile  (NERR_BASE+356) /* Unable to grow the user account system database. */
  443. /* UNUSED BASE+357 */
  444. /* UNUSED BASE+358 */
  445. #define NERR_PasswordMismatch   (NERR_BASE+358) /* A password mismatch has been detected. */
  446. /* d18056 */
  447. #define NERR_MaxBadPasswordExceeded (NERR_BASE+359) /* The number of bad password
  448.                                                      * has exceeded the max allowed
  449.                                                      */
  450.  
  451. /*
  452.  *  Server Integration error codes.
  453.  *
  454.  *          NERR_BASE +(360-369)
  455.  */
  456. #define NERR_NoSuchServer       (NERR_BASE+360) /* The server ID does not specify a valid server. */
  457. #define NERR_NoSuchSession      (NERR_BASE+361) /* The session ID does not specify a valid session. */
  458. #define NERR_NoSuchConnection   (NERR_BASE+362) /* The connection ID does not specify a valid connection. */
  459. #define NERR_TooManyServers     (NERR_BASE+363) /* There is no space for another entry in the table of available servers. */
  460. #define NERR_TooManySessions    (NERR_BASE+364) /* The server has reached the maximum number of sessions it supports. */
  461. #define NERR_TooManyConnections (NERR_BASE+365) /* The server has reached the maximum number of connections it supports. */
  462. #define NERR_TooManyFiles       (NERR_BASE+366) /* The server cannot open more files because it has reached its maximum number. */
  463. #define NERR_NoAlternateServers (NERR_BASE+367) /* There are no alternate servers registered on this server. */
  464. /* UNUSED BASE+368 */
  465. /* UNUSED BASE+369 */
  466.  
  467. /*
  468.  *  UPS error codes.
  469.  *
  470.  *          NERR_BASE + (380-384)
  471.  */
  472. #define NERR_UPSDriverNotStarted    (NERR_BASE+380) /* The UPS driver could not be accessed by the UPS service. */
  473. /* UNUSED BASE+381 */
  474. /* UNUSED BASE+382 */
  475. /* UNUSED BASE+383 */
  476. /* UNUSED BASE+384 */
  477.  
  478. /*
  479.  *  Remoteboot error codes.
  480.  *
  481.  *          NERR_BASE + (400-419)
  482.  *          Error codes 400 - 405 are used by RPLBOOT.SYS.
  483.  *          Error codes 403, 407 - 416 are used by RPLLOADR.COM,
  484.  *          Error code 417 is the alerter message of REMOTEBOOT (RPLSERVR.EXE).
  485.  *          Error code 418 is for when REMOTEBOOT can't start
  486.  *          Error code 419 is for a disallowed 2nd rpl connection
  487.  */
  488. #define NERR_BadDosRetCode      (NERR_BASE+400) /* The program below returned an MS-DOS error code:*/
  489. #define NERR_ProgNeedsExtraMem  (NERR_BASE+401) /* The program below needs more memory:*/
  490. #define NERR_BadDosFunction     (NERR_BASE+402) /* The program below called an unsupported MS-DOS function:*/
  491. #define NERR_RemoteBootFailed   (NERR_BASE+403) /* The workstation failed to boot.*/
  492. #define NERR_BadFileCheckSum    (NERR_BASE+404) /* The file below is corrupt.*/
  493. #define NERR_NoRplBootSystem    (NERR_BASE+405) /* No loader is specified in the boot-block definition file.*/
  494. #define NERR_RplLoadrNetBiosErr (NERR_BASE+406) /* NetBIOS returned an error: The NCB and SMB are dumped above.*/
  495. #define NERR_RplLoadrDiskErr    (NERR_BASE+407) /* A disk I/O error occurred.*/
  496. #define NERR_ImageParamErr      (NERR_BASE+408) /* Image parameter substitution failed.*/
  497. #define NERR_TooManyImageParams (NERR_BASE+409) /* Too many image parameters cross disk sector boundaries.*/
  498. #define NERR_NonDosFloppyUsed   (NERR_BASE+410) /* The image was not generated from an MS-DOS diskette formatted with /S.*/
  499. #define NERR_RplBootRestart     (NERR_BASE+411) /* Remote boot will be restarted later.*/
  500. #define NERR_RplSrvrCallFailed  (NERR_BASE+412) /* The call to the Remoteboot server failed.*/
  501. #define NERR_CantConnectRplSrvr (NERR_BASE+413) /* Cannot connect to the Remoteboot server.*/
  502. #define NERR_CantOpenImageFile  (NERR_BASE+414) /* Cannot open image file on the Remoteboot server.*/
  503. #define NERR_CallingRplSrvr     (NERR_BASE+415) /* Connecting to the Remoteboot server...*/
  504. #define NERR_StartingRplBoot    (NERR_BASE+416) /* Connecting to the Remoteboot server...*/
  505. #define NERR_RplBootServiceTerm (NERR_BASE+417) /* Remote boot service was stopped; check the error log for the cause of the problem.*/
  506. #define NERR_RplBootStartFailed (NERR_BASE+418) /* Remote boot startup failed; check the error log for the cause of the problem.*/
  507. #define NERR_RPL_CONNECTED      (NERR_BASE+419) /* A second connection to a Remoteboot resource is not allowed.*/
  508. #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. */
  509. #define NERR_RPL_COPYRIGHT1     (NERR_BASE+421) /* Remote IPL Initialization Program Version 2.0. */
  510. #define NERR_RPL_COPYRIGHT2     (NERR_BASE+422) /* (C) Copyright International Business Machines Corporation 1989, 1991. */
  511. #define NERR_RPL_COPYRIGHT3     (NERR_BASE+423) /* (C) Copyright Microsoft Corporation 1989, 1991. */
  512.  
  513. /*
  514.  *  FTADMIN API error codes
  515.  *
  516.  *       NERR_BASE + (425-434)
  517.  *
  518.  */
  519. #define NERR_FTNotInstalled     (NERR_BASE+425) /* DISKFT.SYS is not installed. */
  520. #define NERR_FTMONITNotRunning  (NERR_BASE+426) /* FTMONIT is not running */
  521. #define NERR_FTDiskNotLocked    (NERR_BASE+427) /* FTADMIN has not locked the disk. */
  522. #define NERR_FTDiskNotAvailable (NERR_BASE+428) /* Some other process has locked the disk. */
  523. #define NERR_FTUnableToStart    (NERR_BASE+429) /* The verifier/correcter cannot be started. */
  524. #define NERR_FTNotInProgress    (NERR_BASE+430) /* The verifier/correcter can't be aborted because it isn't started. */
  525. #define NERR_FTUnableToAbort    (NERR_BASE+431) /* The verifier/correcter can't be aborted. */
  526. #define NERR_FTUnabletoChange   (NERR_BASE+432) /* The disk could not be locked/unlocked. */
  527. #define NERR_FTInvalidErrHandle (NERR_BASE+433) /* The error handle was not recognized. */
  528. #define NERR_FTDriveNotMirrored (NERR_BASE+434) /* The drive is not mirrored. */
  529.  
  530. /*
  531.  *  ALIAS API error codes
  532.  *
  533.  *       NERR_BASE + 681-688
  534.  *
  535.  */
  536. #define NERR_NoAccessDrive      (NERR_BASE+681)
  537. #if !defined(NERR_AliasExists)
  538. #define NERR_AliasExists        (NERR_BASE+682)
  539. #endif
  540. #if !defined(NERR_AliasNotFound)
  541. #define NERR_AliasNotFound      (NERR_BASE+683)
  542. #endif
  543. #define NERR_InvAliasDev        (NERR_BASE+685)
  544. #if !defined(NERR_DCDBError)
  545. #define NERR_DCDBError          (NERR_BASE+686)
  546. #endif
  547. #if !defined(NERR_NetnameExists)
  548. #define NERR_NetnameExists      (NERR_BASE+687)
  549. #endif
  550. #if !defined(NERR_DupAliasRes)
  551. #define NERR_DupAliasRes       (NERR_BASE+688)
  552. #endif
  553.  
  554. /*
  555.  *  APP API error codes
  556.  *
  557.  *       NERR_BASE + 692-696
  558.  *
  559.  */
  560. #if !defined(NERR_AppExists)
  561. #define NERR_AppExists          (NERR_BASE+692)
  562. #endif
  563. #if !defined(NERR_AppNotFound)
  564. #define NERR_AppNotFound        (NERR_BASE+693)
  565. #endif
  566. #if !defined(NERR_DCDBCreateError)
  567. #define NERR_DCDBCreateError    (NERR_BASE+694)
  568. #endif
  569. #if !defined(NERR_NotPrimaryDCDB)
  570. #define NERR_NotPrimaryDCDB     (NERR_BASE+695)
  571. #endif
  572. #define NERR_BadAppRemark       (NERR_BASE+696)
  573.  
  574. /* NetAccessApply error codes */
  575.  
  576. #define NERR_ApplyNotPermitted  (NERR_BASE+700)
  577. #define NERR_IncompleteApply    (NERR_BASE+701)
  578. #define NERR_ApplyFailed        (NERR_BASE+702)
  579.  
  580.  
  581. /*
  582.  *      RIPLERR_BASE is the base of remote IPL error codes.
  583.  */
  584.  
  585. #define RIPLERR_BASE     5400
  586.  
  587.  
  588. /*      RIPL ERROR MESSAGE RANGE      = 5400 <--> 5499
  589.  *
  590.  *      General RIPL Server errors    = 5400 <--> 5419
  591.  *      NetCreateRIPLMachine errors   = 5420 <--> 5439
  592.  *      NetDeleteRIPLMachine errors   = 5440 <--> 5449
  593.  *      NetEnumRIPLMachine errors     = 5450 <--> 5459
  594.  *      NetGetRIPLMachineInfo errors  = 5460 <--> 5469
  595.  *      NetSetRIPLMachineInfo errors  = 5470 <--> 5479
  596.  *      DOS Images errors             = 5480 <--> 5489
  597.  */
  598.  
  599. /*
  600.  *      Start Remote IPL API error messages
  601.  */
  602.  
  603.  
  604. #define NERR_NotRIPLServer             (RIPLERR_BASE + 1)
  605.         /*
  606.          *The server name specified is a not a valid remote IPL server.
  607.          */
  608.  
  609. #define NERR_RPL_MAPNotFound           (RIPLERR_BASE + 2)
  610.         /*
  611.          *The RPL.MAP file was not found or could not be opened on the
  612.          *remote IPL server.
  613.          */
  614.  
  615. #define NERR_RPL_MAPReadError          (RIPLERR_BASE + 3)
  616.         /*
  617.          *An error was detected while reading the RPL.MAP file on the
  618.          *remote IPL server.
  619.          */
  620.  
  621. #define NERR_RPL_MAPWriteError         (RIPLERR_BASE + 4)
  622.         /*
  623.          *An error occurred while updating the RPL.MAP file on the
  624.          *remote IPL server.
  625.          */
  626.  
  627. #define NERR_MachineNotFound           (RIPLERR_BASE + 5)
  628.         /*
  629.          *The machine definition does not exist on the remote IPL server.
  630.          */
  631.  
  632. #define NERR_FITSFileNotFound          (RIPLERR_BASE + 6)
  633.         /*
  634.          *An error was detected while reading configuration files in
  635.          *the IBMLAN\RPL\FITS directory on the remote IPL server.
  636.          */
  637.  
  638. #define NERR_MACHINESFileNotFound      (RIPLERR_BASE + 7)
  639.         /*
  640.          *An error was detected while reading configuration files in
  641.          *the IBMLAN\RPL\MACHINES directory tree on the remote IPL server.
  642.          */
  643.  
  644. #define NERR_IBMCOMFileNotFound        (RIPLERR_BASE + 8)
  645.         /*
  646.          *An error was detected while reading configuration files in
  647.          *the IBMLAN\RPL\IBMCOM directory tree on the remote IPL server.
  648.          */
  649.  
  650. #define NERR_RPLUSERFileNotFound       (RIPLERR_BASE + 9)
  651.         /*
  652.          *An error was detected while reading configuration files in
  653.          *the IBMLAN\RPLUSER directory tree on the remote IPL server.
  654.          */
  655.  
  656. #define NERR_RPLFileNotFound           (RIPLERR_BASE + 10)
  657.         /*
  658.          *An error was detected while reading configuration files in
  659.          *the IBMLAN\RPL directory tree on the remote IPL server.
  660.          */
  661.  
  662. #define NERR_MachineFilesLocked        (RIPLERR_BASE + 11)
  663.         /*
  664.          *Machine configuration files are locked by the remote IPL
  665.          *server file system.
  666.          */
  667.  
  668. #define NERR_ServerRecordInvalid       (RIPLERR_BASE + 12)
  669.         /*
  670.          *The server record identifier is not defined in an enabled
  671.          *server record entry in the RPL.MAP file.
  672.          */
  673.  
  674. #define NERR_RemarkInvalid             (RIPLERR_BASE + 13)
  675.         /*
  676.          *The machine definition remark was more than 48 bytes.
  677.          */
  678.  
  679. #define NERR_NDISProfileNotFound       (RIPLERR_BASE + 14)
  680.         /*
  681.          *The network adapter directory profile could not be found
  682.          *in the NDISDD.PRO file on the remote IPL server.
  683.          */
  684.  
  685. #define NERR_MachNameTooLong           (RIPLERR_BASE + 15)
  686.         /*
  687.          *The machine name length has exceeded the maximum allowed.
  688.          */
  689.  
  690. #define NERR_CreateMachNameInvalid     (RIPLERR_BASE + 20)
  691.         /*
  692.          *The machine definition could not be created because the name
  693.          *is not unique in the domain.
  694.          */
  695.  
  696. #define NERR_CreateMachNameExists      (RIPLERR_BASE + 21)
  697.         /*
  698.          *The machine definition already exists on the remote IPL server.
  699.          */
  700.  
  701. #define NERR_CreateMachModelInvalid    (RIPLERR_BASE + 22)
  702.         /*
  703.          *The model machine name does not exist on the remote IPL server.
  704.          */
  705.  
  706. #define NERR_CreateMachDriveInvalid    (RIPLERR_BASE + 24)
  707.         /*
  708.          * The remote IPL OS/2 boot drive identifier is not valid.
  709.          */
  710.  
  711. #define NERR_NetworkAddressInvalid     (RIPLERR_BASE + 25)
  712.         /*
  713.          *The network adapter address is not valid.
  714.          */
  715.  
  716. #define NERR_CreateMachAddrExists      (RIPLERR_BASE + 26)
  717.         /*
  718.          *A machine definition already exists with the specified
  719.          *network adapter address.
  720.          */
  721.  
  722. #define NERR_CreateMachReadError       (RIPLERR_BASE + 28)
  723.         /*
  724.          *An error was detected while reading machine configuration
  725.          *files on the remote IPL server.
  726.          */
  727.  
  728. #define NERR_CreateMachWriteError      (RIPLERR_BASE + 29)
  729.         /*
  730.          *An error was detected while writing machine configuration
  731.          *files on the remote IPL server.
  732.          */
  733.  
  734. #define NERR_CreateMachFileNotFound    (RIPLERR_BASE + 30)
  735.         /*
  736.          *Files required for creating a machine definition could not
  737.          *be found on the remote IPL server.
  738.          */
  739.  
  740. #define NERR_CreateMachDirFailure      (RIPLERR_BASE + 32)
  741.         /*
  742.          *An error was detected while creating machine configuration
  743.          *directories on the remote IPL server.
  744.          */
  745.  
  746. #define NERR_CreateMachACLFailure      (RIPLERR_BASE + 33)
  747.         /*
  748.          *An error was detected while creating access control profiles
  749.          *on the remote IPL server.
  750.          */
  751.  
  752. #define NERR_DelMachFailure            (RIPLERR_BASE + 40)
  753.         /*
  754.          *The machine definition could not be deleted.
  755.          */
  756.  
  757. #define NERR_DelMachDirFailure         (RIPLERR_BASE + 41)
  758.         /*
  759.          *An error was detected while deleting machine configuration
  760.          *directories on the remote IPL server.
  761.          */
  762.  
  763. #define NERR_EnumMachNotFound          (RIPLERR_BASE + 50)
  764.         /*
  765.          *A machine definition of the type requested does not exist
  766.          *on the remote IPL server.
  767.          */
  768.  
  769. #define NERR_SetMachDriveFailure       (RIPLERR_BASE + 70)
  770.         /*
  771.          *The remote IPL OS/2 boot drive identifier cannot be changed
  772.          *because the machine has a Workplace Shell desktop defined.
  773.          */
  774.  
  775. #define NERR_SetMachNameInvalid        (RIPLERR_BASE + 71)
  776.         /*
  777.          *The machine definition name cannot be changed.
  778.          */
  779.  
  780. #define NERR_SetMachVersionInvalid     (RIPLERR_BASE + 72)
  781.         /*
  782.          *The machine definition OS/2 version cannot be changed.
  783.          */
  784.  
  785. #define NERR_SetMachCompInvalid        (RIPLERR_BASE + 73)
  786.         /*
  787.          *The operation is not valid on this machine definition.
  788.          */
  789.  
  790. #define NERR_DOSImageNotFound          (RIPLERR_BASE + 80)
  791.         /*
  792.          *The DOS image file name does not exist.
  793.          */
  794.  
  795. /*******    RIPL ERROR MESSAGE RANGE = 5400 <--> 5499     *************/
  796.  
  797. #endif /* NETERR_INCLUDED */
  798.