1 /***********************************************************************\
2 *                               raserror.d                              *
3 *                                                                       *
4 *                       Windows API header module                       *
5 *                                                                       *
6 *                 Translated from MinGW Windows headers                 *
7 *                                                                       *
8 *                       Placed into public domain                       *
9 \***********************************************************************/
10 module windows.raserror;
11 nothrow:
12 enum {
13 	SUCCESS = 0,
14 	RASBASE = 600,
15 	PENDING = RASBASE,
16 	ERROR_INVALID_PORT_HANDLE,
17 	ERROR_PORT_ALREADY_OPEN,
18 	ERROR_BUFFER_TOO_SMALL,
19 	ERROR_WRONG_INFO_SPECIFIED,
20 	ERROR_CANNOT_SET_PORT_INFO,
21 	ERROR_PORT_NOT_CONNECTED,
22 	ERROR_EVENT_INVALID,
23 	ERROR_DEVICE_DOES_NOT_EXIST,
24 	ERROR_DEVICETYPE_DOES_NOT_EXIST,
25 	ERROR_BUFFER_INVALID,
26 	ERROR_ROUTE_NOT_AVAILABLE,
27 	ERROR_ROUTE_NOT_ALLOCATED,
28 	ERROR_INVALID_COMPRESSION_SPECIFIED,
29 	ERROR_OUT_OF_BUFFERS,
30 	ERROR_PORT_NOT_FOUND,
31 	ERROR_ASYNC_REQUEST_PENDING,
32 	ERROR_ALREADY_DISCONNECTING,
33 	ERROR_PORT_NOT_OPEN,
34 	ERROR_PORT_DISCONNECTED,
35 	ERROR_NO_ENDPOINTS,
36 	ERROR_CANNOT_OPEN_PHONEBOOK,
37 	ERROR_CANNOT_LOAD_PHONEBOOK,
38 	ERROR_CANNOT_FIND_PHONEBOOK_ENTRY,
39 	ERROR_CANNOT_WRITE_PHONEBOOK,
40 	ERROR_CORRUPT_PHONEBOOK,
41 	ERROR_CANNOT_LOAD_STRING,
42 	ERROR_KEY_NOT_FOUND,
43 	ERROR_DISCONNECTION,
44 	ERROR_REMOTE_DISCONNECTION,
45 	ERROR_HARDWARE_FAILURE,
46 	ERROR_USER_DISCONNECTION,
47 	ERROR_INVALID_SIZE,
48 	ERROR_PORT_NOT_AVAILABLE,
49 	ERROR_CANNOT_PROJECT_CLIENT,
50 	ERROR_UNKNOWN,
51 	ERROR_WRONG_DEVICE_ATTACHED,
52 	ERROR_BAD_STRING,
53 	ERROR_REQUEST_TIMEOUT,
54 	ERROR_CANNOT_GET_LANA,
55 	ERROR_NETBIOS_ERROR,
56 	ERROR_SERVER_OUT_OF_RESOURCES,
57 	ERROR_NAME_EXISTS_ON_NET,
58 	ERROR_SERVER_GENERAL_NET_FAILURE,
59 	WARNING_MSG_ALIAS_NOT_ADDED,
60 	ERROR_AUTH_INTERNAL,
61 	ERROR_RESTRICTED_LOGON_HOURS,
62 	ERROR_ACCT_DISABLED,
63 	ERROR_PASSWD_EXPIRED,
64 	ERROR_NO_DIALIN_PERMISSION,
65 	ERROR_SERVER_NOT_RESPONDING,
66 	ERROR_FROM_DEVICE,
67 	ERROR_UNRECOGNIZED_RESPONSE,
68 	ERROR_MACRO_NOT_FOUND,
69 	ERROR_MACRO_NOT_DEFINED,
70 	ERROR_MESSAGE_MACRO_NOT_FOUND,
71 	ERROR_DEFAULTOFF_MACRO_NOT_FOUND,
72 	ERROR_FILE_COULD_NOT_BE_OPENED,
73 	ERROR_DEVICENAME_TOO_LONG,
74 	ERROR_DEVICENAME_NOT_FOUND,
75 	ERROR_NO_RESPONSES,
76 	ERROR_NO_COMMAND_FOUND,
77 	ERROR_WRONG_KEY_SPECIFIED,
78 	ERROR_UNKNOWN_DEVICE_TYPE,
79 	ERROR_ALLOCATING_MEMORY,
80 	ERROR_PORT_NOT_CONFIGURED,
81 	ERROR_DEVICE_NOT_READY,
82 	ERROR_READING_INI_FILE,
83 	ERROR_NO_CONNECTION,
84 	ERROR_BAD_USAGE_IN_INI_FILE,
85 	ERROR_READING_SECTIONNAME,
86 	ERROR_READING_DEVICETYPE,
87 	ERROR_READING_DEVICENAME,
88 	ERROR_READING_USAGE,
89 	ERROR_READING_MAXCONNECTBPS,
90 	ERROR_READING_MAXCARRIERBPS,
91 	ERROR_LINE_BUSY,
92 	ERROR_VOICE_ANSWER,
93 	ERROR_NO_ANSWER,
94 	ERROR_NO_CARRIER,
95 	ERROR_NO_DIALTONE,
96 	ERROR_IN_COMMAND,
97 	ERROR_WRITING_SECTIONNAME,
98 	ERROR_WRITING_DEVICETYPE,
99 	ERROR_WRITING_DEVICENAME,
100 	ERROR_WRITING_MAXCONNECTBPS,
101 	ERROR_WRITING_MAXCARRIERBPS,
102 	ERROR_WRITING_USAGE,
103 	ERROR_WRITING_DEFAULTOFF,
104 	ERROR_READING_DEFAULTOFF,
105 	ERROR_EMPTY_INI_FILE,
106 	ERROR_AUTHENTICATION_FAILURE,
107 	ERROR_PORT_OR_DEVICE,
108 	ERROR_NOT_BINARY_MACRO,
109 	ERROR_DCB_NOT_FOUND,
110 	ERROR_STATE_MACHINES_NOT_STARTED,
111 	ERROR_STATE_MACHINES_ALREADY_STARTED,
112 	ERROR_PARTIAL_RESPONSE_LOOPING,
113 	ERROR_UNKNOWN_RESPONSE_KEY,
114 	ERROR_RECV_BUF_FULL,
115 	ERROR_CMD_TOO_LONG,
116 	ERROR_UNSUPPORTED_BPS,
117 	ERROR_UNEXPECTED_RESPONSE,
118 	ERROR_INTERACTIVE_MODE,
119 	ERROR_BAD_CALLBACK_NUMBER,
120 	ERROR_INVALID_AUTH_STATE,
121 	ERROR_WRITING_INITBPS,
122 	ERROR_X25_DIAGNOSTIC,
123 	ERROR_ACCT_EXPIRED,
124 	ERROR_CHANGING_PASSWORD,
125 	ERROR_OVERRUN,
126 	ERROR_RASMAN_CANNOT_INITIALIZE,
127 	ERROR_BIPLEX_PORT_NOT_AVAILABLE,
128 	ERROR_NO_ACTIVE_ISDN_LINES,
129 	ERROR_NO_ISDN_CHANNELS_AVAILABLE,
130 	ERROR_TOO_MANY_LINE_ERRORS,
131 	ERROR_IP_CONFIGURATION,
132 	ERROR_NO_IP_ADDRESSES,
133 	ERROR_PPP_TIMEOUT,
134 	ERROR_PPP_REMOTE_TERMINATED,
135 	ERROR_PPP_NO_PROTOCOLS_CONFIGURED,
136 	ERROR_PPP_NO_RESPONSE,
137 	ERROR_PPP_INVALID_PACKET,
138 	ERROR_PHONE_NUMBER_TOO_LONG,
139 	ERROR_IPXCP_NO_DIALOUT_CONFIGURED,
140 	ERROR_IPXCP_NO_DIALIN_CONFIGURED,
141 	ERROR_IPXCP_DIALOUT_ALREADY_ACTIVE,
142 	ERROR_ACCESSING_TCPCFGDLL,
143 	ERROR_NO_IP_RAS_ADAPTER,
144 	ERROR_SLIP_REQUIRES_IP,
145 	ERROR_PROJECTION_NOT_COMPLETE,
146 	ERROR_PROTOCOL_NOT_CONFIGURED,
147 	ERROR_PPP_NOT_CONVERGING,
148 	ERROR_PPP_CP_REJECTED,
149 	ERROR_PPP_LCP_TERMINATED,
150 	ERROR_PPP_REQUIRED_ADDRESS_REJECTED,
151 	ERROR_PPP_NCP_TERMINATED,
152 	ERROR_PPP_LOOPBACK_DETECTED,
153 	ERROR_PPP_NO_ADDRESS_ASSIGNED,
154 	ERROR_CANNOT_USE_LOGON_CREDENTIALS,
155 	ERROR_TAPI_CONFIGURATION,
156 	ERROR_NO_LOCAL_ENCRYPTION,
157 	ERROR_NO_REMOTE_ENCRYPTION,
158 	ERROR_REMOTE_REQUIRES_ENCRYPTION,
159 	ERROR_IPXCP_NET_NUMBER_CONFLICT,
160 	ERROR_INVALID_SMM,
161 	ERROR_SMM_UNINITIALIZED,
162 	ERROR_NO_MAC_FOR_PORT,
163 	ERROR_SMM_TIMEOUT,
164 	ERROR_BAD_PHONE_NUMBER,
165 	ERROR_WRONG_MODULE,
166 	ERROR_INVALID_CALLBACK_NUMBER,
167 	ERROR_SCRIPT_SYNTAX,
168 	ERROR_HANGUP_FAILED,
169 	ERROR_BUNDLE_NOT_FOUND,
170 	ERROR_CANNOT_DO_CUSTOMDIAL,
171 	ERROR_DIAL_ALREADY_IN_PROGRESS,
172 	ERROR_RASAUTO_CANNOT_INITIALIZE,
173 	ERROR_CONNECTION_ALREADY_SHARED,
174 	ERROR_SHARING_CHANGE_FAILED,
175 	ERROR_SHARING_ROUTER_INSTALL,
176 	ERROR_SHARE_CONNECTION_FAILED,
177 	ERROR_SHARING_PRIVATE_INSTALL,
178 	ERROR_CANNOT_SHARE_CONNECTION,
179 	ERROR_NO_SMART_CARD_READER,
180 	ERROR_SHARING_ADDRESS_EXISTS,
181 	ERROR_NO_CERTIFICATE,
182 	ERROR_SHARING_MULTIPLE_ADDRESSES,
183 	ERROR_FAILED_TO_ENCRYPT,
184 	ERROR_BAD_ADDRESS_SPECIFIED,
185 	ERROR_CONNECTION_REJECT,
186 	ERROR_CONGESTION,
187 	ERROR_INCOMPATIBLE,
188 	ERROR_NUMBERCHANGED,
189 	ERROR_TEMPFAILURE,
190 	ERROR_BLOCKED,
191 	ERROR_DONOTDISTURB,
192 	ERROR_OUTOFORDER,
193 	ERROR_UNABLE_TO_AUTHENTICATE_SERVER,
194 	ERROR_SMART_CARD_REQUIRED,
195 	ERROR_INVALID_FUNCTION_FOR_ENTRY,
196 	ERROR_CERT_FOR_ENCRYPTION_NOT_FOUND,
197 	ERROR_SHARING_RRAS_CONFLICT,
198 	ERROR_SHARING_NO_PRIVATE_LAN,
199 	ERROR_NO_DIFF_USER_AT_LOGON,
200 	ERROR_NO_REG_CERT_AT_LOGON,
201 	ERROR_OAKLEY_NO_CERT,
202 	ERROR_OAKLEY_AUTH_FAIL,
203 	ERROR_OAKLEY_ATTRIB_FAIL,
204 	ERROR_OAKLEY_GENERAL_PROCESSING,
205 	ERROR_OAKLEY_NO_PEER_CERT,
206 	ERROR_OAKLEY_NO_POLICY,
207 	ERROR_OAKLEY_TIMED_OUT,
208 	ERROR_OAKLEY_ERROR,
209 	ERROR_UNKNOWN_FRAMED_PROTOCOL,
210 	ERROR_WRONG_TUNNEL_TYPE,
211 	ERROR_UNKNOWN_SERVICE_TYPE,
212 	ERROR_CONNECTING_DEVICE_NOT_FOUND,
213 	ERROR_NO_EAPTLS_CERTIFICATE, // = RASBASE+198
214 	RASBASEEND = ERROR_NO_EAPTLS_CERTIFICATE
215 }