PageRenderTime 23ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/jedi/jwapi/Win32API/JwaMprError.pas

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