raserror.pp 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. {
  2. This file is part of the Free Pascal run time library.
  3. Copyright (c) 2008 Free Pascal development team.
  4. See the file COPYING.FPC, included in this distribution,
  5. for details about the copyright.
  6. This program is distributed in the hope that it will be useful,
  7. but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  9. ********************************************************************** }
  10. //
  11. // Module Name:
  12. //
  13. // raserror.h
  14. //
  15. // Abstract:
  16. //
  17. // Remote Access external API
  18. // RAS specific error codes
  19. //
  20. //
  21. // Microsoft Windows Mobile 6.0 for PocketPC SDK.
  22. //
  23. {$IFNDEF FPC_DOTTEDUNITS}
  24. unit RASError;
  25. {$ENDIF FPC_DOTTEDUNITS}
  26. interface
  27. const
  28. RASBASE = 600;
  29. SUCCESS = 0;
  30. PENDING = RASBASE + 0;
  31. ERROR_INVALID_PORT_HANDLE = RASBASE + 1;
  32. ERROR_PORT_ALREADY_OPEN = RASBASE + 2;
  33. ERROR_BUFFER_TOO_SMALL = RASBASE + 3;
  34. ERROR_WRONG_INFO_SPECIFIED = RASBASE + 4;
  35. ERROR_CANNOT_SET_PORT_INFO = RASBASE + 5;
  36. ERROR_PORT_NOT_CONNECTED = RASBASE + 6;
  37. ERROR_EVENT_INVALID = RASBASE + 7;
  38. ERROR_DEVICE_DOES_NOT_EXIST = RASBASE + 8;
  39. ERROR_DEVICETYPE_DOES_NOT_EXIST = RASBASE + 9;
  40. ERROR_BUFFER_INVALID = RASBASE + 10;
  41. ERROR_ROUTE_NOT_AVAILABLE = RASBASE + 11;
  42. ERROR_ROUTE_NOT_ALLOCATED = RASBASE + 12;
  43. ERROR_INVALID_COMPRESSION_SPECIFIED = RASBASE + 13;
  44. ERROR_OUT_OF_BUFFERS = RASBASE + 14;
  45. ERROR_PORT_NOT_FOUND = RASBASE + 15;
  46. ERROR_ASYNC_REQUEST_PENDING = RASBASE + 16;
  47. ERROR_ALREADY_DISCONNECTING = RASBASE + 17;
  48. ERROR_PORT_NOT_OPEN = RASBASE + 18;
  49. ERROR_PORT_DISCONNECTED = RASBASE + 19;
  50. ERROR_NO_ENDPOINTS = RASBASE + 20;
  51. ERROR_CANNOT_OPEN_PHONEBOOK = RASBASE + 21;
  52. ERROR_CANNOT_LOAD_PHONEBOOK = RASBASE + 22;
  53. ERROR_CANNOT_FIND_PHONEBOOK_ENTRY = RASBASE + 23;
  54. ERROR_CANNOT_WRITE_PHONEBOOK = RASBASE + 24;
  55. ERROR_CORRUPT_PHONEBOOK = RASBASE + 25;
  56. ERROR_CANNOT_LOAD_STRING = RASBASE + 26;
  57. ERROR_KEY_NOT_FOUND = RASBASE + 27;
  58. ERROR_DISCONNECTION = RASBASE + 28;
  59. ERROR_REMOTE_DISCONNECTION = RASBASE + 29;
  60. ERROR_HARDWARE_FAILURE = RASBASE + 30;
  61. ERROR_USER_DISCONNECTION = RASBASE + 31;
  62. ERROR_INVALID_SIZE = RASBASE + 32;
  63. ERROR_PORT_NOT_AVAILABLE = RASBASE + 33;
  64. ERROR_CANNOT_PROJECT_CLIENT = RASBASE + 34;
  65. ERROR_UNKNOWN = RASBASE + 35;
  66. ERROR_WRONG_DEVICE_ATTACHED = RASBASE + 36;
  67. ERROR_BAD_STRING = RASBASE + 37;
  68. ERROR_REQUEST_TIMEOUT = RASBASE + 38;
  69. ERROR_CANNOT_GET_LANA = RASBASE + 39;
  70. ERROR_NETBIOS_ERROR = RASBASE + 40;
  71. ERROR_SERVER_OUT_OF_RESOURCES = RASBASE + 41;
  72. ERROR_NAME_EXISTS_ON_NET = RASBASE + 42;
  73. ERROR_SERVER_GENERAL_NET_FAILURE = RASBASE + 43;
  74. WARNING_MSG_ALIAS_NOT_ADDED = RASBASE + 44;
  75. ERROR_AUTH_INTERNAL = RASBASE + 45;
  76. ERROR_RESTRICTED_LOGON_HOURS = RASBASE + 46;
  77. ERROR_ACCT_DISABLED = RASBASE + 47;
  78. ERROR_PASSWD_EXPIRED = RASBASE + 48;
  79. ERROR_NO_DIALIN_PERMISSION = RASBASE + 49;
  80. ERROR_SERVER_NOT_RESPONDING = RASBASE + 50;
  81. ERROR_FROM_DEVICE = RASBASE + 51;
  82. ERROR_UNRECOGNIZED_RESPONSE = RASBASE + 52;
  83. ERROR_MACRO_NOT_FOUND = RASBASE + 53;
  84. ERROR_MACRO_NOT_DEFINED = RASBASE + 54;
  85. ERROR_MESSAGE_MACRO_NOT_FOUND = RASBASE + 55;
  86. ERROR_DEFAULTOFF_MACRO_NOT_FOUND = RASBASE + 56;
  87. ERROR_FILE_COULD_NOT_BE_OPENED = RASBASE + 57;
  88. ERROR_DEVICENAME_TOO_LONG = RASBASE + 58;
  89. ERROR_DEVICENAME_NOT_FOUND = RASBASE + 59;
  90. ERROR_NO_RESPONSES = RASBASE + 60;
  91. ERROR_NO_COMMAND_FOUND = RASBASE + 61;
  92. ERROR_WRONG_KEY_SPECIFIED = RASBASE + 62;
  93. ERROR_UNKNOWN_DEVICE_TYPE = RASBASE + 63;
  94. ERROR_ALLOCATING_MEMORY = RASBASE + 64;
  95. ERROR_PORT_NOT_CONFIGURED = RASBASE + 65;
  96. ERROR_DEVICE_NOT_READY = RASBASE + 66;
  97. ERROR_READING_INI_FILE = RASBASE + 67;
  98. ERROR_NO_CONNECTION = RASBASE + 68;
  99. ERROR_BAD_USAGE_IN_INI_FILE = RASBASE + 69;
  100. ERROR_READING_SECTIONNAME = RASBASE + 70;
  101. ERROR_READING_DEVICETYPE = RASBASE + 71;
  102. ERROR_READING_DEVICENAME = RASBASE + 72;
  103. ERROR_READING_USAGE = RASBASE + 73;
  104. ERROR_READING_MAXCONNECTBPS = RASBASE + 74;
  105. ERROR_READING_MAXCARRIERBPS = RASBASE + 75;
  106. ERROR_LINE_BUSY = RASBASE + 76;
  107. ERROR_VOICE_ANSWER = RASBASE + 77;
  108. ERROR_NO_ANSWER = RASBASE + 78;
  109. ERROR_NO_CARRIER = RASBASE + 79;
  110. ERROR_NO_DIALTONE = RASBASE + 80;
  111. ERROR_IN_COMMAND = RASBASE + 81;
  112. ERROR_WRITING_SECTIONNAME = RASBASE + 82;
  113. ERROR_WRITING_DEVICETYPE = RASBASE + 83;
  114. ERROR_WRITING_DEVICENAME = RASBASE + 84;
  115. ERROR_WRITING_MAXCONNECTBPS = RASBASE + 85;
  116. ERROR_WRITING_MAXCARRIERBPS = RASBASE + 86;
  117. ERROR_WRITING_USAGE = RASBASE + 87;
  118. ERROR_WRITING_DEFAULTOFF = RASBASE + 88;
  119. ERROR_READING_DEFAULTOFF = RASBASE + 89;
  120. ERROR_EMPTY_INI_FILE = RASBASE + 90;
  121. ERROR_AUTHENTICATION_FAILURE = RASBASE + 91;
  122. ERROR_PORT_OR_DEVICE = RASBASE + 92;
  123. ERROR_NOT_BINARY_MACRO = RASBASE + 93;
  124. ERROR_DCB_NOT_FOUND = RASBASE + 94;
  125. ERROR_STATE_MACHINES_NOT_STARTED = RASBASE + 95;
  126. ERROR_STATE_MACHINES_ALREADY_STARTED = RASBASE + 96;
  127. ERROR_PARTIAL_RESPONSE_LOOPING = RASBASE + 97;
  128. ERROR_UNKNOWN_RESPONSE_KEY = RASBASE + 98;
  129. ERROR_RECV_BUF_FULL = RASBASE + 99;
  130. ERROR_CMD_TOO_LONG = RASBASE + 100;
  131. ERROR_UNSUPPORTED_BPS = RASBASE + 101;
  132. ERROR_UNEXPECTED_RESPONSE = RASBASE + 102;
  133. ERROR_INTERACTIVE_MODE = RASBASE + 103;
  134. ERROR_BAD_CALLBACK_NUMBER = RASBASE + 104;
  135. ERROR_INVALID_AUTH_STATE = RASBASE + 105;
  136. ERROR_WRITING_INITBPS = RASBASE + 106;
  137. ERROR_X25_DIAGNOSTIC = RASBASE + 107;
  138. ERROR_ACCT_EXPIRED = RASBASE + 108;
  139. ERROR_CHANGING_PASSWORD = RASBASE + 109;
  140. ERROR_OVERRUN = RASBASE + 110;
  141. ERROR_RASMAN_CANNOT_INITIALIZE = RASBASE + 111;
  142. ERROR_BIPLEX_PORT_NOT_AVAILABLE = RASBASE + 112;
  143. ERROR_NO_ACTIVE_ISDN_LINES = RASBASE + 113;
  144. ERROR_NO_ISDN_CHANNELS_AVAILABLE = RASBASE + 114;
  145. ERROR_TOO_MANY_LINE_ERRORS = RASBASE + 115;
  146. ERROR_IP_CONFIGURATION = RASBASE + 116;
  147. ERROR_NO_IP_ADDRESSES = RASBASE + 117;
  148. ERROR_PPP_TIMEOUT = RASBASE + 118;
  149. ERROR_PPP_REMOTE_TERMINATED = RASBASE + 119;
  150. ERROR_PPP_NO_PROTOCOLS_CONFIGURED = RASBASE + 120;
  151. ERROR_PPP_NO_RESPONSE = RASBASE + 121;
  152. ERROR_PPP_INVALID_PACKET = RASBASE + 122;
  153. ERROR_PHONE_NUMBER_TOO_LONG = RASBASE + 123;
  154. ERROR_IPXCP_NO_DIALOUT_CONFIGURED = RASBASE + 124;
  155. ERROR_IPXCP_NO_DIALIN_CONFIGURED = RASBASE + 125;
  156. ERROR_IPXCP_DIALOUT_ALREADY_ACTIVE = RASBASE + 126;
  157. ERROR_ACCESSING_TCPCFGDLL = RASBASE + 127;
  158. ERROR_NO_IP_RAS_ADAPTER = RASBASE + 128;
  159. ERROR_SLIP_REQUIRES_IP = RASBASE + 129;
  160. ERROR_PROJECTION_NOT_COMPLETE = RASBASE + 130;
  161. ERROR_PROTOCOL_NOT_CONFIGURED = RASBASE + 131;
  162. ERROR_PPP_NOT_CONVERGING = RASBASE + 132;
  163. ERROR_PPP_CP_REJECTED = RASBASE + 133;
  164. ERROR_PPP_LCP_TERMINATED = RASBASE + 134;
  165. ERROR_PPP_REQUIRED_ADDRESS_REJECTED = RASBASE + 135;
  166. ERROR_PPP_NCP_TERMINATED = RASBASE + 136;
  167. ERROR_PPP_LOOPBACK_DETECTED = RASBASE + 137;
  168. ERROR_PPP_NO_ADDRESS_ASSIGNED = RASBASE + 138;
  169. ERROR_CANNOT_USE_LOGON_CREDENTIALS = RASBASE + 139;
  170. ERROR_TAPI_CONFIGURATION = RASBASE + 140;
  171. ERROR_NO_LOCAL_ENCRYPTION = RASBASE + 141;
  172. ERROR_NO_REMOTE_ENCRYPTION = RASBASE + 142;
  173. ERROR_REMOTE_REQUIRES_ENCRYPTION = RASBASE + 143;
  174. ERROR_IPXCP_NET_NUMBER_CONFLICT = RASBASE + 144;
  175. ERROR_INVALID_SMM = RASBASE + 145;
  176. ERROR_SMM_UNINITIALIZED = RASBASE + 146;
  177. ERROR_NO_MAC_FOR_PORT = RASBASE + 147;
  178. ERROR_SMM_TIMEOUT = RASBASE + 148;
  179. ERROR_BAD_PHONE_NUMBER = RASBASE + 149;
  180. ERROR_WRONG_MODULE = RASBASE + 150;
  181. ERROR_PPP_MAC = RASBASE + 151;
  182. ERROR_PPP_LCP = RASBASE + 152;
  183. ERROR_PPP_AUTH = RASBASE + 153;
  184. ERROR_PPP_NCP = RASBASE + 154;
  185. ERROR_POWER_OFF = RASBASE + 155;
  186. ERROR_POWER_OFF_CD = RASBASE + 156;
  187. ERROR_DIAL_ALREADY_IN_PROGRESS = RASBASE + 157;
  188. ERROR_RASAUTO_CANNOT_INITIALIZE = RASBASE + 158;
  189. ERROR_UNABLE_TO_AUTHENTICATE_SERVER = RASBASE + 178;
  190. RASBASEEND = RASBASE + 158;
  191. ROUTEBASE = 900;
  192. ERROR_IDLE_DISCONNECTED = ROUTEBASE + 26;
  193. // The port has been disconnected due to inactivity.%0
  194. implementation
  195. end.