home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 June / PCFJune.iso / Xenon / C++ / FreeCommandLineTools.exe / Include / mprerror.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-01-31  |  7.7 KB  |  270 lines

  1. /* Copyright (c) 1992-1999, Microsoft Corporation, all rights reserved
  2. **
  3. ** routeerr.h
  4. ** Router external API
  5. ** Router specific error codes
  6. */
  7.  
  8. //
  9. // Don't change the comments following the manifest constants without
  10. // understanding how mapmsg works.
  11. //
  12.  
  13. #ifndef _ROUTEERR_H_
  14. #pragma option push -b -a8 -pc -A- /*P_O_Push*/
  15. #define _ROUTEERR_H_
  16.  
  17. #if _MSC_VER > 1000
  18. #pragma once
  19. #endif
  20.  
  21. #define ROUTEBASE 900
  22. #define SUCCESS 0
  23.  
  24. #define ERROR_ROUTER_STOPPED                        (ROUTEBASE+0)
  25. /*
  26.  * The router is not running.%0
  27.  */
  28.  
  29. #define ERROR_ALREADY_CONNECTED                     (ROUTEBASE+1)
  30. /*
  31.  * The interface is already connected.%0
  32.  */
  33.  
  34. #define ERROR_UNKNOWN_PROTOCOL_ID                   (ROUTEBASE+2)
  35. /*
  36.  * The specified protocol identifier is not known to the router.%0
  37.  */
  38.  
  39. #define ERROR_DDM_NOT_RUNNING                       (ROUTEBASE+3)
  40. /*
  41.  * The Demand-dial Interface Manager is not running.%0
  42.  */
  43.  
  44. #define ERROR_INTERFACE_ALREADY_EXISTS              (ROUTEBASE+4)
  45. /*
  46.  * An interface with this name is already registered with the router.%0
  47.  */
  48.  
  49. #define ERROR_NO_SUCH_INTERFACE                     (ROUTEBASE+5)
  50. /*
  51.  * An interface with this name is not registered with the router.%0
  52.  */
  53.  
  54. #define ERROR_INTERFACE_NOT_CONNECTED               (ROUTEBASE+6)
  55. /*
  56.  * The interface is not connected.%0
  57.  */
  58.  
  59. #define ERROR_PROTOCOL_STOP_PENDING                 (ROUTEBASE+7)
  60. /*
  61.  * The specified protocol is stopping.%0
  62.  */
  63.  
  64. #define ERROR_INTERFACE_CONNECTED                   (ROUTEBASE+8)
  65. /*
  66.  * The interface is connected and hence cannot be deleted.%0
  67.  */
  68.  
  69. #define ERROR_NO_INTERFACE_CREDENTIALS_SET          (ROUTEBASE+9)
  70. /*
  71.  * The interface credentials have not been set.%0
  72.  */
  73.  
  74. #define ERROR_ALREADY_CONNECTING                    (ROUTEBASE+10)
  75. /*
  76.  * This interface is already in the process of connecting.%0
  77.  */
  78.  
  79. #define ERROR_UPDATE_IN_PROGRESS                    (ROUTEBASE+11)
  80. /*
  81.  * An update of routing information on this interface is already in progress.%0
  82.  */
  83.  
  84. #define ERROR_INTERFACE_CONFIGURATION               (ROUTEBASE+12)
  85. /*
  86.  * The interface confugration in invalid. There is already another interface that is connected to the same inteface on the remote router.%0
  87.  */
  88.  
  89. #define ERROR_NOT_CLIENT_PORT                       (ROUTEBASE+13)
  90. /*
  91.  * A Remote Access Client attempted to connect over a port that was reserved for Routers only.%0
  92.  */
  93.  
  94. #define ERROR_NOT_ROUTER_PORT                       (ROUTEBASE+14)
  95. /*
  96.  * A Demand Dial Router attempted to connect over a port that was reserved for Remote Access Clients only.%0
  97.  */
  98.  
  99. #define ERROR_CLIENT_INTERFACE_ALREADY_EXISTS       (ROUTEBASE+15)
  100. /*
  101.  * The client interface with this name already exists and is currently connected.%0
  102.  */
  103.  
  104. #define ERROR_INTERFACE_DISABLED                    (ROUTEBASE+16)
  105. /*
  106.  * The interface is in a disabled state.%0
  107.  */
  108.  
  109. #define ERROR_AUTH_PROTOCOL_REJECTED                (ROUTEBASE+17)
  110. /*
  111.  * The authentication protocol was rejected by the remote peer.%0
  112.  */
  113.  
  114. #define ERROR_NO_AUTH_PROTOCOL_AVAILABLE            (ROUTEBASE+18)
  115. /*
  116.  * There are no authentication protocols available for use.%0
  117.  */
  118.  
  119. #define ERROR_PEER_REFUSED_AUTH                     (ROUTEBASE+19)
  120. /*
  121.  * The remote computer refused to be authenticated using the configured authentication protocol. The line has been disconnected.%0
  122.  */
  123.  
  124. #define ERROR_REMOTE_NO_DIALIN_PERMISSION           (ROUTEBASE+20)
  125. /*
  126.  * The remote account does not have Remote Access permission.%0
  127.  */
  128.  
  129. #define ERROR_REMOTE_PASSWD_EXPIRED                 (ROUTEBASE+21)
  130. /*
  131.  * The remote account has expired.%0
  132.  */
  133.  
  134. #define ERROR_REMOTE_ACCT_DISABLED                  (ROUTEBASE+22)
  135. /*
  136.  * The remote account is disabled.%0
  137.  */
  138.  
  139. #define ERROR_REMOTE_RESTRICTED_LOGON_HOURS         (ROUTEBASE+23)
  140. /*
  141.  * The remote account is not permitted to logon at this time of day.%0
  142.  */
  143.  
  144. #define ERROR_REMOTE_AUTHENTICATION_FAILURE         (ROUTEBASE+24)
  145. /*
  146.  * Access was denied to the remote peer  because username and/or password is invalid on the domain.%0
  147.  */
  148.  
  149. #define ERROR_INTERFACE_HAS_NO_DEVICES              (ROUTEBASE+25)
  150. /*
  151.  * There are no routing enabled ports available for use by this demand dial interface.%0
  152.  */
  153.  
  154. #define ERROR_IDLE_DISCONNECTED                     (ROUTEBASE+26)
  155. /*
  156.  * The port has been disconnected due to inactivity.%0
  157.  */
  158.  
  159. #define ERROR_INTERFACE_UNREACHABLE                 (ROUTEBASE+27)
  160. /*
  161.  * The interface is not reachable at this time.%0
  162.  */
  163.  
  164. #define ERROR_SERVICE_IS_PAUSED                     (ROUTEBASE+28)
  165. /*
  166.  * The Demand Dial service is in a paused state.%0
  167.  */
  168.  
  169. #define ERROR_INTERFACE_DISCONNECTED                (ROUTEBASE+29)
  170. /*
  171.  * The interface has been disconnected by the administrator.%0
  172.  */
  173.  
  174. #define ERROR_AUTH_SERVER_TIMEOUT                   (ROUTEBASE+30)
  175. /*
  176.  * The authentication server did not respond to authentication requests in a timely fashion.%0
  177.  */
  178.  
  179. #define ERROR_PORT_LIMIT_REACHED                    (ROUTEBASE+31)
  180. /*
  181.  * The maximum number of ports allowed for use in the multilinked connection has been reached.%0
  182.  */
  183.  
  184. #define ERROR_PPP_SESSION_TIMEOUT                   (ROUTEBASE+32)
  185. /*
  186.  * The connection time limit for the user has been reached.%0
  187.  */
  188.  
  189. #define ERROR_MAX_LAN_INTERFACE_LIMIT               (ROUTEBASE+33)
  190. /*
  191.  * The maximum limit on the number of LAN interfaces supported has been reached.%0
  192.  */
  193.  
  194. #define ERROR_MAX_WAN_INTERFACE_LIMIT               (ROUTEBASE+34)
  195. /*
  196.  * The maximum limit on the number of Demand Dial interfaces supported has been reached.%0
  197.  */
  198.  
  199. #define ERROR_MAX_CLIENT_INTERFACE_LIMIT            (ROUTEBASE+35)
  200. /*
  201.  * The maximum limit on the number of Remote Access clients supported has been reached.%0
  202.  */
  203.  
  204. #define ERROR_BAP_DISCONNECTED                      (ROUTEBASE+36)
  205. /*
  206.  * The port has been disconnected due to the BAP policy.%0
  207.  */
  208.  
  209. #define ERROR_USER_LIMIT                            (ROUTEBASE+37)
  210. /*
  211.  * Because another connection of your type is in use, the incoming connection cannot accept your connection request.%0
  212.  */
  213.  
  214. #define ERROR_NO_RADIUS_SERVERS                     (ROUTEBASE+38)
  215. /*
  216.  * No RADIUS servers were located on the network.%0
  217.  */
  218.  
  219. #define ERROR_INVALID_RADIUS_RESPONSE               (ROUTEBASE+39)
  220. /*
  221.  * An invalid response was received from the RADIUS authentication server.
  222.  * Make sure that the case sensitive secret pasword for the RADIUS server is set correctly.%0
  223.  */
  224.  
  225. #define ERROR_DIALIN_HOURS_RESTRICTION              (ROUTEBASE+40)
  226. /*
  227.  * You do not have permission to connect at this time.%0
  228.  */
  229.  
  230. #define ERROR_ALLOWED_PORT_TYPE_RESTRICTION         (ROUTEBASE+41)
  231. /*
  232.  * You do not have permission to connect using the current device type.%0
  233.  */
  234.  
  235. #define ERROR_AUTH_PROTOCOL_RESTRICTION             (ROUTEBASE+42)
  236. /*
  237.  * You do not have permission to connect using the selected authentication protocol.%0
  238.  */
  239.  
  240. #define ERROR_BAP_REQUIRED                          (ROUTEBASE+43)
  241. /*
  242.  * BAP is required for this user.%0
  243.  */
  244.  
  245. #define ERROR_DIALOUT_HOURS_RESTRICTION             (ROUTEBASE+44)
  246. /*
  247.  * The interface is not allowed to connect at this time.%0
  248.  */
  249.  
  250. #define ERROR_ROUTER_CONFIG_INCOMPATIBLE            (ROUTEBASE+45)
  251. /*
  252.  * The saved router configuration is incompatible with the current router.%0
  253.  */
  254.  
  255. #define WARNING_NO_MD5_MIGRATION                    (ROUTEBASE+46)
  256. /*
  257.  * RemoteAccess has detected older format user accounts that will not be
  258.  * migrated automatically.  To migrate these manually, run XXXX.
  259.  */
  260.  
  261. #define ERROR_PROTOCOL_ALREADY_INSTALLED            (ROUTEBASE+48)
  262. /*
  263.  * The transport is already installed with the router,
  264.  */
  265.  
  266. #define ROUTEBASEEND                                (ROUTEBASE+48)
  267.  
  268. #pragma option pop /*P_O_Pop*/
  269. #endif // _ROUTEERR_H_
  270.