jwamprerror.pas 13 KB

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