jwamprerror.pas 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454
  1. {******************************************************************************}
  2. { }
  3. { Management Base Information API interface Unit for Object Pascal }
  4. { }
  5. { Portions created by Microsoft are Copyright (C) 1995-2001 Microsoft }
  6. { Corporation. All Rights Reserved. }
  7. { }
  8. { The original file is: mprerror.h, released August 2001. The original Pascal }
  9. { code is: MprError.pas, released September 2000. The initial developer of the }
  10. { Pascal code is Marcel van Brakel (brakelm att chello dott nl). }
  11. { }
  12. { Portions created by Marcel van Brakel are Copyright (C) 1999-2001 }
  13. { Marcel van Brakel. All Rights Reserved. }
  14. { }
  15. { Obtained through: Joint Endeavour of Delphi Innovators (Project JEDI) }
  16. { }
  17. { You may retrieve the latest version of this file at the Project JEDI }
  18. { APILIB home page, located at http://jedi-apilib.sourceforge.net }
  19. { }
  20. { The contents of this file are used with permission, subject to the Mozilla }
  21. { Public License Version 1.1 (the "License"); you may not use this file except }
  22. { in compliance with the License. You may obtain a copy of the License at }
  23. { http://www.mozilla.org/MPL/MPL-1.1.html }
  24. { }
  25. { Software distributed under the License is distributed on an "AS IS" basis, }
  26. { WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for }
  27. { the specific language governing rights and limitations under the License. }
  28. { }
  29. { Alternatively, the contents of this file may be used under the terms of the }
  30. { GNU Lesser General Public License (the "LGPL License"), in which case the }
  31. { provisions of the LGPL License are applicable instead of those above. }
  32. { If you wish to allow use of your version of this file only under the terms }
  33. { of the LGPL License and not to allow others to use your version of this file }
  34. { under the MPL, indicate your decision by deleting the provisions above and }
  35. { replace them with the notice and other provisions required by the LGPL }
  36. { License. If you do not delete the provisions above, a recipient may use }
  37. { your version of this file under either the MPL or the LGPL License. }
  38. { }
  39. { For more information about the LGPL: http://www.gnu.org/copyleft/lesser.html }
  40. { }
  41. {******************************************************************************}
  42. unit JwaMprError;
  43. {$WEAKPACKAGEUNIT}
  44. {$HPPEMIT ''}
  45. {$HPPEMIT '#include "mprerror.h"'}
  46. {$HPPEMIT ''}
  47. {$I jediapilib.inc}
  48. interface
  49. const
  50. ROUTEBASE = 900;
  51. {$EXTERNALSYM ROUTEBASE}
  52. SUCCESS = 0;
  53. {$EXTERNALSYM SUCCESS}
  54. ERROR_ROUTER_STOPPED = ROUTEBASE + 0;
  55. {$EXTERNALSYM ERROR_ROUTER_STOPPED}
  56. (*
  57. * The router is not running.%0
  58. *)
  59. ERROR_ALREADY_CONNECTED = ROUTEBASE + 1;
  60. {$EXTERNALSYM ERROR_ALREADY_CONNECTED}
  61. (*
  62. * The interface is already connected.%0
  63. *)
  64. ERROR_UNKNOWN_PROTOCOL_ID = ROUTEBASE + 2;
  65. {$EXTERNALSYM ERROR_UNKNOWN_PROTOCOL_ID}
  66. (*
  67. * The specified protocol identifier is not known to the router.%0
  68. *)
  69. ERROR_DDM_NOT_RUNNING = ROUTEBASE + 3;
  70. {$EXTERNALSYM ERROR_DDM_NOT_RUNNING}
  71. (*
  72. * The Demand-dial Interface Manager is not running.%0
  73. *)
  74. ERROR_INTERFACE_ALREADY_EXISTS = ROUTEBASE + 4;
  75. {$EXTERNALSYM ERROR_INTERFACE_ALREADY_EXISTS}
  76. (*
  77. * An interface with this name is already registered with the router.%0
  78. *)
  79. ERROR_NO_SUCH_INTERFACE = ROUTEBASE + 5;
  80. {$EXTERNALSYM ERROR_NO_SUCH_INTERFACE}
  81. (*
  82. * An interface with this name is not registered with the router.%0
  83. *)
  84. ERROR_INTERFACE_NOT_CONNECTED = ROUTEBASE + 6;
  85. {$EXTERNALSYM ERROR_INTERFACE_NOT_CONNECTED}
  86. (*
  87. * The interface is not connected.%0
  88. *)
  89. ERROR_PROTOCOL_STOP_PENDING = ROUTEBASE + 7;
  90. {$EXTERNALSYM ERROR_PROTOCOL_STOP_PENDING}
  91. (*
  92. * The specified protocol is stopping.%0
  93. *)
  94. ERROR_INTERFACE_CONNECTED = ROUTEBASE + 8;
  95. {$EXTERNALSYM ERROR_INTERFACE_CONNECTED}
  96. (*
  97. * The interface is connected and hence cannot be deleted.%0
  98. *)
  99. ERROR_NO_INTERFACE_CREDENTIALS_SET = ROUTEBASE + 9;
  100. {$EXTERNALSYM ERROR_NO_INTERFACE_CREDENTIALS_SET}
  101. (*
  102. * The interface credentials have not been set.%0
  103. *)
  104. ERROR_ALREADY_CONNECTING = ROUTEBASE + 10;
  105. {$EXTERNALSYM ERROR_ALREADY_CONNECTING}
  106. (*
  107. * This interface is already in the process of connecting.%0
  108. *)
  109. ERROR_UPDATE_IN_PROGRESS = ROUTEBASE + 11;
  110. {$EXTERNALSYM ERROR_UPDATE_IN_PROGRESS}
  111. (*
  112. * An update of routing information on this interface is already in progress.%0
  113. *)
  114. ERROR_INTERFACE_CONFIGURATION = ROUTEBASE + 12;
  115. {$EXTERNALSYM ERROR_INTERFACE_CONFIGURATION}
  116. (*
  117. * The interface confugration in invalid. There is already another interface that is connected to the same inteface on the remote router.%0
  118. *)
  119. ERROR_NOT_CLIENT_PORT = ROUTEBASE + 13;
  120. {$EXTERNALSYM ERROR_NOT_CLIENT_PORT}
  121. (*
  122. * A Remote Access Client attempted to connect over a port that was reserved for Routers only.%0
  123. *)
  124. ERROR_NOT_ROUTER_PORT = ROUTEBASE + 14;
  125. {$EXTERNALSYM ERROR_NOT_ROUTER_PORT}
  126. (*
  127. * A Demand Dial Router attempted to connect over a port that was reserved for Remote Access Clients only.%0
  128. *)
  129. ERROR_CLIENT_INTERFACE_ALREADY_EXISTS = ROUTEBASE + 15;
  130. {$EXTERNALSYM ERROR_CLIENT_INTERFACE_ALREADY_EXISTS}
  131. (*
  132. * The client interface with this name already exists and is currently connected.%0
  133. *)
  134. ERROR_INTERFACE_DISABLED = ROUTEBASE + 16;
  135. {$EXTERNALSYM ERROR_INTERFACE_DISABLED}
  136. (*
  137. * The interface is in a disabled state.%0
  138. *)
  139. ERROR_AUTH_PROTOCOL_REJECTED = ROUTEBASE + 17;
  140. {$EXTERNALSYM ERROR_AUTH_PROTOCOL_REJECTED}
  141. (*
  142. * The authentication protocol was rejected by the remote peer.%0
  143. *)
  144. ERROR_NO_AUTH_PROTOCOL_AVAILABLE = ROUTEBASE + 18;
  145. {$EXTERNALSYM ERROR_NO_AUTH_PROTOCOL_AVAILABLE}
  146. (*
  147. * There are no authentication protocols available for use.%0
  148. *)
  149. ERROR_PEER_REFUSED_AUTH = ROUTEBASE + 19;
  150. {$EXTERNALSYM ERROR_PEER_REFUSED_AUTH}
  151. (*
  152. * The remote computer refused to be authenticated using the configured authentication protocol. The line has been disconnected.%0
  153. *)
  154. ERROR_REMOTE_NO_DIALIN_PERMISSION = ROUTEBASE + 20;
  155. {$EXTERNALSYM ERROR_REMOTE_NO_DIALIN_PERMISSION}
  156. (*
  157. * The remote account does not have Remote Access permission.%0
  158. *)
  159. ERROR_REMOTE_PASSWD_EXPIRED = ROUTEBASE + 21;
  160. {$EXTERNALSYM ERROR_REMOTE_PASSWD_EXPIRED}
  161. (*
  162. * The remote account has expired.%0
  163. *)
  164. ERROR_REMOTE_ACCT_DISABLED = ROUTEBASE + 22;
  165. {$EXTERNALSYM ERROR_REMOTE_ACCT_DISABLED}
  166. (*
  167. * The remote account is disabled.%0
  168. *)
  169. ERROR_REMOTE_RESTRICTED_LOGON_HOURS = ROUTEBASE + 23;
  170. {$EXTERNALSYM ERROR_REMOTE_RESTRICTED_LOGON_HOURS}
  171. (*
  172. * The remote account is not permitted to logon at this time of day.%0
  173. *)
  174. ERROR_REMOTE_AUTHENTICATION_FAILURE = ROUTEBASE + 24;
  175. {$EXTERNALSYM ERROR_REMOTE_AUTHENTICATION_FAILURE}
  176. (*
  177. * Access was denied to the remote peer because username and/or password is invalid on the domain.%0
  178. *)
  179. ERROR_INTERFACE_HAS_NO_DEVICES = ROUTEBASE + 25;
  180. {$EXTERNALSYM ERROR_INTERFACE_HAS_NO_DEVICES}
  181. (*
  182. * There are no routing enabled ports available for use by this demand dial interface.%0
  183. *)
  184. ERROR_IDLE_DISCONNECTED = ROUTEBASE + 26;
  185. {$EXTERNALSYM ERROR_IDLE_DISCONNECTED}
  186. (*
  187. * The port has been disconnected due to inactivity.%0
  188. *)
  189. ERROR_INTERFACE_UNREACHABLE = ROUTEBASE + 27;
  190. {$EXTERNALSYM ERROR_INTERFACE_UNREACHABLE}
  191. (*
  192. * The interface is not reachable at this time.%0
  193. *)
  194. ERROR_SERVICE_IS_PAUSED = ROUTEBASE + 28;
  195. {$EXTERNALSYM ERROR_SERVICE_IS_PAUSED}
  196. (*
  197. * The Demand Dial service is in a paused state.%0
  198. *)
  199. ERROR_INTERFACE_DISCONNECTED = ROUTEBASE + 29;
  200. {$EXTERNALSYM ERROR_INTERFACE_DISCONNECTED}
  201. (*
  202. * The interface has been disconnected by the administrator.%0
  203. *)
  204. ERROR_AUTH_SERVER_TIMEOUT = ROUTEBASE + 30;
  205. {$EXTERNALSYM ERROR_AUTH_SERVER_TIMEOUT}
  206. (*
  207. * The authentication server did not respond to authentication requests in a timely fashion.%0
  208. *)
  209. ERROR_PORT_LIMIT_REACHED = ROUTEBASE + 31;
  210. {$EXTERNALSYM ERROR_PORT_LIMIT_REACHED}
  211. (*
  212. * The maximum number of ports allowed for use in the multilinked connection has been reached.%0
  213. *)
  214. ERROR_PPP_SESSION_TIMEOUT = ROUTEBASE + 32;
  215. {$EXTERNALSYM ERROR_PPP_SESSION_TIMEOUT}
  216. (*
  217. * The connection time limit for the user has been reached.%0
  218. *)
  219. ERROR_MAX_LAN_INTERFACE_LIMIT = ROUTEBASE + 33;
  220. {$EXTERNALSYM ERROR_MAX_LAN_INTERFACE_LIMIT}
  221. (*
  222. * The maximum limit on the number of LAN interfaces supported has been reached.%0
  223. *)
  224. ERROR_MAX_WAN_INTERFACE_LIMIT = ROUTEBASE + 34;
  225. {$EXTERNALSYM ERROR_MAX_WAN_INTERFACE_LIMIT}
  226. (*
  227. * The maximum limit on the number of Demand Dial interfaces supported has been reached.%0
  228. *)
  229. ERROR_MAX_CLIENT_INTERFACE_LIMIT = ROUTEBASE + 35;
  230. {$EXTERNALSYM ERROR_MAX_CLIENT_INTERFACE_LIMIT}
  231. (*
  232. * The maximum limit on the number of Remote Access clients supported has been reached.%0
  233. *)
  234. ERROR_BAP_DISCONNECTED = ROUTEBASE + 36;
  235. {$EXTERNALSYM ERROR_BAP_DISCONNECTED}
  236. (*
  237. * The port has been disconnected due to the BAP policy.%0
  238. *)
  239. ERROR_USER_LIMIT = ROUTEBASE + 37;
  240. {$EXTERNALSYM ERROR_USER_LIMIT}
  241. (*
  242. * Because another connection of your type is in use, the incoming connection cannot accept your connection request.%0
  243. *)
  244. ERROR_NO_RADIUS_SERVERS = ROUTEBASE + 38;
  245. {$EXTERNALSYM ERROR_NO_RADIUS_SERVERS}
  246. (*
  247. * No RADIUS servers were located on the network.%0
  248. *)
  249. ERROR_INVALID_RADIUS_RESPONSE = ROUTEBASE + 39;
  250. {$EXTERNALSYM ERROR_INVALID_RADIUS_RESPONSE}
  251. (*
  252. * An invalid response was received from the RADIUS authentication server.
  253. * Make sure that the case sensitive secret pasword for the RADIUS server is set correctly.%0
  254. *)
  255. ERROR_DIALIN_HOURS_RESTRICTION = ROUTEBASE + 40;
  256. {$EXTERNALSYM ERROR_DIALIN_HOURS_RESTRICTION}
  257. (*
  258. * You do not have permission to connect at this time.%0
  259. *)
  260. ERROR_ALLOWED_PORT_TYPE_RESTRICTION = ROUTEBASE + 41;
  261. {$EXTERNALSYM ERROR_ALLOWED_PORT_TYPE_RESTRICTION}
  262. (*
  263. * You do not have permission to connect using the current device type.%0
  264. *)
  265. ERROR_AUTH_PROTOCOL_RESTRICTION = ROUTEBASE + 42;
  266. {$EXTERNALSYM ERROR_AUTH_PROTOCOL_RESTRICTION}
  267. (*
  268. * You do not have permission to connect using the selected authentication protocol.%0
  269. *)
  270. ERROR_BAP_REQUIRED = ROUTEBASE + 43;
  271. {$EXTERNALSYM ERROR_BAP_REQUIRED}
  272. (*
  273. * BAP is required for this user.%0
  274. *)
  275. ERROR_DIALOUT_HOURS_RESTRICTION = ROUTEBASE + 44;
  276. {$EXTERNALSYM ERROR_DIALOUT_HOURS_RESTRICTION}
  277. (*
  278. * The interface is not allowed to connect at this time.%0
  279. *)
  280. ERROR_ROUTER_CONFIG_INCOMPATIBLE = ROUTEBASE + 45;
  281. {$EXTERNALSYM ERROR_ROUTER_CONFIG_INCOMPATIBLE}
  282. (*
  283. * The saved router configuration is incompatible with the current router.%0
  284. *)
  285. WARNING_NO_MD5_MIGRATION = ROUTEBASE + 46;
  286. {$EXTERNALSYM WARNING_NO_MD5_MIGRATION}
  287. (*
  288. * RemoteAccess has detected older format user accounts that will not be
  289. * migrated automatically. To migrate these manually, run XXXX.
  290. *)
  291. ERROR_PROTOCOL_ALREADY_INSTALLED = ROUTEBASE + 48;
  292. {$EXTERNALSYM ERROR_PROTOCOL_ALREADY_INSTALLED}
  293. (*
  294. * The transport is already installed with the router.%0
  295. *)
  296. ERROR_INVALID_SIGNATURE_LENGTH = ROUTEBASE + 49;
  297. {$EXTERNALSYM ERROR_INVALID_SIGNATURE_LENGTH}
  298. (*
  299. * Received invalid signature length in packet from RADIUS server.%0
  300. *)
  301. ERROR_INVALID_SIGNATURE = ROUTEBASE + 50;
  302. {$EXTERNALSYM ERROR_INVALID_SIGNATURE}
  303. (*
  304. * Received invalid signature in packet from RADIUS server.%0
  305. *)
  306. ERROR_NO_SIGNATURE = ROUTEBASE + 51;
  307. {$EXTERNALSYM ERROR_NO_SIGNATURE}
  308. (*
  309. * Did not receive signature along with EAPMessage from RADIUS server.%0
  310. *)
  311. ERROR_INVALID_PACKET_LENGTH_OR_ID = ROUTEBASE + 52;
  312. {$EXTERNALSYM ERROR_INVALID_PACKET_LENGTH_OR_ID}
  313. (*
  314. * Received packet with invalid length or Id from RADIUS server.%0
  315. *)
  316. ERROR_INVALID_ATTRIBUTE_LENGTH = ROUTEBASE + 53;
  317. {$EXTERNALSYM ERROR_INVALID_ATTRIBUTE_LENGTH}
  318. (*
  319. * Received packet with attribute with invalid length from RADIUS server.%0
  320. *)
  321. ERROR_INVALID_PACKET = ROUTEBASE + 54;
  322. {$EXTERNALSYM ERROR_INVALID_PACKET}
  323. (*
  324. * Received invalid packet from RADIUS server.%0
  325. *)
  326. ERROR_AUTHENTICATOR_MISMATCH = ROUTEBASE + 55;
  327. {$EXTERNALSYM ERROR_AUTHENTICATOR_MISMATCH}
  328. (*
  329. * Authenticator does not match in packet from RADIUS server.%0
  330. *)
  331. ROUTEBASEEND = ROUTEBASE + 56;
  332. {$EXTERNALSYM ROUTEBASEEND}
  333. implementation
  334. end.