rasapi32: Update spec file.
[wine/zf.git] / include / wininet.h
blobce5aebdca8c86da065c81abeb68cebb4b17b67ea
1 /*
2 * Copyright (C) 2000 Ulrich Czekalla
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifndef _WINE_WININET_H_
20 #define _WINE_WININET_H_
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
26 #define INTERNETAPI
27 #define BOOLAPI INTERNETAPI BOOL WINAPI
29 typedef LPVOID HINTERNET;
30 typedef HINTERNET * LPHINTERNET;
32 typedef WORD INTERNET_PORT;
33 typedef INTERNET_PORT * LPINTERNET_PORT;
36 #define INTERNET_INVALID_PORT_NUMBER 0
38 #define INTERNET_DEFAULT_FTP_PORT 21
39 #define INTERNET_DEFAULT_GOPHER_PORT 70
40 #define INTERNET_DEFAULT_HTTP_PORT 80
41 #define INTERNET_DEFAULT_HTTPS_PORT 443
42 #define INTERNET_DEFAULT_SOCKS_PORT 1080
44 #define INTERNET_MAX_HOST_NAME_LENGTH 256
45 #define INTERNET_MAX_USER_NAME_LENGTH 128
46 #define INTERNET_MAX_PASSWORD_LENGTH 128
47 #define INTERNET_MAX_PORT_NUMBER_LENGTH 5
48 #define INTERNET_MAX_PORT_NUMBER_VALUE 65535
49 #define INTERNET_MAX_PATH_LENGTH 2048
50 #define INTERNET_MAX_SCHEME_LENGTH 32
51 #define INTERNET_MAX_URL_LENGTH (INTERNET_MAX_SCHEME_LENGTH + sizeof("://")+ INTERNET_MAX_PATH_LENGTH)
52 #define INTERNET_KEEP_ALIVE_UNKNOWN ((DWORD)-1)
53 #define INTERNET_KEEP_ALIVE_ENABLED 1
54 #define INTERNET_KEEP_ALIVE_DISABLED 0
55 #define INTERNET_REQFLAG_FROM_CACHE 0x00000001
56 #define INTERNET_REQFLAG_ASYNC 0x00000002
57 #define INTERNET_REQFLAG_VIA_PROXY 0x00000004
58 #define INTERNET_REQFLAG_NO_HEADERS 0x00000008
59 #define INTERNET_REQFLAG_PASSIVE 0x00000010
60 #define INTERNET_REQFLAG_CACHE_WRITE_DISABLED 0x00000040
61 #define INTERNET_FLAG_RELOAD 0x80000000
62 #define INTERNET_FLAG_RAW_DATA 0x40000000
63 #define INTERNET_FLAG_EXISTING_CONNECT 0x20000000
64 #define INTERNET_FLAG_ASYNC 0x10000000
65 #define INTERNET_FLAG_PASSIVE 0x08000000
66 #define INTERNET_FLAG_NO_CACHE_WRITE 0x04000000
67 #define INTERNET_FLAG_DONT_CACHE INTERNET_FLAG_NO_CACHE_WRITE
68 #define INTERNET_FLAG_MAKE_PERSISTENT 0x02000000
69 #define INTERNET_FLAG_FROM_CACHE 0x01000000
70 #define INTERNET_FLAG_OFFLINE INTERNET_FLAG_FROM_CACHE
71 #define INTERNET_FLAG_SECURE 0x00800000
72 #define INTERNET_FLAG_KEEP_CONNECTION 0x00400000
73 #define INTERNET_FLAG_NO_AUTO_REDIRECT 0x00200000
74 #define INTERNET_FLAG_READ_PREFETCH 0x00100000
75 #define INTERNET_FLAG_NO_COOKIES 0x00080000
76 #define INTERNET_FLAG_NO_AUTH 0x00040000
77 #define INTERNET_FLAG_CACHE_IF_NET_FAIL 0x00010000
78 #define INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTP 0x00008000
79 #define INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTPS 0x00004000
80 #define INTERNET_FLAG_IGNORE_CERT_DATE_INVALID 0x00002000
81 #define INTERNET_FLAG_IGNORE_CERT_CN_INVALID 0x00001000
82 #define INTERNET_FLAG_RESYNCHRONIZE 0x00000800
83 #define INTERNET_FLAG_HYPERLINK 0x00000400
84 #define INTERNET_FLAG_NO_UI 0x00000200
85 #define INTERNET_FLAG_PRAGMA_NOCACHE 0x00000100
86 #define INTERNET_FLAG_CACHE_ASYNC 0x00000080
87 #define INTERNET_FLAG_FORMS_SUBMIT 0x00000040
88 #define INTERNET_FLAG_NEED_FILE 0x00000010
89 #define INTERNET_FLAG_MUST_CACHE_REQUEST INTERNET_FLAG_NEED_FILE
90 #define INTERNET_FLAG_TRANSFER_ASCII FTP_TRANSFER_TYPE_ASCII
91 #define INTERNET_FLAG_TRANSFER_BINARY FTP_TRANSFER_TYPE_BINARY
92 #define SECURITY_INTERNET_MASK (INTERNET_FLAG_IGNORE_CERT_CN_INVALID|\
93 INTERNET_FLAG_IGNORE_CERT_DATE_INVALID|\
94 INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTPS|\
95 INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTP)
97 #define INTERNET_FLAGS_MASK (INTERNET_FLAG_RELOAD \
98 | INTERNET_FLAG_RAW_DATA \
99 | INTERNET_FLAG_EXISTING_CONNECT \
100 | INTERNET_FLAG_ASYNC \
101 | INTERNET_FLAG_PASSIVE \
102 | INTERNET_FLAG_NO_CACHE_WRITE \
103 | INTERNET_FLAG_MAKE_PERSISTENT \
104 | INTERNET_FLAG_FROM_CACHE \
105 | INTERNET_FLAG_SECURE \
106 | INTERNET_FLAG_KEEP_CONNECTION \
107 | INTERNET_FLAG_NO_AUTO_REDIRECT \
108 | INTERNET_FLAG_READ_PREFETCH \
109 | INTERNET_FLAG_NO_COOKIES \
110 | INTERNET_FLAG_NO_AUTH \
111 | INTERNET_FLAG_CACHE_IF_NET_FAIL \
112 | SECURITY_INTERNET_MASK \
113 | INTERNET_FLAG_RESYNCHRONIZE \
114 | INTERNET_FLAG_HYPERLINK \
115 | INTERNET_FLAG_NO_UI \
116 | INTERNET_FLAG_PRAGMA_NOCACHE \
117 | INTERNET_FLAG_CACHE_ASYNC \
118 | INTERNET_FLAG_FORMS_SUBMIT \
119 | INTERNET_FLAG_NEED_FILE \
120 | INTERNET_FLAG_TRANSFER_BINARY \
121 | INTERNET_FLAG_TRANSFER_ASCII \
124 #define INTERNET_ERROR_MASK_INSERT_CDROM 0x1
125 #define INTERNET_ERROR_MASK_COMBINED_SEC_CERT 0x2
126 #define INTERNET_ERROR_MASK_NEED_MSN_SSPI_PKG 0x4
127 #define INTERNET_ERROR_MASK_LOGIN_FAILURE_DISPLAY_ENTITY_BODY 0x8
129 #define INTERNET_OPTIONS_MASK (~INTERNET_FLAGS_MASK)
130 #define WININET_API_FLAG_ASYNC 0x00000001
131 #define WININET_API_FLAG_SYNC 0x00000004
132 #define WININET_API_FLAG_USE_CONTEXT 0x00000008
133 #define INTERNET_NO_CALLBACK 0
135 typedef enum {
136 INTERNET_SCHEME_PARTIAL = -2,
137 INTERNET_SCHEME_UNKNOWN = -1,
138 INTERNET_SCHEME_DEFAULT = 0,
139 INTERNET_SCHEME_FTP, /* yes, this contradicts winhttp.h */
140 INTERNET_SCHEME_GOPHER,
141 INTERNET_SCHEME_HTTP, /* yes, this contradicts winhttp.h */
142 INTERNET_SCHEME_HTTPS, /* yes, this contradicts winhttp.h */
143 INTERNET_SCHEME_FILE,
144 INTERNET_SCHEME_NEWS,
145 INTERNET_SCHEME_MAILTO,
146 INTERNET_SCHEME_SOCKS, /* yes, this contradicts winhttp.h */
147 INTERNET_SCHEME_JAVASCRIPT,
148 INTERNET_SCHEME_VBSCRIPT,
149 INTERNET_SCHEME_RES,
150 INTERNET_SCHEME_FIRST = INTERNET_SCHEME_FTP,
151 INTERNET_SCHEME_LAST = INTERNET_SCHEME_RES
152 } INTERNET_SCHEME,* LPINTERNET_SCHEME;
154 typedef struct {
155 DWORD_PTR dwResult;
156 DWORD dwError;
157 } INTERNET_ASYNC_RESULT,* LPINTERNET_ASYNC_RESULT;
159 typedef struct {
160 DWORD dwAccessType;
161 LPCSTR lpszProxy;
162 LPCSTR lpszProxyBypass;
163 } INTERNET_PROXY_INFOA,* LPINTERNET_PROXY_INFOA;
165 typedef struct {
166 DWORD dwAccessType;
167 LPCWSTR lpszProxy;
168 LPCWSTR lpszProxyBypass;
169 } INTERNET_PROXY_INFOW,* LPINTERNET_PROXY_INFOW;
172 DECL_WINELIB_TYPE_AW(INTERNET_PROXY_INFO)
173 DECL_WINELIB_TYPE_AW(LPINTERNET_PROXY_INFO)
175 typedef struct {
176 DWORD dwMajorVersion;
177 DWORD dwMinorVersion;
178 } INTERNET_VERSION_INFO,* LPINTERNET_VERSION_INFO;
180 typedef struct {
181 DWORD dwMajorVersion;
182 DWORD dwMinorVersion;
183 } HTTP_VERSION_INFO,* LPHTTP_VERSION_INFO;
185 typedef struct {
186 DWORD dwConnectedState;
187 DWORD dwFlags;
188 } INTERNET_CONNECTED_INFO,* LPINTERNET_CONNECTED_INFO;
190 #define ISO_FORCE_DISCONNECTED 0x00000001
192 typedef struct {
193 DWORD dwStructSize;
194 LPSTR lpszScheme;
195 DWORD dwSchemeLength;
196 INTERNET_SCHEME nScheme;
197 LPSTR lpszHostName;
198 DWORD dwHostNameLength;
199 INTERNET_PORT nPort;
200 LPSTR lpszUserName;
201 DWORD dwUserNameLength;
202 LPSTR lpszPassword;
203 DWORD dwPasswordLength;
204 LPSTR lpszUrlPath;
205 DWORD dwUrlPathLength;
206 LPSTR lpszExtraInfo;
207 DWORD dwExtraInfoLength;
208 } URL_COMPONENTSA,* LPURL_COMPONENTSA;
210 typedef struct {
211 DWORD dwStructSize;
212 LPWSTR lpszScheme;
213 DWORD dwSchemeLength;
214 INTERNET_SCHEME nScheme;
215 LPWSTR lpszHostName;
216 DWORD dwHostNameLength;
217 INTERNET_PORT nPort;
218 LPWSTR lpszUserName;
219 DWORD dwUserNameLength;
220 LPWSTR lpszPassword;
221 DWORD dwPasswordLength;
222 LPWSTR lpszUrlPath;
223 DWORD dwUrlPathLength;
224 LPWSTR lpszExtraInfo;
225 DWORD dwExtraInfoLength;
226 } URL_COMPONENTSW,* LPURL_COMPONENTSW;
228 DECL_WINELIB_TYPE_AW(URL_COMPONENTS)
229 DECL_WINELIB_TYPE_AW(LPURL_COMPONENTS)
231 typedef struct {
232 FILETIME ftExpiry;
233 FILETIME ftStart;
234 LPSTR lpszSubjectInfo;
235 LPSTR lpszIssuerInfo;
236 LPSTR lpszProtocolName;
237 LPSTR lpszSignatureAlgName;
238 LPSTR lpszEncryptionAlgName;
239 DWORD dwKeySize;
241 } INTERNET_CERTIFICATE_INFOA,* LPINTERNET_CERTIFICATE_INFOA;
243 typedef struct {
244 FILETIME ftExpiry;
245 FILETIME ftStart;
246 LPWSTR lpszSubjectInfo;
247 LPWSTR lpszIssuerInfo;
248 LPWSTR lpszProtocolName;
249 LPWSTR lpszSignatureAlgName;
250 LPWSTR lpszEncryptionAlgName;
251 DWORD dwKeySize;
253 } INTERNET_CERTIFICATE_INFOW,* LPINTERNET_CERTIFICATE_INFOW;
255 DECL_WINELIB_TYPE_AW(INTERNET_CERTIFICATE_INFO)
256 DECL_WINELIB_TYPE_AW(LPINTERNET_CERTIFICATE_INFO)
258 typedef struct _INTERNET_BUFFERSA {
259 DWORD dwStructSize;
260 struct _INTERNET_BUFFERSA * Next;
261 LPCSTR lpcszHeader;
262 DWORD dwHeadersLength;
263 DWORD dwHeadersTotal;
264 LPVOID lpvBuffer;
265 DWORD dwBufferLength;
266 DWORD dwBufferTotal;
267 DWORD dwOffsetLow;
268 DWORD dwOffsetHigh;
269 } INTERNET_BUFFERSA,* LPINTERNET_BUFFERSA;
271 typedef struct _INTERNET_BUFFERSW {
272 DWORD dwStructSize;
273 struct _INTERNET_BUFFERSW * Next;
274 LPCWSTR lpcszHeader;
275 DWORD dwHeadersLength;
276 DWORD dwHeadersTotal;
277 LPVOID lpvBuffer;
278 DWORD dwBufferLength;
279 DWORD dwBufferTotal;
280 DWORD dwOffsetLow;
281 DWORD dwOffsetHigh;
282 } INTERNET_BUFFERSW,* LPINTERNET_BUFFERSW;
284 DECL_WINELIB_TYPE_AW(INTERNET_BUFFERS)
285 DECL_WINELIB_TYPE_AW(LPINTERNET_BUFFERS)
287 #define GROUP_OWNER_STORAGE_SIZE 4
288 #define GROUPNAME_MAX_LENGTH 120
290 typedef struct _INTERNET_CACHE_GROUP_INFOA {
291 DWORD dwGroupSize;
292 DWORD dwGroupFlags;
293 DWORD dwGroupType;
294 DWORD dwDiskUsage;
295 DWORD dwDiskQuota;
296 DWORD dwOwnerStorage[GROUP_OWNER_STORAGE_SIZE];
297 CHAR szGroupName[GROUPNAME_MAX_LENGTH];
298 } INTERNET_CACHE_GROUP_INFOA, * LPINTERNET_CACHE_GROUP_INFOA;
300 typedef struct _INTERNET_CACHE_GROUP_INFOW {
301 DWORD dwGroupSize;
302 DWORD dwGroupFlags;
303 DWORD dwGroupType;
304 DWORD dwDiskUsage;
305 DWORD dwDiskQuota;
306 DWORD dwOwnerStorage[GROUP_OWNER_STORAGE_SIZE];
307 WCHAR szGroupName[GROUPNAME_MAX_LENGTH];
308 } INTERNET_CACHE_GROUP_INFOW, *LPINTERNET_CACHE_GROUP_INFOW;
310 DECL_WINELIB_TYPE_AW(INTERNET_CACHE_GROUP_INFO)
311 DECL_WINELIB_TYPE_AW(LPINTERNET_CACHE_GROUP_INFO)
313 typedef struct _INTERNET_PER_CONN_OPTIONA {
314 DWORD dwOption;
315 union {
316 DWORD dwValue;
317 LPSTR pszValue;
318 FILETIME ftValue;
319 } Value;
320 } INTERNET_PER_CONN_OPTIONA, *LPINTERNET_PER_CONN_OPTIONA;
322 typedef struct _INTERNET_PER_CONN_OPTIONW {
323 DWORD dwOption;
324 union {
325 DWORD dwValue;
326 LPWSTR pszValue;
327 FILETIME ftValue;
328 } Value;
329 } INTERNET_PER_CONN_OPTIONW, *LPINTERNET_PER_CONN_OPTIONW;
331 DECL_WINELIB_TYPE_AW(INTERNET_PER_CONN_OPTION)
332 DECL_WINELIB_TYPE_AW(LPINTERNET_PER_CONN_OPTION)
334 #define INTERNET_PER_CONN_FLAGS 1
335 #define INTERNET_PER_CONN_PROXY_SERVER 2
336 #define INTERNET_PER_CONN_PROXY_BYPASS 3
337 #define INTERNET_PER_CONN_AUTOCONFIG_URL 4
338 #define INTERNET_PER_CONN_AUTODISCOVERY_FLAGS 5
339 #define INTERNET_PER_CONN_AUTOCONFIG_SECONDARY_URL 6
340 #define INTERNET_PER_CONN_AUTOCONFIG_RELOAD_DELAY_MINS 7
341 #define INTERNET_PER_CONN_AUTOCONFIG_LAST_DETECT_TIME 8
342 #define INTERNET_PER_CONN_AUTOCONFIG_LAST_DETECT_URL 9
344 /* Values for INTERNET_PER_CONN_FLAGS */
345 #define PROXY_TYPE_DIRECT 0x00000001
346 #define PROXY_TYPE_PROXY 0x00000002
347 #define PROXY_TYPE_AUTO_PROXY_URL 0x00000004
348 #define PROXY_TYPE_AUTO_DETECT 0x00000008
349 /* Values for INTERNET_PER_CONN_AUTODISCOVERY_FLAGS */
350 #define AUTO_PROXY_FLAG_USER_SET 0x00000001
351 #define AUTO_PROXY_FLAG_ALWAYS_DETECT 0x00000002
352 #define AUTO_PROXY_FLAG_DETECTION_RUN 0x00000004
353 #define AUTO_PROXY_FLAG_MIGRATED 0x00000008
354 #define AUTO_PROXY_FLAG_DONT_CACHE_PROXY_RESULT 0x00000010
355 #define AUTO_PROXY_FLAG_CACHE_INIT_RUN 0x00000020
356 #define AUTO_PROXY_FLAG_DETECTION_SUSPECT 0x00000040
358 typedef struct _INTERNET_PER_CONN_OPTION_LISTA {
359 DWORD dwSize;
360 LPSTR pszConnection;
361 DWORD dwOptionCount;
362 DWORD dwOptionError;
363 LPINTERNET_PER_CONN_OPTIONA pOptions;
364 } INTERNET_PER_CONN_OPTION_LISTA, *LPINTERNET_PER_CONN_OPTION_LISTA;
366 typedef struct _INTERNET_PER_CONN_OPTION_LISTW {
367 DWORD dwSize;
368 LPWSTR pszConnection;
369 DWORD dwOptionCount;
370 DWORD dwOptionError;
371 LPINTERNET_PER_CONN_OPTIONW pOptions;
372 } INTERNET_PER_CONN_OPTION_LISTW, *LPINTERNET_PER_CONN_OPTION_LISTW;
374 DECL_WINELIB_TYPE_AW(INTERNET_PER_CONN_OPTION_LIST)
375 DECL_WINELIB_TYPE_AW(LPINTERNET_PER_CONN_OPTION_LIST)
377 typedef struct _INTERNET_DIAGNOSTIC_SOCKET_INFO
379 DWORD_PTR Socket;
380 DWORD SourcePort;
381 DWORD DestPort;
382 DWORD Flags;
383 } INTERNET_DIAGNOSTIC_SOCKET_INFO, *LPINTERNET_DIAGNOSTIC_SOCKET_INFO;
385 #define IDSI_FLAG_KEEP_ALIVE 0x00000001
386 #define IDSI_FLAG_SECURE 0x00000002
387 #define IDSI_FLAG_PROXY 0x00000004
388 #define IDSI_FLAG_TUNNEL 0x00000008
390 BOOLAPI InternetTimeFromSystemTimeA(const SYSTEMTIME *,DWORD ,LPSTR ,DWORD);
391 BOOLAPI InternetTimeFromSystemTimeW(const SYSTEMTIME *,DWORD ,LPWSTR ,DWORD);
392 #define InternetTimeFromSystemTime WINELIB_NAME_AW(InternetTimeFromSystemTime)
394 #define INTERNET_RFC1123_FORMAT 0
395 #define INTERNET_RFC1123_BUFSIZE 30
397 BOOLAPI InternetTimeToSystemTimeA(LPCSTR ,SYSTEMTIME *,DWORD);
398 BOOLAPI InternetTimeToSystemTimeW(LPCWSTR ,SYSTEMTIME *,DWORD);
399 #define InternetTimeToSystemTime WINELIB_NAME_AW(InternetTimeToSystemTime)
401 BOOLAPI InternetCrackUrlA(LPCSTR ,DWORD ,DWORD ,LPURL_COMPONENTSA);
402 BOOLAPI InternetCrackUrlW(LPCWSTR ,DWORD ,DWORD ,LPURL_COMPONENTSW);
403 #define InternetCrackUrl WINELIB_NAME_AW(InternetCrackUrl)
405 BOOLAPI InternetCreateUrlA(LPURL_COMPONENTSA ,DWORD ,LPSTR ,LPDWORD);
406 BOOLAPI InternetCreateUrlW(LPURL_COMPONENTSW ,DWORD ,LPWSTR ,LPDWORD);
407 #define InternetCreateUrl WINELIB_NAME_AW(InternetCreateUrl)
409 BOOLAPI InternetCanonicalizeUrlA(LPCSTR ,LPSTR ,LPDWORD ,DWORD);
410 BOOLAPI InternetCanonicalizeUrlW(LPCWSTR ,LPWSTR ,LPDWORD ,DWORD);
411 #define InternetCanonicalizeUrl WINELIB_NAME_AW(InternetCanonicalizeUrl)
413 BOOLAPI InternetCombineUrlA(LPCSTR ,LPCSTR ,LPSTR ,LPDWORD ,DWORD);
414 BOOLAPI InternetCombineUrlW(LPCWSTR ,LPCWSTR ,LPWSTR ,LPDWORD ,DWORD);
415 #define InternetCombineUrl WINELIB_NAME_AW(InternetCombineUrl)
417 #define ICU_ESCAPE 0x80000000
418 #define ICU_USERNAME 0x40000000
419 #define ICU_NO_ENCODE 0x20000000
420 #define ICU_DECODE 0x10000000
421 #define ICU_NO_META 0x08000000
422 #define ICU_ENCODE_SPACES_ONLY 0x04000000
423 #define ICU_BROWSER_MODE 0x02000000
424 #define ICU_ENCODE_PERCENT 0x00001000
426 INTERNETAPI HINTERNET WINAPI InternetOpenA(LPCSTR ,DWORD ,LPCSTR ,LPCSTR ,DWORD);
427 INTERNETAPI HINTERNET WINAPI InternetOpenW(LPCWSTR ,DWORD ,LPCWSTR ,LPCWSTR ,DWORD);
428 #define InternetOpen WINELIB_NAME_AW(InternetOpen)
430 #define INTERNET_OPEN_TYPE_PRECONFIG 0
431 #define INTERNET_OPEN_TYPE_DIRECT 1
432 #define INTERNET_OPEN_TYPE_PROXY 3
433 #define INTERNET_OPEN_TYPE_PRECONFIG_WITH_NO_AUTOPROXY 4
434 #define PRE_CONFIG_INTERNET_ACCESS INTERNET_OPEN_TYPE_PRECONFIG
435 #define LOCAL_INTERNET_ACCESS INTERNET_OPEN_TYPE_DIRECT
436 #define CERN_PROXY_INTERNET_ACCESS INTERNET_OPEN_TYPE_PROXY
438 BOOLAPI InternetCloseHandle(HINTERNET);
440 INTERNETAPI HINTERNET WINAPI InternetConnectA(HINTERNET ,LPCSTR ,INTERNET_PORT ,
441 LPCSTR ,LPCSTR ,DWORD ,DWORD ,DWORD_PTR );
442 INTERNETAPI HINTERNET WINAPI InternetConnectW(HINTERNET ,LPCWSTR ,INTERNET_PORT ,
443 LPCWSTR ,LPCWSTR ,DWORD ,DWORD ,DWORD_PTR );
444 #define InternetConnect WINELIB_NAME_AW(InternetConnect)
446 #define INTERNET_SERVICE_URL 0
447 #define INTERNET_SERVICE_FTP 1
448 #define INTERNET_SERVICE_GOPHER 2
449 #define INTERNET_SERVICE_HTTP 3
451 #define InternetConnectUrl(hInternet,lpszUrl,dwFlags,dwContext) \
452 InternetConnect(hInternet,\
453 lpszUrl,\
454 INTERNET_INVALID_PORT_NUMBER,\
455 NULL,\
456 NULL,\
457 INTERNET_SERVICE_URL,\
458 dwFlags,\
459 dwContext \
462 INTERNETAPI HINTERNET WINAPI InternetOpenUrlA(HINTERNET ,LPCSTR ,LPCSTR ,DWORD ,DWORD ,DWORD_PTR);
463 INTERNETAPI HINTERNET WINAPI InternetOpenUrlW(HINTERNET ,LPCWSTR ,LPCWSTR ,DWORD ,DWORD ,DWORD_PTR);
464 #define InternetOpenUrl WINELIB_NAME_AW(InternetOpenUrl)
466 BOOLAPI InternetReadFile( HINTERNET ,LPVOID ,DWORD ,LPDWORD );
467 INTERNETAPI BOOL WINAPI InternetReadFileExA( HINTERNET ,LPINTERNET_BUFFERSA ,DWORD ,DWORD_PTR );
468 INTERNETAPI BOOL WINAPI InternetReadFileExW( HINTERNET ,LPINTERNET_BUFFERSW ,DWORD ,DWORD_PTR );
469 #define InternetReadFileEx WINELIB_NAME_AW(InternetReadFileEx)
471 #define IRF_ASYNC WININET_API_FLAG_ASYNC
472 #define IRF_SYNC WININET_API_FLAG_SYNC
473 #define IRF_USE_CONTEXT WININET_API_FLAG_USE_CONTEXT
474 #define IRF_NO_WAIT 0x00000008
476 INTERNETAPI DWORD WINAPI InternetSetFilePointer(HINTERNET ,LONG ,PVOID ,DWORD ,DWORD_PTR);
477 BOOLAPI InternetWriteFile(HINTERNET ,LPCVOID ,DWORD ,LPDWORD);
478 BOOLAPI InternetQueryDataAvailable(HINTERNET ,LPDWORD ,DWORD ,DWORD_PTR);
479 BOOLAPI InternetFindNextFileA(HINTERNET ,LPVOID);
480 BOOLAPI InternetFindNextFileW(HINTERNET ,LPVOID);
481 #define InternetFindNextFile WINELIB_NAME_AW(InternetFindNextFile)
483 BOOLAPI InternetQueryOptionA(HINTERNET ,DWORD ,LPVOID ,LPDWORD);
484 BOOLAPI InternetQueryOptionW(HINTERNET ,DWORD ,LPVOID ,LPDWORD);
485 #define InternetQueryOption WINELIB_NAME_AW(InternetQueryOption)
487 BOOLAPI InternetSetOptionA(HINTERNET ,DWORD ,LPVOID ,DWORD);
488 BOOLAPI InternetSetOptionW(HINTERNET ,DWORD ,LPVOID ,DWORD);
489 #define InternetSetOption WINELIB_NAME_AW(InternetSetOption)
491 BOOLAPI InternetSetOptionExA(HINTERNET ,DWORD ,LPVOID ,DWORD ,DWORD);
492 BOOLAPI InternetSetOptionExW(HINTERNET ,DWORD ,LPVOID ,DWORD ,DWORD);
493 #define InternetSetOptionEx WINELIB_NAME_AW(InternetSetOptionEx)
495 BOOLAPI InternetLockRequestFile(HINTERNET ,HANDLE *);
496 BOOLAPI InternetUnlockRequestFile(HANDLE);
498 #define ISO_GLOBAL 0x00000001
499 #define ISO_REGISTRY 0x00000002
501 #define ISO_VALID_FLAGS (ISO_GLOBAL | ISO_REGISTRY)
502 #define INTERNET_OPTION_CALLBACK 1
503 #define INTERNET_OPTION_CONNECT_TIMEOUT 2
504 #define INTERNET_OPTION_CONNECT_RETRIES 3
505 #define INTERNET_OPTION_CONNECT_BACKOFF 4
506 #define INTERNET_OPTION_SEND_TIMEOUT 5
507 #define INTERNET_OPTION_CONTROL_SEND_TIMEOUT INTERNET_OPTION_SEND_TIMEOUT
508 #define INTERNET_OPTION_RECEIVE_TIMEOUT 6
509 #define INTERNET_OPTION_CONTROL_RECEIVE_TIMEOUT INTERNET_OPTION_RECEIVE_TIMEOUT
510 #define INTERNET_OPTION_DATA_SEND_TIMEOUT 7
511 #define INTERNET_OPTION_DATA_RECEIVE_TIMEOUT 8
512 #define INTERNET_OPTION_HANDLE_TYPE 9
513 #define INTERNET_OPTION_LISTEN_TIMEOUT 11
514 #define INTERNET_OPTION_READ_BUFFER_SIZE 12
515 #define INTERNET_OPTION_WRITE_BUFFER_SIZE 13
516 #define INTERNET_OPTION_ASYNC_ID 15
517 #define INTERNET_OPTION_ASYNC_PRIORITY 16
518 #define INTERNET_OPTION_PARENT_HANDLE 21
519 #define INTERNET_OPTION_KEEP_CONNECTION 22
520 #define INTERNET_OPTION_REQUEST_FLAGS 23
521 #define INTERNET_OPTION_EXTENDED_ERROR 24
522 #define INTERNET_OPTION_OFFLINE_MODE 26
523 #define INTERNET_OPTION_CACHE_STREAM_HANDLE 27
524 #define INTERNET_OPTION_USERNAME 28
525 #define INTERNET_OPTION_PASSWORD 29
526 #define INTERNET_OPTION_ASYNC 30
527 #define INTERNET_OPTION_SECURITY_FLAGS 31
528 #define INTERNET_OPTION_SECURITY_CERTIFICATE_STRUCT 32
529 #define INTERNET_OPTION_DATAFILE_NAME 33
530 #define INTERNET_OPTION_URL 34
531 #define INTERNET_OPTION_SECURITY_CERTIFICATE 35
532 #define INTERNET_OPTION_SECURITY_KEY_BITNESS 36
533 #define INTERNET_OPTION_REFRESH 37
534 #define INTERNET_OPTION_PROXY 38
535 #define INTERNET_OPTION_SETTINGS_CHANGED 39
536 #define INTERNET_OPTION_VERSION 40
537 #define INTERNET_OPTION_USER_AGENT 41
538 #define INTERNET_OPTION_END_BROWSER_SESSION 42
539 #define INTERNET_OPTION_PROXY_USERNAME 43
540 #define INTERNET_OPTION_PROXY_PASSWORD 44
541 #define INTERNET_OPTION_CONTEXT_VALUE 45
542 #define INTERNET_OPTION_CONNECT_LIMIT 46
543 #define INTERNET_OPTION_SECURITY_SELECT_CLIENT_CERT 47
544 #define INTERNET_OPTION_POLICY 48
545 #define INTERNET_OPTION_DISCONNECTED_TIMEOUT 49
546 #define INTERNET_OPTION_CONNECTED_STATE 50
547 #define INTERNET_OPTION_IDLE_STATE 51
548 #define INTERNET_OPTION_OFFLINE_SEMANTICS 52
549 #define INTERNET_OPTION_SECONDARY_CACHE_KEY 53
550 #define INTERNET_OPTION_CALLBACK_FILTER 54
551 #define INTERNET_OPTION_CONNECT_TIME 55
552 #define INTERNET_OPTION_SEND_THROUGHPUT 56
553 #define INTERNET_OPTION_RECEIVE_THROUGHPUT 57
554 #define INTERNET_OPTION_REQUEST_PRIORITY 58
555 #define INTERNET_OPTION_HTTP_VERSION 59
556 #define INTERNET_OPTION_RESET_URLCACHE_SESSION 60
557 #define INTERNET_OPTION_ERROR_MASK 62
558 #define INTERNET_OPTION_FROM_CACHE_TIMEOUT 63
559 #define INTERNET_OPTION_BYPASS_EDITED_ENTRY 64
560 #define INTERNET_OPTION_HTTP_DECODING 65
561 #define INTERNET_OPTION_DIAGNOSTIC_SOCKET_INFO 67
562 #define INTERNET_OPTION_CODEPAGE 68
563 #define INTERNET_OPTION_CACHE_TIMESTAMPS 69
564 #define INTERNET_OPTION_DISABLE_AUTODIAL 70
565 #define INTERNET_OPTION_MAX_CONNS_PER_SERVER 73
566 #define INTERNET_OPTION_MAX_CONNS_PER_1_0_SERVER 74
567 #define INTERNET_OPTION_PER_CONNECTION_OPTION 75
568 #define INTERNET_OPTION_DIGEST_AUTH_UNLOAD 76
569 #define INTERNET_OPTION_IGNORE_OFFLINE 77
570 #define INTERNET_OPTION_IDENTITY 78
571 #define INTERNET_OPTION_REMOVE_IDENTITY 79
572 #define INTERNET_OPTION_ALTER_IDENTITY 80
573 #define INTERNET_OPTION_SUPPRESS_BEHAVIOR 81
574 #define INTERNET_OPTION_AUTODIAL_MODE 82
575 #define INTERNET_OPTION_AUTODIAL_CONNECTION 83
576 #define INTERNET_OPTION_CLIENT_CERT_CONTEXT 84
577 #define INTERNET_OPTION_AUTH_FLAGS 85
578 #define INTERNET_OPTION_COOKIES_3RD_PARTY 86
579 #define INTERNET_OPTION_DISABLE_PASSPORT_AUTH 87
580 #define INTERNET_OPTION_SEND_UTF8_SERVERNAME_TO_PROXY 88
581 #define INTERNET_OPTION_EXEMPT_CONNECTION_LIMIT 89
582 #define INTERNET_OPTION_ENABLE_PASSPORT_AUTH 90
584 #define INTERNET_OPTION_HIBERNATE_INACTIVE_WORKER_THREADS 91
585 #define INTERNET_OPTION_ACTIVATE_WORKER_THREADS 92
586 #define INTERNET_OPTION_RESTORE_WORKER_THREAD_DEFAULTS 93
587 #define INTERNET_OPTION_SOCKET_SEND_BUFFER_LENGTH 94
589 #define INTERNET_OPTION_PROXY_SETTINGS_CHANGED 95
590 #define INTERNET_OPTION_DATAFILE_EXT 96
592 #define INTERNET_OPTION_CODEPAGE_PATH 100
593 #define INTERNET_OPTION_CODEPAGE_EXTRA 101
594 #define INTERNET_OPTION_IDN 102
595 #define INTERNET_OPTION_MAX_CONNS_PER_PROXY 103
596 #define INTERNET_OPTION_SUPPRESS_SERVER_AUTH 104
597 #define INTERNET_OPTION_SERVER_CERT_CHAIN_CONTEXT 105
600 #define INTERNET_FIRST_OPTION INTERNET_OPTION_CALLBACK
601 #define INTERNET_LAST_OPTION INTERNET_OPTION_SERVER_CERT_CHAIN_CONTEXT
603 #define INTERNET_PRIORITY_FOREGROUND 1000
604 #define INTERNET_HANDLE_TYPE_INTERNET 1
605 #define INTERNET_HANDLE_TYPE_CONNECT_FTP 2
606 #define INTERNET_HANDLE_TYPE_CONNECT_GOPHER 3
607 #define INTERNET_HANDLE_TYPE_CONNECT_HTTP 4
608 #define INTERNET_HANDLE_TYPE_FTP_FIND 5
609 #define INTERNET_HANDLE_TYPE_FTP_FIND_HTML 6
610 #define INTERNET_HANDLE_TYPE_FTP_FILE 7
611 #define INTERNET_HANDLE_TYPE_FTP_FILE_HTML 8
612 #define INTERNET_HANDLE_TYPE_GOPHER_FIND 9
613 #define INTERNET_HANDLE_TYPE_GOPHER_FIND_HTML 10
614 #define INTERNET_HANDLE_TYPE_GOPHER_FILE 11
615 #define INTERNET_HANDLE_TYPE_GOPHER_FILE_HTML 12
616 #define INTERNET_HANDLE_TYPE_HTTP_REQUEST 13
617 #define SECURITY_FLAG_SECURE 0x00000001
618 #define SECURITY_FLAG_STRENGTH_WEAK 0x10000000
619 #define SECURITY_FLAG_STRENGTH_MEDIUM 0x40000000
620 #define SECURITY_FLAG_STRENGTH_STRONG 0x20000000
621 #define SECURITY_FLAG_UNKNOWNBIT 0x80000000
622 #define SECURITY_FLAG_NORMALBITNESS SECURITY_FLAG_STRENGTH_WEAK
623 #define SECURITY_FLAG_SSL 0x00000002
624 #define SECURITY_FLAG_SSL3 0x00000004
625 #define SECURITY_FLAG_PCT 0x00000008
626 #define SECURITY_FLAG_PCT4 0x00000010
627 #define SECURITY_FLAG_IETFSSL4 0x00000020
628 #define SECURITY_FLAG_40BIT SECURITY_FLAG_STRENGTH_WEAK
629 #define SECURITY_FLAG_128BIT SECURITY_FLAG_STRENGTH_STRONG
630 #define SECURITY_FLAG_56BIT SECURITY_FLAG_STRENGTH_MEDIUM
631 #define SECURITY_FLAG_IGNORE_REVOCATION 0x00000080
632 #define SECURITY_FLAG_IGNORE_UNKNOWN_CA 0x00000100
633 #define SECURITY_FLAG_IGNORE_WRONG_USAGE 0x00000200
634 #define SECURITY_FLAG_IGNORE_CERT_CN_INVALID INTERNET_FLAG_IGNORE_CERT_CN_INVALID
635 #define SECURITY_FLAG_IGNORE_CERT_DATE_INVALID INTERNET_FLAG_IGNORE_CERT_DATE_INVALID
636 #define SECURITY_FLAG_IGNORE_REDIRECT_TO_HTTPS INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTPS
637 #define SECURITY_FLAG_IGNORE_REDIRECT_TO_HTTP INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTP
638 #define SECURITY_SET_MASK (SECURITY_FLAG_IGNORE_REVOCATION |\
639 SECURITY_FLAG_IGNORE_UNKNOWN_CA |\
640 SECURITY_FLAG_IGNORE_CERT_CN_INVALID |\
641 SECURITY_FLAG_IGNORE_CERT_DATE_INVALID |\
642 SECURITY_FLAG_IGNORE_WRONG_USAGE)
646 BOOLAPI InternetGetLastResponseInfoA(LPDWORD ,LPSTR ,LPDWORD);
647 BOOLAPI InternetGetLastResponseInfoW(LPDWORD ,LPWSTR ,LPDWORD);
648 #define InternetGetLastResponseInfo WINELIB_NAME_AW(InternetGetLastResponseInfo)
650 typedef VOID (CALLBACK *INTERNET_STATUS_CALLBACK)(HINTERNET ,DWORD_PTR ,DWORD ,
651 LPVOID ,DWORD);
653 typedef INTERNET_STATUS_CALLBACK * LPINTERNET_STATUS_CALLBACK;
655 INTERNETAPI INTERNET_STATUS_CALLBACK WINAPI InternetSetStatusCallbackA(HINTERNET ,INTERNET_STATUS_CALLBACK);
656 INTERNETAPI INTERNET_STATUS_CALLBACK WINAPI InternetSetStatusCallbackW(HINTERNET ,INTERNET_STATUS_CALLBACK);
657 #define InternetSetStatusCallback WINELIB_NAME_AW(InternetSetStatusCallback)
659 #define INTERNET_STATUS_RESOLVING_NAME 10
660 #define INTERNET_STATUS_NAME_RESOLVED 11
661 #define INTERNET_STATUS_CONNECTING_TO_SERVER 20
662 #define INTERNET_STATUS_CONNECTED_TO_SERVER 21
663 #define INTERNET_STATUS_SENDING_REQUEST 30
664 #define INTERNET_STATUS_REQUEST_SENT 31
665 #define INTERNET_STATUS_RECEIVING_RESPONSE 40
666 #define INTERNET_STATUS_RESPONSE_RECEIVED 41
667 #define INTERNET_STATUS_CTL_RESPONSE_RECEIVED 42
668 #define INTERNET_STATUS_PREFETCH 43
669 #define INTERNET_STATUS_CLOSING_CONNECTION 50
670 #define INTERNET_STATUS_CONNECTION_CLOSED 51
671 #define INTERNET_STATUS_HANDLE_CREATED 60
672 #define INTERNET_STATUS_HANDLE_CLOSING 70
673 #define INTERNET_STATUS_DETECTING_PROXY 80
674 #define INTERNET_STATUS_REQUEST_COMPLETE 100
675 #define INTERNET_STATUS_REDIRECT 110
676 #define INTERNET_STATUS_INTERMEDIATE_RESPONSE 120
677 #define INTERNET_STATUS_USER_INPUT_REQUIRED 140
678 #define INTERNET_STATUS_STATE_CHANGE 200
679 #define INTERNET_STATUS_COOKIE_SENT 320
680 #define INTERNET_STATUS_COOKIE_RECEIVED 321
681 #define INTERNET_STATUS_PRIVACY_IMPACTED 324
682 #define INTERNET_STATUS_P3P_HEADER 325
683 #define INTERNET_STATUS_P3P_POLICYREF 326
684 #define INTERNET_STATUS_COOKIE_HISTORY 327
685 #define INTERNET_STATE_CONNECTED 0x00000001
686 #define INTERNET_STATE_DISCONNECTED 0x00000002
687 #define INTERNET_STATE_DISCONNECTED_BY_USER 0x00000010
688 #define INTERNET_STATE_IDLE 0x00000100
689 #define INTERNET_STATE_BUSY 0x00000200
691 #define INTERNET_INVALID_STATUS_CALLBACK ((INTERNET_STATUS_CALLBACK)(-1))
693 #define FTP_TRANSFER_TYPE_UNKNOWN 0x00000000
694 #define FTP_TRANSFER_TYPE_ASCII 0x00000001
695 #define FTP_TRANSFER_TYPE_BINARY 0x00000002
696 #define FTP_TRANSFER_TYPE_MASK (FTP_TRANSFER_TYPE_ASCII | FTP_TRANSFER_TYPE_BINARY)
698 BOOLAPI FtpCommandA(HINTERNET, BOOL, DWORD, LPCSTR, DWORD_PTR, HINTERNET *);
699 BOOLAPI FtpCommandW(HINTERNET, BOOL, DWORD, LPCWSTR, DWORD_PTR, HINTERNET *);
700 #define FtpCommand WINELIB_NAME_AW(FtpCommand)
702 INTERNETAPI HINTERNET WINAPI FtpFindFirstFileA(HINTERNET ,LPCSTR ,
703 LPWIN32_FIND_DATAA ,DWORD ,DWORD_PTR);
704 INTERNETAPI HINTERNET WINAPI FtpFindFirstFileW(HINTERNET ,LPCWSTR ,
705 LPWIN32_FIND_DATAW ,DWORD ,DWORD_PTR);
706 #define FtpFindFirstFile WINELIB_NAME_AW(FtpFindFirstFile)
708 BOOLAPI FtpGetFileA(HINTERNET ,LPCSTR ,LPCSTR ,BOOL ,DWORD ,DWORD ,DWORD_PTR);
709 BOOLAPI FtpGetFileW(HINTERNET ,LPCWSTR ,LPCWSTR ,BOOL ,DWORD ,DWORD ,DWORD_PTR);
710 #define FtpGetFile WINELIB_NAME_AW(FtpGetFile)
712 DWORD WINAPI FtpGetFileSize(HINTERNET, LPDWORD);
714 BOOLAPI FtpPutFileA(HINTERNET ,LPCSTR ,LPCSTR ,DWORD ,DWORD_PTR);
715 BOOLAPI FtpPutFileW(HINTERNET ,LPCWSTR ,LPCWSTR ,DWORD ,DWORD_PTR);
716 #define FtpPutFile WINELIB_NAME_AW(FtpPutFile)
718 BOOLAPI FtpDeleteFileA(HINTERNET ,LPCSTR);
719 BOOLAPI FtpDeleteFileW(HINTERNET ,LPCWSTR);
720 #define FtpDeleteFile WINELIB_NAME_AW(FtpDeleteFile)
722 BOOLAPI FtpRenameFileA(HINTERNET ,LPCSTR ,LPCSTR);
723 BOOLAPI FtpRenameFileW(HINTERNET ,LPCWSTR ,LPCWSTR);
724 #define FtpRenameFile WINELIB_NAME_AW(FtpRenameFile)
726 INTERNETAPI HINTERNET WINAPI FtpOpenFileA(HINTERNET ,LPCSTR ,DWORD ,DWORD ,DWORD_PTR);
727 INTERNETAPI HINTERNET WINAPI FtpOpenFileW(HINTERNET ,LPCWSTR ,DWORD ,DWORD ,DWORD_PTR);
728 #define FtpOpenFile WINELIB_NAME_AW(FtpOpenFile)
730 BOOLAPI FtpCreateDirectoryA(HINTERNET ,LPCSTR);
731 BOOLAPI FtpCreateDirectoryW(HINTERNET ,LPCWSTR);
732 #define FtpCreateDirectory WINELIB_NAME_AW(FtpCreateDirectory)
734 BOOLAPI FtpRemoveDirectoryA(HINTERNET ,LPCSTR);
735 BOOLAPI FtpRemoveDirectoryW(HINTERNET ,LPCWSTR);
736 #define FtpRemoveDirectory WINELIB_NAME_AW(FtpRemoveDirectory)
738 BOOLAPI FtpSetCurrentDirectoryA(HINTERNET ,LPCSTR);
739 BOOLAPI FtpSetCurrentDirectoryW(HINTERNET ,LPCWSTR);
740 #define FtpSetCurrentDirectory WINELIB_NAME_AW(FtpSetCurrentDirectory)
742 BOOLAPI FtpGetCurrentDirectoryA(HINTERNET ,LPSTR ,LPDWORD);
743 BOOLAPI FtpGetCurrentDirectoryW(HINTERNET ,LPWSTR ,LPDWORD);
744 #define FtpGetCurrentDirectory WINELIB_NAME_AW(FtpGetCurrentDirectory)
746 #define MAX_GOPHER_DISPLAY_TEXT 128
747 #define MAX_GOPHER_SELECTOR_TEXT 256
748 #define MAX_GOPHER_HOST_NAME INTERNET_MAX_HOST_NAME_LENGTH
749 #define MAX_GOPHER_LOCATOR_LENGTH (1 \
750 + MAX_GOPHER_DISPLAY_TEXT \
751 + 1 \
752 + MAX_GOPHER_SELECTOR_TEXT \
753 + 1 \
754 + MAX_GOPHER_HOST_NAME \
755 + 1 \
756 + INTERNET_MAX_PORT_NUMBER_LENGTH \
757 + 1 \
758 + 1 \
759 + 2 \
763 typedef struct {
764 CHAR DisplayString[MAX_GOPHER_DISPLAY_TEXT + 1];
765 DWORD GopherType;
766 DWORD SizeLow;
767 DWORD SizeHigh;
768 FILETIME LastModificationTime;
769 CHAR Locator[MAX_GOPHER_LOCATOR_LENGTH + 1];
770 } GOPHER_FIND_DATAA,* LPGOPHER_FIND_DATAA;
772 typedef struct {
773 WCHAR DisplayString[MAX_GOPHER_DISPLAY_TEXT + 1];
774 DWORD GopherType;
775 DWORD SizeLow;
776 DWORD SizeHigh;
777 FILETIME LastModificationTime;
778 WCHAR Locator[MAX_GOPHER_LOCATOR_LENGTH + 1];
779 } GOPHER_FIND_DATAW,* LPGOPHER_FIND_DATAW;
781 DECL_WINELIB_TYPE_AW(GOPHER_FIND_DATA)
782 DECL_WINELIB_TYPE_AW(LPGOPHER_FIND_DATA)
784 #define GOPHER_TYPE_TEXT_FILE 0x00000001
785 #define GOPHER_TYPE_DIRECTORY 0x00000002
786 #define GOPHER_TYPE_CSO 0x00000004
787 #define GOPHER_TYPE_ERROR 0x00000008
788 #define GOPHER_TYPE_MAC_BINHEX 0x00000010
789 #define GOPHER_TYPE_DOS_ARCHIVE 0x00000020
790 #define GOPHER_TYPE_UNIX_UUENCODED 0x00000040
791 #define GOPHER_TYPE_INDEX_SERVER 0x00000080
792 #define GOPHER_TYPE_TELNET 0x00000100
793 #define GOPHER_TYPE_BINARY 0x00000200
794 #define GOPHER_TYPE_REDUNDANT 0x00000400
795 #define GOPHER_TYPE_TN3270 0x00000800
796 #define GOPHER_TYPE_GIF 0x00001000
797 #define GOPHER_TYPE_IMAGE 0x00002000
798 #define GOPHER_TYPE_BITMAP 0x00004000
799 #define GOPHER_TYPE_MOVIE 0x00008000
800 #define GOPHER_TYPE_SOUND 0x00010000
801 #define GOPHER_TYPE_HTML 0x00020000
802 #define GOPHER_TYPE_PDF 0x00040000
803 #define GOPHER_TYPE_CALENDAR 0x00080000
804 #define GOPHER_TYPE_INLINE 0x00100000
805 #define GOPHER_TYPE_UNKNOWN 0x20000000
806 #define GOPHER_TYPE_ASK 0x40000000
807 #define GOPHER_TYPE_GOPHER_PLUS 0x80000000
809 #define IS_GOPHER_FILE(type) (BOOL)(((type) & GOPHER_TYPE_FILE_MASK) != 0)
810 #define IS_GOPHER_DIRECTORY(type) (BOOL)(((type) & GOPHER_TYPE_DIRECTORY) != 0)
811 #define IS_GOPHER_PHONE_SERVER(type) (BOOL)(((type) & GOPHER_TYPE_CSO) != 0)
812 #define IS_GOPHER_ERROR(type) (BOOL)(((type) & GOPHER_TYPE_ERROR) != 0)
813 #define IS_GOPHER_INDEX_SERVER(type) (BOOL)(((type) & GOPHER_TYPE_INDEX_SERVER) != 0)
814 #define IS_GOPHER_TELNET_SESSION(type) (BOOL)(((type) & GOPHER_TYPE_TELNET) != 0)
815 #define IS_GOPHER_BACKUP_SERVER(type) (BOOL)(((type) & GOPHER_TYPE_REDUNDANT) != 0)
816 #define IS_GOPHER_TN3270_SESSION(type) (BOOL)(((type) & GOPHER_TYPE_TN3270) != 0)
817 #define IS_GOPHER_ASK(type) (BOOL)(((type) & GOPHER_TYPE_ASK) != 0)
818 #define IS_GOPHER_PLUS(type) (BOOL)(((type) & GOPHER_TYPE_GOPHER_PLUS) != 0)
819 #define IS_GOPHER_TYPE_KNOWN(type) (BOOL)(!((type) & GOPHER_TYPE_UNKNOWN))
820 #define GOPHER_TYPE_FILE_MASK (GOPHER_TYPE_TEXT_FILE \
821 | GOPHER_TYPE_MAC_BINHEX \
822 | GOPHER_TYPE_DOS_ARCHIVE \
823 | GOPHER_TYPE_UNIX_UUENCODED \
824 | GOPHER_TYPE_BINARY \
825 | GOPHER_TYPE_GIF \
826 | GOPHER_TYPE_IMAGE \
827 | GOPHER_TYPE_BITMAP \
828 | GOPHER_TYPE_MOVIE \
829 | GOPHER_TYPE_SOUND \
830 | GOPHER_TYPE_HTML \
831 | GOPHER_TYPE_PDF \
832 | GOPHER_TYPE_CALENDAR \
833 | GOPHER_TYPE_INLINE \
837 typedef struct {
838 LPCSTR Comment;
839 LPCSTR EmailAddress;
840 } GOPHER_ADMIN_ATTRIBUTE_TYPEA,* LPGOPHER_ADMIN_ATTRIBUTE_TYPEA;
842 typedef struct {
843 LPCWSTR Comment;
844 LPCWSTR EmailAddress;
845 } GOPHER_ADMIN_ATTRIBUTE_TYPEW,* LPGOPHER_ADMIN_ATTRIBUTE_TYPEW;
847 DECL_WINELIB_TYPE_AW(GOPHER_ADMIN_ATTRIBUTE_TYPE)
848 DECL_WINELIB_TYPE_AW(LPGOPHER_ADMIN_ATTRIBUTE_TYPE)
850 typedef struct {
851 FILETIME DateAndTime;
852 } GOPHER_MOD_DATE_ATTRIBUTE_TYPE,* LPGOPHER_MOD_DATE_ATTRIBUTE_TYPE;
854 typedef struct {
855 DWORD Ttl;
856 } GOPHER_TTL_ATTRIBUTE_TYPE,* LPGOPHER_TTL_ATTRIBUTE_TYPE;
858 typedef struct {
859 INT Score;
860 } GOPHER_SCORE_ATTRIBUTE_TYPE,* LPGOPHER_SCORE_ATTRIBUTE_TYPE;
862 typedef struct {
863 INT LowerBound;
864 INT UpperBound;
865 } GOPHER_SCORE_RANGE_ATTRIBUTE_TYPE,* LPGOPHER_SCORE_RANGE_ATTRIBUTE_TYPE;
867 typedef struct {
868 LPCSTR Site;
869 } GOPHER_SITE_ATTRIBUTE_TYPEA,* LPGOPHER_SITE_ATTRIBUTE_TYPEA;
871 typedef struct {
872 LPCWSTR Site;
873 } GOPHER_SITE_ATTRIBUTE_TYPEW,* LPGOPHER_SITE_ATTRIBUTE_TYPEW;
875 DECL_WINELIB_TYPE_AW(GOPHER_SITE_ATTRIBUTE_TYPE)
876 DECL_WINELIB_TYPE_AW(LPGOPHER_SITE_ATTRIBUTE_TYPE)
878 typedef struct {
879 LPCSTR Organization;
880 } GOPHER_ORGANIZATION_ATTRIBUTE_TYPEA,* LPGOPHER_ORGANIZATION_ATTRIBUTE_TYPEA;
882 typedef struct {
883 LPCWSTR Organization;
884 } GOPHER_ORGANIZATION_ATTRIBUTE_TYPEW,* LPGOPHER_ORGANIZATION_ATTRIBUTE_TYPEW;
886 DECL_WINELIB_TYPE_AW(GOPHER_ORGANIZATION_ATTRIBUTE_TYPE)
887 DECL_WINELIB_TYPE_AW(LPGOPHER_ORGANIZATION_ATTRIBUTE_TYPE)
889 typedef struct {
890 LPCSTR Location;
891 } GOPHER_LOCATION_ATTRIBUTE_TYPEA,* LPGOPHER_LOCATION_ATTRIBUTE_TYPEA;
893 typedef struct {
894 LPCWSTR Location;
895 } GOPHER_LOCATION_ATTRIBUTE_TYPEW,* LPGOPHER_LOCATION_ATTRIBUTE_TYPEW;
897 DECL_WINELIB_TYPE_AW(GOPHER_LOCATION_ATTRIBUTE_TYPE)
898 DECL_WINELIB_TYPE_AW(LPGOPHER_LOCATION_ATTRIBUTE_TYPE)
900 typedef struct {
901 INT DegreesNorth;
902 INT MinutesNorth;
903 INT SecondsNorth;
904 INT DegreesEast;
905 INT MinutesEast;
906 INT SecondsEast;
907 } GOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE,* LPGOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE;
909 typedef struct {
910 INT Zone;
911 } GOPHER_TIMEZONE_ATTRIBUTE_TYPE,* LPGOPHER_TIMEZONE_ATTRIBUTE_TYPE;
913 typedef struct {
914 LPCSTR Provider;
915 } GOPHER_PROVIDER_ATTRIBUTE_TYPEA,* LPGOPHER_PROVIDER_ATTRIBUTE_TYPEA;
917 typedef struct {
918 LPCWSTR Provider;
919 } GOPHER_PROVIDER_ATTRIBUTE_TYPEW,* LPGOPHER_PROVIDER_ATTRIBUTE_TYPEW;
921 DECL_WINELIB_TYPE_AW(GOPHER_PROVIDER_ATTRIBUTE_TYPE)
922 DECL_WINELIB_TYPE_AW(LPGOPHER_PROVIDER_ATTRIBUTE_TYPE)
924 typedef struct {
925 LPCSTR Version;
926 } GOPHER_VERSION_ATTRIBUTE_TYPEA,* LPGOPHER_VERSION_ATTRIBUTE_TYPEA;
928 typedef struct {
929 LPCWSTR Version;
930 } GOPHER_VERSION_ATTRIBUTE_TYPEW,* LPGOPHER_VERSION_ATTRIBUTE_TYPEW;
932 DECL_WINELIB_TYPE_AW(GOPHER_VERSION_ATTRIBUTE_TYPE)
933 DECL_WINELIB_TYPE_AW(LPGOPHER_VERSION_ATTRIBUTE_TYPE)
935 typedef struct {
936 LPCSTR ShortAbstract;
937 LPCSTR AbstractFile;
938 } GOPHER_ABSTRACT_ATTRIBUTE_TYPEA,* LPGOPHER_ABSTRACT_ATTRIBUTE_TYPEA;
940 typedef struct {
941 LPCWSTR ShortAbstract;
942 LPCWSTR AbstractFile;
943 } GOPHER_ABSTRACT_ATTRIBUTE_TYPEW,* LPGOPHER_ABSTRACT_ATTRIBUTE_TYPEW;
945 DECL_WINELIB_TYPE_AW(GOPHER_ABSTRACT_ATTRIBUTE_TYPE)
946 DECL_WINELIB_TYPE_AW(LPGOPHER_ABSTRACT_ATTRIBUTE_TYPE)
948 typedef struct {
949 LPCSTR ContentType;
950 LPCSTR Language;
951 DWORD Size;
952 } GOPHER_VIEW_ATTRIBUTE_TYPEA,* LPGOPHER_VIEW_ATTRIBUTE_TYPEA;
954 typedef struct {
955 LPCWSTR ContentType;
956 LPCWSTR Language;
957 DWORD Size;
958 } GOPHER_VIEW_ATTRIBUTE_TYPEW,* LPGOPHER_VIEW_ATTRIBUTE_TYPEW;
960 DECL_WINELIB_TYPE_AW(GOPHER_VIEW_ATTRIBUTE_TYPE)
961 DECL_WINELIB_TYPE_AW(LPGOPHER_VIEW_ATTRIBUTE_TYPE)
963 typedef struct {
964 BOOL TreeWalk;
965 } GOPHER_VERONICA_ATTRIBUTE_TYPE,* LPGOPHER_VERONICA_ATTRIBUTE_TYPE;
967 typedef struct {
968 LPCSTR QuestionType;
969 LPCSTR QuestionText;
970 } GOPHER_ASK_ATTRIBUTE_TYPEA,* LPGOPHER_ASK_ATTRIBUTE_TYPEA;
972 typedef struct {
973 LPCWSTR QuestionType;
974 LPCWSTR QuestionText;
975 } GOPHER_ASK_ATTRIBUTE_TYPEW,* LPGOPHER_ASK_ATTRIBUTE_TYPEW;
977 DECL_WINELIB_TYPE_AW(GOPHER_ASK_ATTRIBUTE_TYPE)
978 DECL_WINELIB_TYPE_AW(LPGOPHER_ASK_ATTRIBUTE_TYPE)
980 typedef struct {
981 LPCSTR Text;
982 } GOPHER_UNKNOWN_ATTRIBUTE_TYPEA,* LPGOPHER_UNKNOWN_ATTRIBUTE_TYPEA;
984 typedef struct {
985 LPCWSTR Text;
986 } GOPHER_UNKNOWN_ATTRIBUTE_TYPEW,* LPGOPHER_UNKNOWN_ATTRIBUTE_TYPEW;
988 DECL_WINELIB_TYPE_AW(GOPHER_UNKNOWN_ATTRIBUTE_TYPE)
989 DECL_WINELIB_TYPE_AW(LPGOPHER_UNKNOWN_ATTRIBUTE_TYPE)
991 typedef struct {
992 DWORD CategoryId;
993 DWORD AttributeId;
994 union {
995 GOPHER_ADMIN_ATTRIBUTE_TYPEA Admin;
996 GOPHER_MOD_DATE_ATTRIBUTE_TYPE ModDate;
997 GOPHER_TTL_ATTRIBUTE_TYPE Ttl;
998 GOPHER_SCORE_ATTRIBUTE_TYPE Score;
999 GOPHER_SCORE_RANGE_ATTRIBUTE_TYPE ScoreRange;
1000 GOPHER_SITE_ATTRIBUTE_TYPEA Site;
1001 GOPHER_ORGANIZATION_ATTRIBUTE_TYPEA Organization;
1002 GOPHER_LOCATION_ATTRIBUTE_TYPEA Location;
1003 GOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE GeographicalLocation;
1004 GOPHER_TIMEZONE_ATTRIBUTE_TYPE TimeZone;
1005 GOPHER_PROVIDER_ATTRIBUTE_TYPEA Provider;
1006 GOPHER_VERSION_ATTRIBUTE_TYPEA Version;
1007 GOPHER_ABSTRACT_ATTRIBUTE_TYPEA Abstract;
1008 GOPHER_VIEW_ATTRIBUTE_TYPEA View;
1009 GOPHER_VERONICA_ATTRIBUTE_TYPE Veronica;
1010 GOPHER_ASK_ATTRIBUTE_TYPEA Ask;
1011 GOPHER_UNKNOWN_ATTRIBUTE_TYPEA Unknown;
1012 } AttributeType;
1013 } GOPHER_ATTRIBUTE_TYPEA, *LPGOPHER_ATTRIBUTE_TYPEA;
1015 typedef struct {
1016 DWORD CategoryId;
1017 DWORD AttributeId;
1018 union {
1019 GOPHER_ADMIN_ATTRIBUTE_TYPEW Admin;
1020 GOPHER_MOD_DATE_ATTRIBUTE_TYPE ModDate;
1021 GOPHER_TTL_ATTRIBUTE_TYPE Ttl;
1022 GOPHER_SCORE_ATTRIBUTE_TYPE Score;
1023 GOPHER_SCORE_RANGE_ATTRIBUTE_TYPE ScoreRange;
1024 GOPHER_SITE_ATTRIBUTE_TYPEW Site;
1025 GOPHER_ORGANIZATION_ATTRIBUTE_TYPEW Organization;
1026 GOPHER_LOCATION_ATTRIBUTE_TYPEW Location;
1027 GOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE GeographicalLocation;
1028 GOPHER_TIMEZONE_ATTRIBUTE_TYPE TimeZone;
1029 GOPHER_PROVIDER_ATTRIBUTE_TYPEW Provider;
1030 GOPHER_VERSION_ATTRIBUTE_TYPEW Version;
1031 GOPHER_ABSTRACT_ATTRIBUTE_TYPEW Abstract;
1032 GOPHER_VIEW_ATTRIBUTE_TYPEW View;
1033 GOPHER_VERONICA_ATTRIBUTE_TYPE Veronica;
1034 GOPHER_ASK_ATTRIBUTE_TYPEW Ask;
1035 GOPHER_UNKNOWN_ATTRIBUTE_TYPEW Unknown;
1036 } AttributeType;
1037 } GOPHER_ATTRIBUTE_TYPEW, *LPGOPHER_ATTRIBUTE_TYPEW;
1039 DECL_WINELIB_TYPE_AW(GOPHER_ATTRIBUTE_TYPE)
1040 DECL_WINELIB_TYPE_AW(LPGOPHER_ATTRIBUTE_TYPE)
1042 #define MAX_GOPHER_CATEGORY_NAME 128
1043 #define MAX_GOPHER_ATTRIBUTE_NAME 128
1044 #define MIN_GOPHER_ATTRIBUTE_LENGTH 256
1046 #define GOPHER_INFO_CATEGORY TEXT("+INFO")
1047 #define GOPHER_ADMIN_CATEGORY TEXT("+ADMIN")
1048 #define GOPHER_VIEWS_CATEGORY TEXT("+VIEWS")
1049 #define GOPHER_ABSTRACT_CATEGORY TEXT("+ABSTRACT")
1050 #define GOPHER_VERONICA_CATEGORY TEXT("+VERONICA")
1051 #define GOPHER_ADMIN_ATTRIBUTE TEXT("Admin")
1052 #define GOPHER_MOD_DATE_ATTRIBUTE TEXT("Mod-Date")
1053 #define GOPHER_TTL_ATTRIBUTE TEXT("TTL")
1054 #define GOPHER_SCORE_ATTRIBUTE TEXT("Score")
1055 #define GOPHER_RANGE_ATTRIBUTE TEXT("Score-range")
1056 #define GOPHER_SITE_ATTRIBUTE TEXT("Site")
1057 #define GOPHER_ORG_ATTRIBUTE TEXT("Org")
1058 #define GOPHER_LOCATION_ATTRIBUTE TEXT("Loc")
1059 #define GOPHER_GEOG_ATTRIBUTE TEXT("Geog")
1060 #define GOPHER_TIMEZONE_ATTRIBUTE TEXT("TZ")
1061 #define GOPHER_PROVIDER_ATTRIBUTE TEXT("Provider")
1062 #define GOPHER_VERSION_ATTRIBUTE TEXT("Version")
1063 #define GOPHER_ABSTRACT_ATTRIBUTE TEXT("Abstract")
1064 #define GOPHER_VIEW_ATTRIBUTE TEXT("View")
1065 #define GOPHER_TREEWALK_ATTRIBUTE TEXT("treewalk")
1067 #define GOPHER_ATTRIBUTE_ID_BASE 0xabcccc00
1069 #define GOPHER_CATEGORY_ID_ALL (GOPHER_ATTRIBUTE_ID_BASE + 1)
1070 #define GOPHER_CATEGORY_ID_INFO (GOPHER_ATTRIBUTE_ID_BASE + 2)
1071 #define GOPHER_CATEGORY_ID_ADMIN (GOPHER_ATTRIBUTE_ID_BASE + 3)
1072 #define GOPHER_CATEGORY_ID_VIEWS (GOPHER_ATTRIBUTE_ID_BASE + 4)
1073 #define GOPHER_CATEGORY_ID_ABSTRACT (GOPHER_ATTRIBUTE_ID_BASE + 5)
1074 #define GOPHER_CATEGORY_ID_VERONICA (GOPHER_ATTRIBUTE_ID_BASE + 6)
1075 #define GOPHER_CATEGORY_ID_ASK (GOPHER_ATTRIBUTE_ID_BASE + 7)
1076 #define GOPHER_CATEGORY_ID_UNKNOWN (GOPHER_ATTRIBUTE_ID_BASE + 8)
1078 #define GOPHER_ATTRIBUTE_ID_ALL (GOPHER_ATTRIBUTE_ID_BASE + 9)
1079 #define GOPHER_ATTRIBUTE_ID_ADMIN (GOPHER_ATTRIBUTE_ID_BASE + 10)
1080 #define GOPHER_ATTRIBUTE_ID_MOD_DATE (GOPHER_ATTRIBUTE_ID_BASE + 11)
1081 #define GOPHER_ATTRIBUTE_ID_TTL (GOPHER_ATTRIBUTE_ID_BASE + 12)
1082 #define GOPHER_ATTRIBUTE_ID_SCORE (GOPHER_ATTRIBUTE_ID_BASE + 13)
1083 #define GOPHER_ATTRIBUTE_ID_RANGE (GOPHER_ATTRIBUTE_ID_BASE + 14)
1084 #define GOPHER_ATTRIBUTE_ID_SITE (GOPHER_ATTRIBUTE_ID_BASE + 15)
1085 #define GOPHER_ATTRIBUTE_ID_ORG (GOPHER_ATTRIBUTE_ID_BASE + 16)
1086 #define GOPHER_ATTRIBUTE_ID_LOCATION (GOPHER_ATTRIBUTE_ID_BASE + 17)
1087 #define GOPHER_ATTRIBUTE_ID_GEOG (GOPHER_ATTRIBUTE_ID_BASE + 18)
1088 #define GOPHER_ATTRIBUTE_ID_TIMEZONE (GOPHER_ATTRIBUTE_ID_BASE + 19)
1089 #define GOPHER_ATTRIBUTE_ID_PROVIDER (GOPHER_ATTRIBUTE_ID_BASE + 20)
1090 #define GOPHER_ATTRIBUTE_ID_VERSION (GOPHER_ATTRIBUTE_ID_BASE + 21)
1091 #define GOPHER_ATTRIBUTE_ID_ABSTRACT (GOPHER_ATTRIBUTE_ID_BASE + 22)
1092 #define GOPHER_ATTRIBUTE_ID_VIEW (GOPHER_ATTRIBUTE_ID_BASE + 23)
1093 #define GOPHER_ATTRIBUTE_ID_TREEWALK (GOPHER_ATTRIBUTE_ID_BASE + 24)
1094 #define GOPHER_ATTRIBUTE_ID_UNKNOWN (GOPHER_ATTRIBUTE_ID_BASE + 25)
1096 BOOLAPI GopherCreateLocatorA(LPCSTR ,INTERNET_PORT ,LPCSTR ,
1097 LPCSTR ,DWORD ,LPSTR ,LPDWORD);
1098 BOOLAPI GopherCreateLocatorW(LPCWSTR ,INTERNET_PORT ,LPCWSTR ,
1099 LPCWSTR ,DWORD ,LPWSTR ,LPDWORD);
1100 #define GopherCreateLocator WINELIB_NAME_AW(GopherCreateLocator)
1102 BOOLAPI GopherGetLocatorTypeA(LPCSTR ,LPDWORD);
1103 BOOLAPI GopherGetLocatorTypeW(LPCWSTR ,LPDWORD);
1104 #define GopherGetLocatorType WINELIB_NAME_AW(GopherGetLocatorType)
1106 INTERNETAPI HINTERNET WINAPI GopherFindFirstFileA(HINTERNET ,LPCSTR ,
1107 LPCSTR ,LPGOPHER_FIND_DATAA ,DWORD ,DWORD_PTR);
1108 INTERNETAPI HINTERNET WINAPI GopherFindFirstFileW(HINTERNET ,LPCWSTR ,
1109 LPCWSTR ,LPGOPHER_FIND_DATAW ,DWORD ,DWORD_PTR);
1110 #define GopherFindFirstFile WINELIB_NAME_AW(GopherFindFirstFile)
1112 INTERNETAPI HINTERNET WINAPI GopherOpenFileA(HINTERNET ,LPCSTR ,LPCSTR ,DWORD ,DWORD_PTR);
1113 INTERNETAPI HINTERNET WINAPI GopherOpenFileW(HINTERNET ,LPCWSTR ,LPCWSTR ,DWORD ,DWORD_PTR);
1114 #define GopherOpenFile WINELIB_NAME_AW(GopherOpenFile)
1116 typedef BOOL (CALLBACK *GOPHER_ATTRIBUTE_ENUMERATORA)(LPGOPHER_ATTRIBUTE_TYPEA ,DWORD);
1117 typedef BOOL (CALLBACK *GOPHER_ATTRIBUTE_ENUMERATORW)(LPGOPHER_ATTRIBUTE_TYPEW ,DWORD);
1119 DECL_WINELIB_TYPE_AW(GOPHER_ATTRIBUTE_ENUMERATOR)
1121 BOOLAPI GopherGetAttributeA(HINTERNET ,LPCSTR ,LPCSTR ,LPBYTE ,
1122 DWORD ,LPDWORD ,GOPHER_ATTRIBUTE_ENUMERATORA ,DWORD_PTR);
1123 BOOLAPI GopherGetAttributeW(HINTERNET ,LPCWSTR ,LPCWSTR ,LPBYTE ,
1124 DWORD ,LPDWORD ,GOPHER_ATTRIBUTE_ENUMERATORW ,DWORD_PTR);
1125 #define GopherGetAttribute WINELIB_NAME_AW(GopherGetAttribute)
1127 #define HTTP_MAJOR_VERSION 1
1128 #define HTTP_MINOR_VERSION 0
1129 #define HTTP_VERSION TEXT("HTTP/1.0")
1130 #define HTTP_QUERY_MIME_VERSION 0
1131 #define HTTP_QUERY_CONTENT_TYPE 1
1132 #define HTTP_QUERY_CONTENT_TRANSFER_ENCODING 2
1133 #define HTTP_QUERY_CONTENT_ID 3
1134 #define HTTP_QUERY_CONTENT_DESCRIPTION 4
1135 #define HTTP_QUERY_CONTENT_LENGTH 5
1136 #define HTTP_QUERY_CONTENT_LANGUAGE 6
1137 #define HTTP_QUERY_ALLOW 7
1138 #define HTTP_QUERY_PUBLIC 8
1139 #define HTTP_QUERY_DATE 9
1140 #define HTTP_QUERY_EXPIRES 10
1141 #define HTTP_QUERY_LAST_MODIFIED 11
1142 #define HTTP_QUERY_MESSAGE_ID 12
1143 #define HTTP_QUERY_URI 13
1144 #define HTTP_QUERY_DERIVED_FROM 14
1145 #define HTTP_QUERY_COST 15
1146 #define HTTP_QUERY_LINK 16
1147 #define HTTP_QUERY_PRAGMA 17
1148 #define HTTP_QUERY_VERSION 18
1149 #define HTTP_QUERY_STATUS_CODE 19
1150 #define HTTP_QUERY_STATUS_TEXT 20
1151 #define HTTP_QUERY_RAW_HEADERS 21
1152 #define HTTP_QUERY_RAW_HEADERS_CRLF 22
1153 #define HTTP_QUERY_CONNECTION 23
1154 #define HTTP_QUERY_ACCEPT 24
1155 #define HTTP_QUERY_ACCEPT_CHARSET 25
1156 #define HTTP_QUERY_ACCEPT_ENCODING 26
1157 #define HTTP_QUERY_ACCEPT_LANGUAGE 27
1158 #define HTTP_QUERY_AUTHORIZATION 28
1159 #define HTTP_QUERY_CONTENT_ENCODING 29
1160 #define HTTP_QUERY_FORWARDED 30
1161 #define HTTP_QUERY_FROM 31
1162 #define HTTP_QUERY_IF_MODIFIED_SINCE 32
1163 #define HTTP_QUERY_LOCATION 33
1164 #define HTTP_QUERY_ORIG_URI 34
1165 #define HTTP_QUERY_REFERER 35
1166 #define HTTP_QUERY_RETRY_AFTER 36
1167 #define HTTP_QUERY_SERVER 37
1168 #define HTTP_QUERY_TITLE 38
1169 #define HTTP_QUERY_USER_AGENT 39
1170 #define HTTP_QUERY_WWW_AUTHENTICATE 40
1171 #define HTTP_QUERY_PROXY_AUTHENTICATE 41
1172 #define HTTP_QUERY_ACCEPT_RANGES 42
1173 #define HTTP_QUERY_SET_COOKIE 43
1174 #define HTTP_QUERY_COOKIE 44
1175 #define HTTP_QUERY_REQUEST_METHOD 45
1176 #define HTTP_QUERY_REFRESH 46
1177 #define HTTP_QUERY_CONTENT_DISPOSITION 47
1178 #define HTTP_QUERY_AGE 48
1179 #define HTTP_QUERY_CACHE_CONTROL 49
1180 #define HTTP_QUERY_CONTENT_BASE 50
1181 #define HTTP_QUERY_CONTENT_LOCATION 51
1182 #define HTTP_QUERY_CONTENT_MD5 52
1183 #define HTTP_QUERY_CONTENT_RANGE 53
1184 #define HTTP_QUERY_ETAG 54
1185 #define HTTP_QUERY_HOST 55
1186 #define HTTP_QUERY_IF_MATCH 56
1187 #define HTTP_QUERY_IF_NONE_MATCH 57
1188 #define HTTP_QUERY_IF_RANGE 58
1189 #define HTTP_QUERY_IF_UNMODIFIED_SINCE 59
1190 #define HTTP_QUERY_MAX_FORWARDS 60
1191 #define HTTP_QUERY_PROXY_AUTHORIZATION 61
1192 #define HTTP_QUERY_RANGE 62
1193 #define HTTP_QUERY_TRANSFER_ENCODING 63
1194 #define HTTP_QUERY_UPGRADE 64
1195 #define HTTP_QUERY_VARY 65
1196 #define HTTP_QUERY_VIA 66
1197 #define HTTP_QUERY_WARNING 67
1198 #define HTTP_QUERY_EXPECT 68
1199 #define HTTP_QUERY_PROXY_CONNECTION 69
1200 #define HTTP_QUERY_UNLESS_MODIFIED_SINCE 70
1201 #define HTTP_QUERY_ECHO_REQUEST 71
1202 #define HTTP_QUERY_ECHO_REPLY 72
1203 #define HTTP_QUERY_ECHO_HEADERS 73
1204 #define HTTP_QUERY_ECHO_HEADERS_CRLF 74
1205 #define HTTP_QUERY_PROXY_SUPPORT 75
1206 #define HTTP_QUERY_AUTHENTICATION_INFO 76
1207 #define HTTP_QUERY_PASSPORT_URLS 77
1208 #define HTTP_QUERY_PASSPORT_CONFIG 78
1209 #define HTTP_QUERY_MAX 78
1210 #define HTTP_QUERY_CUSTOM 65535
1211 #define HTTP_QUERY_FLAG_REQUEST_HEADERS 0x80000000
1212 #define HTTP_QUERY_FLAG_SYSTEMTIME 0x40000000
1213 #define HTTP_QUERY_FLAG_NUMBER 0x20000000
1214 #define HTTP_QUERY_FLAG_COALESCE 0x10000000
1215 #define HTTP_QUERY_MODIFIER_FLAGS_MASK (HTTP_QUERY_FLAG_REQUEST_HEADERS \
1216 | HTTP_QUERY_FLAG_SYSTEMTIME \
1217 | HTTP_QUERY_FLAG_NUMBER \
1218 | HTTP_QUERY_FLAG_COALESCE \
1220 #define HTTP_QUERY_HEADER_MASK (~HTTP_QUERY_MODIFIER_FLAGS_MASK)
1222 #define HTTP_STATUS_CONTINUE 100
1223 #define HTTP_STATUS_SWITCH_PROTOCOLS 101
1224 #define HTTP_STATUS_OK 200
1225 #define HTTP_STATUS_CREATED 201
1226 #define HTTP_STATUS_ACCEPTED 202
1227 #define HTTP_STATUS_PARTIAL 203
1228 #define HTTP_STATUS_NO_CONTENT 204
1229 #define HTTP_STATUS_RESET_CONTENT 205
1230 #define HTTP_STATUS_PARTIAL_CONTENT 206
1231 #define HTTP_STATUS_AMBIGUOUS 300
1232 #define HTTP_STATUS_MOVED 301
1233 #define HTTP_STATUS_REDIRECT 302
1234 #define HTTP_STATUS_REDIRECT_METHOD 303
1235 #define HTTP_STATUS_NOT_MODIFIED 304
1236 #define HTTP_STATUS_USE_PROXY 305
1237 #define HTTP_STATUS_REDIRECT_KEEP_VERB 307
1238 #define HTTP_STATUS_BAD_REQUEST 400
1239 #define HTTP_STATUS_DENIED 401
1240 #define HTTP_STATUS_PAYMENT_REQ 402
1241 #define HTTP_STATUS_FORBIDDEN 403
1242 #define HTTP_STATUS_NOT_FOUND 404
1243 #define HTTP_STATUS_BAD_METHOD 405
1244 #define HTTP_STATUS_NONE_ACCEPTABLE 406
1245 #define HTTP_STATUS_PROXY_AUTH_REQ 407
1246 #define HTTP_STATUS_REQUEST_TIMEOUT 408
1247 #define HTTP_STATUS_CONFLICT 409
1248 #define HTTP_STATUS_GONE 410
1249 #define HTTP_STATUS_LENGTH_REQUIRED 411
1250 #define HTTP_STATUS_PRECOND_FAILED 412
1251 #define HTTP_STATUS_REQUEST_TOO_LARGE 413
1252 #define HTTP_STATUS_URI_TOO_LONG 414
1253 #define HTTP_STATUS_UNSUPPORTED_MEDIA 415
1254 #define HTTP_STATUS_SERVER_ERROR 500
1255 #define HTTP_STATUS_NOT_SUPPORTED 501
1256 #define HTTP_STATUS_BAD_GATEWAY 502
1257 #define HTTP_STATUS_SERVICE_UNAVAIL 503
1258 #define HTTP_STATUS_GATEWAY_TIMEOUT 504
1259 #define HTTP_STATUS_VERSION_NOT_SUP 505
1260 #define HTTP_STATUS_FIRST HTTP_STATUS_CONTINUE
1261 #define HTTP_STATUS_LAST HTTP_STATUS_VERSION_NOT_SUP
1264 INTERNETAPI HINTERNET WINAPI HttpOpenRequestA(HINTERNET ,LPCSTR ,LPCSTR ,LPCSTR ,
1265 LPCSTR ,LPCSTR * ,DWORD ,DWORD_PTR);
1266 INTERNETAPI HINTERNET WINAPI HttpOpenRequestW(HINTERNET ,LPCWSTR ,LPCWSTR ,LPCWSTR ,
1267 LPCWSTR ,LPCWSTR * ,DWORD ,DWORD_PTR);
1268 #define HttpOpenRequest WINELIB_NAME_AW(HttpOpenRequest)
1270 BOOLAPI HttpAddRequestHeadersA(HINTERNET ,LPCSTR ,DWORD ,DWORD);
1271 BOOLAPI HttpAddRequestHeadersW(HINTERNET ,LPCWSTR ,DWORD ,DWORD);
1272 #define HttpAddRequestHeaders WINELIB_NAME_AW(HttpAddRequestHeaders)
1274 #define HTTP_ADDREQ_INDEX_MASK 0x0000FFFF
1275 #define HTTP_ADDREQ_FLAGS_MASK 0xFFFF0000
1276 #define HTTP_ADDREQ_FLAG_ADD_IF_NEW 0x10000000
1277 #define HTTP_ADDREQ_FLAG_ADD 0x20000000
1278 #define HTTP_ADDREQ_FLAG_COALESCE_WITH_COMMA 0x40000000
1279 #define HTTP_ADDREQ_FLAG_COALESCE_WITH_SEMICOLON 0x01000000
1280 #define HTTP_ADDREQ_FLAG_COALESCE HTTP_ADDREQ_FLAG_COALESCE_WITH_COMMA
1281 #define HTTP_ADDREQ_FLAG_REPLACE 0x80000000
1283 BOOLAPI HttpSendRequestA(HINTERNET ,LPCSTR ,DWORD ,LPVOID ,DWORD);
1284 BOOLAPI HttpSendRequestW(HINTERNET ,LPCWSTR ,DWORD ,LPVOID ,DWORD);
1285 #define HttpSendRequest WINELIB_NAME_AW(HttpSendRequest)
1287 INTERNETAPI BOOL WINAPI HttpSendRequestExA(HINTERNET ,LPINTERNET_BUFFERSA ,
1288 LPINTERNET_BUFFERSA ,DWORD ,DWORD_PTR);
1289 INTERNETAPI BOOL WINAPI HttpSendRequestExW(HINTERNET ,LPINTERNET_BUFFERSW ,
1290 LPINTERNET_BUFFERSW ,DWORD ,DWORD_PTR);
1291 #define HttpSendRequestEx WINELIB_NAME_AW(HttpSendRequestEx)
1293 #define HSR_ASYNC WININET_API_FLAG_ASYNC
1294 #define HSR_SYNC WININET_API_FLAG_SYNC
1295 #define HSR_USE_CONTEXT WININET_API_FLAG_USE_CONTEXT
1296 #define HSR_INITIATE 0x00000008
1297 #define HSR_DOWNLOAD 0x00000010
1298 #define HSR_CHUNKED 0x00000020
1300 INTERNETAPI BOOL WINAPI HttpEndRequestA(HINTERNET ,LPINTERNET_BUFFERSA ,DWORD ,DWORD_PTR);
1301 INTERNETAPI BOOL WINAPI HttpEndRequestW(HINTERNET ,LPINTERNET_BUFFERSW ,DWORD ,DWORD_PTR);
1302 #define HttpEndRequest WINELIB_NAME_AW(HttpEndRequest)
1304 BOOLAPI HttpQueryInfoA(HINTERNET ,DWORD ,LPVOID ,LPDWORD ,LPDWORD);
1305 BOOLAPI HttpQueryInfoW(HINTERNET ,DWORD ,LPVOID ,LPDWORD ,LPDWORD);
1306 #define HttpQueryInfo WINELIB_NAME_AW(HttpQueryInfo)
1308 typedef enum {
1309 COOKIE_STATE_UNKNOWN,
1310 COOKIE_STATE_ACCEPT,
1311 COOKIE_STATE_PROMPT,
1312 COOKIE_STATE_LEASH,
1313 COOKIE_STATE_DOWNGRADE,
1314 COOKIE_STATE_REJECT,
1315 COOKIE_STATE_MAX = COOKIE_STATE_REJECT
1316 } InternetCookieState;
1318 BOOLAPI InternetClearAllPerSiteCookieDecisions(VOID);
1320 BOOLAPI InternetEnumPerSiteCookieDecisionA(LPSTR,ULONG *,ULONG *,ULONG);
1321 BOOLAPI InternetEnumPerSiteCookieDecisionW(LPWSTR,ULONG *,ULONG *,ULONG);
1322 #define InternetEnumPerSiteCookieDecision WINELIB_NAME_AW(InternetEnumPerSiteCookieDecision)
1324 #define INTERNET_COOKIE_IS_SECURE 0x00000001
1325 #define INTERNET_COOKIE_IS_SESSION 0x00000002
1326 #define INTERNET_COOKIE_THIRD_PARTY 0x00000010
1327 #define INTERNET_COOKIE_PROMPT_REQUIRED 0x00000020
1328 #define INTERNET_COOKIE_EVALUATE_P3P 0x00000040
1329 #define INTERNET_COOKIE_APPLY_P3P 0x00000080
1330 #define INTERNET_COOKIE_P3P_ENABLED 0x00000100
1331 #define INTERNET_COOKIE_IS_RESTRICTED 0x00000200
1332 #define INTERNET_COOKIE_IE6 0x00000400
1333 #define INTERNET_COOKIE_IS_LEGACY 0x00000800
1334 #define INTERNET_COOKIE_NON_SCRIPT 0x00001000
1335 #define INTERNET_COOKIE_HTTPONLY 0x00002000
1337 BOOLAPI InternetGetCookieExA(LPCSTR,LPCSTR,LPSTR,LPDWORD,DWORD,LPVOID);
1338 BOOLAPI InternetGetCookieExW(LPCWSTR,LPCWSTR,LPWSTR,LPDWORD,DWORD,LPVOID);
1339 #define InternetGetCookieEx WINELIB_NAME_AW(InternetGetCookieEx)
1341 DWORD WINAPI InternetSetCookieExA(LPCSTR,LPCSTR,LPCSTR,DWORD,DWORD_PTR);
1342 DWORD WINAPI InternetSetCookieExW(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,DWORD_PTR);
1343 #define InternetSetCookieEx WINELIB_NAME_AW(InternetSetCookieEx)
1345 BOOLAPI InternetGetPerSiteCookieDecisionA(LPCSTR,ULONG *);
1346 BOOLAPI InternetGetPerSiteCookieDecisionW(LPCWSTR,ULONG *);
1347 #define InternetGetPerSiteCookieDecision WINELIB_NAME_AW(InternetGetPerSiteCookieDecision)
1349 BOOLAPI InternetSetPerSiteCookieDecisionA(LPCSTR,DWORD);
1350 BOOLAPI InternetSetPerSiteCookieDecisionW(LPCWSTR,DWORD);
1351 #define InternetSetPerSiteCookieDecision WINELIB_NAME_AW(InternetSetPerSiteCookieDecision)
1353 BOOLAPI InternetSetCookieA(LPCSTR ,LPCSTR ,LPCSTR);
1354 BOOLAPI InternetSetCookieW(LPCWSTR ,LPCWSTR ,LPCWSTR);
1355 #define InternetSetCookie WINELIB_NAME_AW(InternetSetCookie)
1357 BOOLAPI InternetGetCookieA(LPCSTR ,LPCSTR ,LPSTR ,LPDWORD);
1358 BOOLAPI InternetGetCookieW(LPCWSTR ,LPCWSTR ,LPWSTR ,LPDWORD);
1359 #define InternetGetCookie WINELIB_NAME_AW(InternetGetCookie)
1361 INTERNETAPI DWORD WINAPI InternetAttemptConnect(DWORD);
1362 BOOLAPI InternetCheckConnectionA(LPCSTR ,DWORD ,DWORD);
1363 BOOLAPI InternetCheckConnectionW(LPCWSTR ,DWORD ,DWORD);
1364 #define InternetCheckConnection WINELIB_NAME_AW(InternetCheckConnection)
1366 #define FLAG_ICC_FORCE_CONNECTION 0x00000001
1368 #define FLAGS_ERROR_UI_FILTER_FOR_ERRORS 0x01
1369 #define FLAGS_ERROR_UI_FLAGS_CHANGE_OPTIONS 0x02
1370 #define FLAGS_ERROR_UI_FLAGS_GENERATE_DATA 0x04
1371 #define FLAGS_ERROR_UI_FLAGS_NO_UI 0x08
1372 #define FLAGS_ERROR_UI_SERIALIZE_DIALOGS 0x10
1374 DWORD InternetAuthNotifyCallback ( DWORD_PTR ,DWORD ,LPVOID );
1375 typedef DWORD (CALLBACK *PFN_AUTH_NOTIFY) (DWORD_PTR,DWORD,LPVOID);
1377 typedef struct
1379 DWORD cbStruct;
1380 DWORD dwOptions;
1381 PFN_AUTH_NOTIFY pfnNotify;
1382 DWORD_PTR dwContext;
1384 INTERNET_AUTH_NOTIFY_DATA;
1387 INTERNETAPI DWORD WINAPI InternetErrorDlg(HWND ,HINTERNET ,DWORD ,DWORD ,LPVOID *);
1388 INTERNETAPI DWORD WINAPI InternetConfirmZoneCrossingA(HWND ,LPSTR ,LPSTR ,BOOL);
1389 INTERNETAPI DWORD WINAPI InternetConfirmZoneCrossingW(HWND ,LPWSTR ,LPWSTR ,BOOL);
1390 #define InternetConfirmZoneCrossing WINELIB_NAME_AW(InternetConfirmZoneCrossing)
1392 #define PRIVACY_TEMPLATE_NO_COOKIES 0
1393 #define PRIVACY_TEMPLATE_HIGH 1
1394 #define PRIVACY_TEMPLATE_MEDIUM_HIGH 2
1395 #define PRIVACY_TEMPLATE_MEDIUM 3
1396 #define PRIVACY_TEMPLATE_MEDIUM_LOW 4
1397 #define PRIVACY_TEMPLATE_LOW 5
1398 #define PRIVACY_TEMPLATE_CUSTOM 100
1399 #define PRIVACY_TEMPLATE_ADVANCED 101
1401 #define PRIVACY_TEMPLATE_MAX PRIVACY_TEMPLATE_LOW
1403 #define PRIVACY_TYPE_FIRST_PARTY 0
1404 #define PRIVACY_TYPE_THIRD_PARTY 1
1406 INTERNETAPI DWORD WINAPI PrivacySetZonePreferenceW(DWORD,DWORD,DWORD,LPCWSTR);
1407 INTERNETAPI DWORD WINAPI PrivacyGetZonePreferenceW(DWORD,DWORD,LPDWORD,LPWSTR,LPDWORD);
1409 #define INTERNET_ERROR_BASE 12000
1411 #define ERROR_INTERNET_OUT_OF_HANDLES (INTERNET_ERROR_BASE + 1)
1412 #define ERROR_INTERNET_TIMEOUT (INTERNET_ERROR_BASE + 2)
1413 #define ERROR_INTERNET_EXTENDED_ERROR (INTERNET_ERROR_BASE + 3)
1414 #define ERROR_INTERNET_INTERNAL_ERROR (INTERNET_ERROR_BASE + 4)
1415 #define ERROR_INTERNET_INVALID_URL (INTERNET_ERROR_BASE + 5)
1416 #define ERROR_INTERNET_UNRECOGNIZED_SCHEME (INTERNET_ERROR_BASE + 6)
1417 #define ERROR_INTERNET_NAME_NOT_RESOLVED (INTERNET_ERROR_BASE + 7)
1418 #define ERROR_INTERNET_PROTOCOL_NOT_FOUND (INTERNET_ERROR_BASE + 8)
1419 #define ERROR_INTERNET_INVALID_OPTION (INTERNET_ERROR_BASE + 9)
1420 #define ERROR_INTERNET_BAD_OPTION_LENGTH (INTERNET_ERROR_BASE + 10)
1421 #define ERROR_INTERNET_OPTION_NOT_SETTABLE (INTERNET_ERROR_BASE + 11)
1422 #define ERROR_INTERNET_SHUTDOWN (INTERNET_ERROR_BASE + 12)
1423 #define ERROR_INTERNET_INCORRECT_USER_NAME (INTERNET_ERROR_BASE + 13)
1424 #define ERROR_INTERNET_INCORRECT_PASSWORD (INTERNET_ERROR_BASE + 14)
1425 #define ERROR_INTERNET_LOGIN_FAILURE (INTERNET_ERROR_BASE + 15)
1426 #define ERROR_INTERNET_INVALID_OPERATION (INTERNET_ERROR_BASE + 16)
1427 #define ERROR_INTERNET_OPERATION_CANCELLED (INTERNET_ERROR_BASE + 17)
1428 #define ERROR_INTERNET_INCORRECT_HANDLE_TYPE (INTERNET_ERROR_BASE + 18)
1429 #define ERROR_INTERNET_INCORRECT_HANDLE_STATE (INTERNET_ERROR_BASE + 19)
1430 #define ERROR_INTERNET_NOT_PROXY_REQUEST (INTERNET_ERROR_BASE + 20)
1431 #define ERROR_INTERNET_REGISTRY_VALUE_NOT_FOUND (INTERNET_ERROR_BASE + 21)
1432 #define ERROR_INTERNET_BAD_REGISTRY_PARAMETER (INTERNET_ERROR_BASE + 22)
1433 #define ERROR_INTERNET_NO_DIRECT_ACCESS (INTERNET_ERROR_BASE + 23)
1434 #define ERROR_INTERNET_NO_CONTEXT (INTERNET_ERROR_BASE + 24)
1435 #define ERROR_INTERNET_NO_CALLBACK (INTERNET_ERROR_BASE + 25)
1436 #define ERROR_INTERNET_REQUEST_PENDING (INTERNET_ERROR_BASE + 26)
1437 #define ERROR_INTERNET_INCORRECT_FORMAT (INTERNET_ERROR_BASE + 27)
1438 #define ERROR_INTERNET_ITEM_NOT_FOUND (INTERNET_ERROR_BASE + 28)
1439 #define ERROR_INTERNET_CANNOT_CONNECT (INTERNET_ERROR_BASE + 29)
1440 #define ERROR_INTERNET_CONNECTION_ABORTED (INTERNET_ERROR_BASE + 30)
1441 #define ERROR_INTERNET_CONNECTION_RESET (INTERNET_ERROR_BASE + 31)
1442 #define ERROR_INTERNET_FORCE_RETRY (INTERNET_ERROR_BASE + 32)
1443 #define ERROR_INTERNET_INVALID_PROXY_REQUEST (INTERNET_ERROR_BASE + 33)
1444 #define ERROR_INTERNET_NEED_UI (INTERNET_ERROR_BASE + 34)
1445 #define ERROR_INTERNET_HANDLE_EXISTS (INTERNET_ERROR_BASE + 36)
1446 #define ERROR_INTERNET_SEC_CERT_DATE_INVALID (INTERNET_ERROR_BASE + 37)
1447 #define ERROR_INTERNET_SEC_CERT_CN_INVALID (INTERNET_ERROR_BASE + 38)
1448 #define ERROR_INTERNET_HTTP_TO_HTTPS_ON_REDIR (INTERNET_ERROR_BASE + 39)
1449 #define ERROR_INTERNET_HTTPS_TO_HTTP_ON_REDIR (INTERNET_ERROR_BASE + 40)
1450 #define ERROR_INTERNET_MIXED_SECURITY (INTERNET_ERROR_BASE + 41)
1451 #define ERROR_INTERNET_CHG_POST_IS_NON_SECURE (INTERNET_ERROR_BASE + 42)
1452 #define ERROR_INTERNET_POST_IS_NON_SECURE (INTERNET_ERROR_BASE + 43)
1453 #define ERROR_INTERNET_CLIENT_AUTH_CERT_NEEDED (INTERNET_ERROR_BASE + 44)
1454 #define ERROR_INTERNET_INVALID_CA (INTERNET_ERROR_BASE + 45)
1455 #define ERROR_INTERNET_CLIENT_AUTH_NOT_SETUP (INTERNET_ERROR_BASE + 46)
1456 #define ERROR_INTERNET_ASYNC_THREAD_FAILED (INTERNET_ERROR_BASE + 47)
1457 #define ERROR_INTERNET_REDIRECT_SCHEME_CHANGE (INTERNET_ERROR_BASE + 48)
1458 #define ERROR_INTERNET_DIALOG_PENDING (INTERNET_ERROR_BASE + 49)
1459 #define ERROR_INTERNET_RETRY_DIALOG (INTERNET_ERROR_BASE + 50)
1460 #define ERROR_INTERNET_HTTPS_HTTP_SUBMIT_REDIR (INTERNET_ERROR_BASE + 52)
1461 #define ERROR_INTERNET_INSERT_CDROM (INTERNET_ERROR_BASE + 53)
1462 #define ERROR_INTERNET_FORTEZZA_LOGIN_NEEDED (INTERNET_ERROR_BASE + 54)
1463 #define ERROR_INTERNET_SEC_CERT_ERRORS (INTERNET_ERROR_BASE + 55)
1464 #define ERROR_INTERNET_SEC_CERT_NO_REV (INTERNET_ERROR_BASE + 56)
1465 #define ERROR_INTERNET_SEC_CERT_REV_FAILED (INTERNET_ERROR_BASE + 57)
1466 #define ERROR_HTTP_HSTS_REDIRECT_REQUIRED (INTERNET_ERROR_BASE + 60)
1467 #define ERROR_INTERNET_SEC_CERT_WEAK_SIGNATURE (INTERNET_ERROR_BASE + 62)
1468 #define ERROR_FTP_TRANSFER_IN_PROGRESS (INTERNET_ERROR_BASE + 110)
1469 #define ERROR_FTP_DROPPED (INTERNET_ERROR_BASE + 111)
1470 #define ERROR_FTP_NO_PASSIVE_MODE (INTERNET_ERROR_BASE + 112)
1471 #define ERROR_GOPHER_PROTOCOL_ERROR (INTERNET_ERROR_BASE + 130)
1472 #define ERROR_GOPHER_NOT_FILE (INTERNET_ERROR_BASE + 131)
1473 #define ERROR_GOPHER_DATA_ERROR (INTERNET_ERROR_BASE + 132)
1474 #define ERROR_GOPHER_END_OF_DATA (INTERNET_ERROR_BASE + 133)
1475 #define ERROR_GOPHER_INVALID_LOCATOR (INTERNET_ERROR_BASE + 134)
1476 #define ERROR_GOPHER_INCORRECT_LOCATOR_TYPE (INTERNET_ERROR_BASE + 135)
1477 #define ERROR_GOPHER_NOT_GOPHER_PLUS (INTERNET_ERROR_BASE + 136)
1478 #define ERROR_GOPHER_ATTRIBUTE_NOT_FOUND (INTERNET_ERROR_BASE + 137)
1479 #define ERROR_GOPHER_UNKNOWN_LOCATOR (INTERNET_ERROR_BASE + 138)
1480 #define ERROR_HTTP_HEADER_NOT_FOUND (INTERNET_ERROR_BASE + 150)
1481 #define ERROR_HTTP_DOWNLEVEL_SERVER (INTERNET_ERROR_BASE + 151)
1482 #define ERROR_HTTP_INVALID_SERVER_RESPONSE (INTERNET_ERROR_BASE + 152)
1483 #define ERROR_HTTP_INVALID_HEADER (INTERNET_ERROR_BASE + 153)
1484 #define ERROR_HTTP_INVALID_QUERY_REQUEST (INTERNET_ERROR_BASE + 154)
1485 #define ERROR_HTTP_HEADER_ALREADY_EXISTS (INTERNET_ERROR_BASE + 155)
1486 #define ERROR_HTTP_REDIRECT_FAILED (INTERNET_ERROR_BASE + 156)
1487 #define ERROR_HTTP_NOT_REDIRECTED (INTERNET_ERROR_BASE + 160)
1488 #define ERROR_HTTP_COOKIE_NEEDS_CONFIRMATION (INTERNET_ERROR_BASE + 161)
1489 #define ERROR_HTTP_COOKIE_DECLINED (INTERNET_ERROR_BASE + 162)
1490 #define ERROR_HTTP_REDIRECT_NEEDS_CONFIRMATION (INTERNET_ERROR_BASE + 168)
1491 #define ERROR_INTERNET_SECURITY_CHANNEL_ERROR (INTERNET_ERROR_BASE + 157)
1492 #define ERROR_INTERNET_UNABLE_TO_CACHE_FILE (INTERNET_ERROR_BASE + 158)
1493 #define ERROR_INTERNET_TCPIP_NOT_INSTALLED (INTERNET_ERROR_BASE + 159)
1494 #define ERROR_INTERNET_DISCONNECTED (INTERNET_ERROR_BASE + 163)
1495 #define ERROR_INTERNET_SERVER_UNREACHABLE (INTERNET_ERROR_BASE + 164)
1496 #define ERROR_INTERNET_PROXY_SERVER_UNREACHABLE (INTERNET_ERROR_BASE + 165)
1497 #define ERROR_INTERNET_BAD_AUTO_PROXY_SCRIPT (INTERNET_ERROR_BASE + 166)
1498 #define ERROR_INTERNET_UNABLE_TO_DOWNLOAD_SCRIPT (INTERNET_ERROR_BASE + 167)
1499 #define ERROR_INTERNET_SEC_INVALID_CERT (INTERNET_ERROR_BASE + 169)
1500 #define ERROR_INTERNET_SEC_CERT_REVOKED (INTERNET_ERROR_BASE + 170)
1501 #define ERROR_INTERNET_FAILED_DUETOSECURITYCHECK (INTERNET_ERROR_BASE + 171)
1502 #define ERROR_INTERNET_NOT_INITIALIZED (INTERNET_ERROR_BASE + 172)
1503 #define ERROR_INTERNET_NEED_MSN_SSPI_PKG (INTERNET_ERROR_BASE + 173)
1504 #define ERROR_INTERNET_LOGIN_FAILURE_DISPLAY_ENTITY_BODY (INTERNET_ERROR_BASE + 174)
1505 #define ERROR_INTERNET_DECODING_FAILED (INTERNET_ERROR_BASE + 175)
1506 #define ERROR_INTERNET_CLIENT_AUTH_CERT_NEEDED_PROXY (INTERNET_ERROR_BASE + 187)
1507 #define ERROR_INTERNET_SECURE_FAILURE_PROXY (INTERNET_ERROR_BASE + 188)
1508 #define INTERNET_ERROR_LAST ERROR_INTERNET_SECURE_FAILURE_PROXY
1511 #define NORMAL_CACHE_ENTRY 0x00000001
1512 #define STICKY_CACHE_ENTRY 0x00000004
1513 #define EDITED_CACHE_ENTRY 0x00000008
1514 #define COOKIE_CACHE_ENTRY 0x00100000
1515 #define URLHISTORY_CACHE_ENTRY 0x00200000
1516 #define TRACK_OFFLINE_CACHE_ENTRY 0x00000010
1517 #define TRACK_ONLINE_CACHE_ENTRY 0x00000020
1518 #define SPARSE_CACHE_ENTRY 0x00010000
1520 #define URLCACHE_FIND_DEFAULT_FILTER NORMAL_CACHE_ENTRY \
1521 | COOKIE_CACHE_ENTRY \
1522 | URLHISTORY_CACHE_ENTRY \
1523 | TRACK_OFFLINE_CACHE_ENTRY \
1524 | TRACK_ONLINE_CACHE_ENTRY \
1525 | STICKY_CACHE_ENTRY
1528 typedef struct _INTERNET_CACHE_ENTRY_INFOA {
1529 DWORD dwStructSize;
1530 LPSTR lpszSourceUrlName;
1531 LPSTR lpszLocalFileName;
1532 DWORD CacheEntryType;
1533 DWORD dwUseCount;
1534 DWORD dwHitRate;
1535 DWORD dwSizeLow;
1536 DWORD dwSizeHigh;
1537 FILETIME LastModifiedTime;
1538 FILETIME ExpireTime;
1539 FILETIME LastAccessTime;
1540 FILETIME LastSyncTime;
1542 LPBYTE lpHeaderInfo;
1543 DWORD dwHeaderInfoSize;
1544 LPSTR lpszFileExtension;
1545 union {
1546 DWORD dwReserved;
1547 DWORD dwExemptDelta;
1548 } DUMMYUNIONNAME;
1549 } INTERNET_CACHE_ENTRY_INFOA,* LPINTERNET_CACHE_ENTRY_INFOA;
1551 typedef struct _INTERNET_CACHE_ENTRY_INFOW {
1552 DWORD dwStructSize;
1553 LPWSTR lpszSourceUrlName;
1554 LPWSTR lpszLocalFileName;
1555 DWORD CacheEntryType;
1556 DWORD dwUseCount;
1557 DWORD dwHitRate;
1558 DWORD dwSizeLow;
1559 DWORD dwSizeHigh;
1560 FILETIME LastModifiedTime;
1561 FILETIME ExpireTime;
1562 FILETIME LastAccessTime;
1563 FILETIME LastSyncTime;
1565 LPBYTE lpHeaderInfo;
1566 DWORD dwHeaderInfoSize;
1567 LPWSTR lpszFileExtension;
1568 union {
1569 DWORD dwReserved;
1570 DWORD dwExemptDelta;
1571 } DUMMYUNIONNAME;
1572 } INTERNET_CACHE_ENTRY_INFOW,* LPINTERNET_CACHE_ENTRY_INFOW;
1574 DECL_WINELIB_TYPE_AW(INTERNET_CACHE_ENTRY_INFO)
1575 DECL_WINELIB_TYPE_AW(LPINTERNET_CACHE_ENTRY_INFO)
1577 typedef struct _INTERNET_CACHE_TIMESTAMPS
1579 FILETIME ftExpires;
1580 FILETIME ftLastModified;
1581 } INTERNET_CACHE_TIMESTAMPS, *LPINTERNET_CACHE_TIMESTAMPS;
1583 BOOLAPI CreateUrlCacheEntryA(LPCSTR ,DWORD ,LPCSTR ,LPSTR ,DWORD);
1584 BOOLAPI CreateUrlCacheEntryW(LPCWSTR ,DWORD ,LPCWSTR ,LPWSTR ,DWORD);
1585 #define CreateUrlCacheEntry WINELIB_NAME_AW(CreateUrlCacheEntry)
1587 BOOLAPI CommitUrlCacheEntryA(LPCSTR,LPCSTR,FILETIME,FILETIME,DWORD,LPBYTE,DWORD,LPCSTR,LPCSTR);
1588 BOOLAPI CommitUrlCacheEntryW(LPCWSTR,LPCWSTR,FILETIME,FILETIME,DWORD,LPWSTR,DWORD,LPCWSTR,LPCWSTR);
1589 #define CommitUrlCacheEntry WINELIB_NAME_AW(CommitUrlCacheEntry)
1591 BOOLAPI ResumeSuspendedDownload(HINTERNET, DWORD);
1593 BOOLAPI RetrieveUrlCacheEntryFileA(LPCSTR ,LPINTERNET_CACHE_ENTRY_INFOA ,LPDWORD ,DWORD);
1594 BOOLAPI RetrieveUrlCacheEntryFileW(LPCWSTR ,LPINTERNET_CACHE_ENTRY_INFOW ,LPDWORD ,DWORD);
1595 #define RetrieveUrlCacheEntryFile WINELIB_NAME_AW(RetrieveUrlCacheEntryFile)
1597 BOOLAPI UnlockUrlCacheEntryFileA(LPCSTR ,DWORD);
1598 BOOLAPI UnlockUrlCacheEntryFileW(LPCWSTR ,DWORD);
1599 #define UnlockUrlCacheEntryFile WINELIB_NAME_AW(UnlockUrlCacheEntryFile)
1601 INTERNETAPI HANDLE WINAPI RetrieveUrlCacheEntryStreamA(LPCSTR ,
1602 LPINTERNET_CACHE_ENTRY_INFOA , LPDWORD ,BOOL ,DWORD);
1603 INTERNETAPI HANDLE WINAPI RetrieveUrlCacheEntryStreamW(LPCWSTR ,LPINTERNET_CACHE_ENTRY_INFOW ,
1604 LPDWORD ,BOOL ,DWORD);
1605 #define RetrieveUrlCacheEntryStream WINELIB_NAME_AW(RetrieveUrlCacheEntryStream)
1607 BOOLAPI ReadUrlCacheEntryStream( HANDLE ,DWORD ,LPVOID ,LPDWORD ,DWORD );
1608 BOOLAPI UnlockUrlCacheEntryStream( HANDLE ,DWORD );
1609 BOOLAPI GetUrlCacheEntryInfoA(LPCSTR ,LPINTERNET_CACHE_ENTRY_INFOA ,LPDWORD);
1610 BOOLAPI GetUrlCacheEntryInfoW(LPCWSTR ,LPINTERNET_CACHE_ENTRY_INFOW ,LPDWORD);
1611 #define GetUrlCacheEntryInfo WINELIB_NAME_AW(GetUrlCacheEntryInfo)
1613 BOOLAPI GetUrlCacheEntryInfoExA(
1614 LPCSTR ,LPINTERNET_CACHE_ENTRY_INFOA ,LPDWORD ,LPSTR ,LPDWORD ,LPVOID ,DWORD);
1615 BOOLAPI GetUrlCacheEntryInfoExW(
1616 LPCWSTR ,LPINTERNET_CACHE_ENTRY_INFOW ,LPDWORD ,LPWSTR ,LPDWORD ,LPVOID ,DWORD);
1617 #define GetUrlCacheEntryInfoEx WINELIB_NAME_AW(GetUrlCacheEntryInfoEx)
1619 #define CACHE_ENTRY_ATTRIBUTE_FC 0x00000004
1620 #define CACHE_ENTRY_HITRATE_FC 0x00000010
1621 #define CACHE_ENTRY_MODTIME_FC 0x00000040
1622 #define CACHE_ENTRY_EXPTIME_FC 0x00000080
1623 #define CACHE_ENTRY_ACCTIME_FC 0x00000100
1624 #define CACHE_ENTRY_SYNCTIME_FC 0x00000200
1625 #define CACHE_ENTRY_HEADERINFO_FC 0x00000400
1626 #define CACHE_ENTRY_EXEMPT_DELTA_FC 0x00000800
1629 BOOLAPI SetUrlCacheEntryInfoA(LPCSTR ,LPINTERNET_CACHE_ENTRY_INFOA ,DWORD);
1630 BOOLAPI SetUrlCacheEntryInfoW(LPCWSTR ,LPINTERNET_CACHE_ENTRY_INFOW ,DWORD);
1631 #define SetUrlCacheEntryInfo WINELIB_NAME_AW(SetUrlCacheEntryInfo)
1633 typedef LONGLONG GROUPID;
1635 INTERNETAPI GROUPID WINAPI CreateUrlCacheGroup(DWORD,LPVOID);
1636 BOOLAPI DeleteUrlCacheGroup(GROUPID ,DWORD ,LPVOID);
1638 INTERNETAPI HANDLE WINAPI FindFirstUrlCacheGroup(DWORD,DWORD,LPVOID,DWORD,GROUPID*,LPVOID);
1639 BOOLAPI FindNextUrlCacheGroup(HANDLE,GROUPID*,LPVOID);
1641 BOOLAPI GetUrlCacheGroupAttributeA(GROUPID,DWORD,DWORD,LPINTERNET_CACHE_GROUP_INFOA,LPDWORD,LPVOID);
1642 BOOLAPI GetUrlCacheGroupAttributeW(GROUPID,DWORD,DWORD,LPINTERNET_CACHE_GROUP_INFOW,LPDWORD,LPVOID);
1643 #define GetUrlCacheGroupAttribute WINELIB_NAME_AW(GetUrlCacheGroupAttribute)
1645 #define INTERNET_CACHE_GROUP_ADD 0
1646 #define INTERNET_CACHE_GROUP_REMOVE 1
1648 BOOLAPI SetUrlCacheEntryGroupA(LPCSTR,DWORD,GROUPID,LPBYTE,DWORD,LPVOID);
1649 BOOLAPI SetUrlCacheEntryGroupW(LPCWSTR,DWORD,GROUPID,LPBYTE,DWORD,LPVOID);
1650 #define SetUrlCacheEntryGroup WINELIB_NAME_AW(SetUrlCacheEntryGroup)
1652 BOOLAPI SetUrlCacheGroupAttributeA(GROUPID,DWORD,DWORD,LPINTERNET_CACHE_GROUP_INFOA,LPVOID);
1653 BOOLAPI SetUrlCacheGroupAttributeW(GROUPID,DWORD,DWORD,LPINTERNET_CACHE_GROUP_INFOW,LPVOID);
1654 #define SetUrlCacheGroupAttribute WINELIB_NAME_AW(SetUrlCacheGroupAttribute)
1656 INTERNETAPI HANDLE WINAPI FindFirstUrlCacheEntryExA(
1657 LPCSTR ,DWORD ,DWORD ,GROUPID ,LPINTERNET_CACHE_ENTRY_INFOA ,LPDWORD ,LPVOID ,LPDWORD ,LPVOID );
1658 INTERNETAPI HANDLE WINAPI FindFirstUrlCacheEntryExW(
1659 LPCWSTR ,DWORD ,DWORD ,GROUPID ,LPINTERNET_CACHE_ENTRY_INFOW ,LPDWORD ,LPVOID ,LPDWORD ,LPVOID );
1660 #define FindFirstUrlCacheEntryEx WINELIB_NAME_AW(FindFirstUrlCacheEntryEx)
1662 BOOLAPI FindNextUrlCacheEntryExA(HANDLE ,LPINTERNET_CACHE_ENTRY_INFOA ,LPDWORD ,LPVOID ,LPDWORD ,LPVOID);
1663 BOOLAPI FindNextUrlCacheEntryExW(HANDLE ,LPINTERNET_CACHE_ENTRY_INFOW ,LPDWORD ,LPVOID ,LPDWORD ,LPVOID);
1664 #define FindNextUrlCacheEntryEx WINELIB_NAME_AW(FindNextUrlCacheEntryEx)
1666 INTERNETAPI HANDLE WINAPI FindFirstUrlCacheEntryA(LPCSTR ,LPINTERNET_CACHE_ENTRY_INFOA ,LPDWORD);
1667 INTERNETAPI HANDLE WINAPI FindFirstUrlCacheEntryW(LPCWSTR ,LPINTERNET_CACHE_ENTRY_INFOW ,LPDWORD);
1668 #define FindFirstUrlCacheEntry WINELIB_NAME_AW(FindFirstUrlCacheEntry)
1670 BOOLAPI FindNextUrlCacheEntryA(HANDLE ,LPINTERNET_CACHE_ENTRY_INFOA ,LPDWORD);
1671 BOOLAPI FindNextUrlCacheEntryW(HANDLE ,LPINTERNET_CACHE_ENTRY_INFOW ,LPDWORD);
1672 #define FindNextUrlCacheEntry WINELIB_NAME_AW(FindNextUrlCacheEntry)
1674 BOOLAPI FindCloseUrlCache(HANDLE);
1676 BOOLAPI DeleteUrlCacheEntryA(LPCSTR);
1677 BOOLAPI DeleteUrlCacheEntryW(LPCWSTR);
1678 #define DeleteUrlCacheEntry WINELIB_NAME_AW(DeleteUrlCacheEntry)
1680 /* FCS_ flags and FreeUrlCacheSpace are no longer documented */
1681 #define FCS_PERCENT_CACHE_SPACE 0 /* guessed value */
1682 #define FCS_PERCENT_DISK_SPACE 1 /* guessed value */
1683 #define FCS_ABSOLUTE_SIZE 2 /* guessed value */
1685 BOOLAPI FreeUrlCacheSpaceA(LPCSTR ,DWORD ,DWORD);
1686 BOOLAPI FreeUrlCacheSpaceW(LPCWSTR ,DWORD ,DWORD);
1687 #define FreeUrlCacheSpace WINELIB_NAME_AW(FreeUrlCacheSpace)
1690 INTERNETAPI DWORD WINAPI InternetDialA(HWND ,LPSTR ,DWORD ,DWORD_PTR* ,DWORD);
1691 INTERNETAPI DWORD WINAPI InternetDialW(HWND ,LPWSTR ,DWORD ,DWORD_PTR* ,DWORD);
1692 #define InternetDial WINELIB_NAME_AW(InternetDial)
1695 #define INTERNET_DIAL_UNATTENDED 0x8000
1697 INTERNETAPI DWORD WINAPI InternetHangUp(DWORD_PTR ,DWORD);
1698 BOOLAPI CreateMD5SSOHash(PWSTR,PWSTR,PWSTR,PBYTE);
1700 #define INTERENT_GOONLINE_REFRESH 0x00000001
1701 #define INTERENT_GOONLINE_MASK 0x00000001
1702 INTERNETAPI BOOL WINAPI InternetGoOnlineA(LPSTR ,HWND ,DWORD);
1703 INTERNETAPI BOOL WINAPI InternetGoOnlineW(LPWSTR ,HWND ,DWORD);
1704 #define InternetGoOnline WINELIB_NAME_AW(InternetGoOnline)
1705 INTERNETAPI BOOL WINAPI InternetAutodial(DWORD,HWND);
1707 #define INTERNET_AUTODIAL_FORCE_ONLINE 1
1708 #define INTERNET_AUTODIAL_FORCE_UNATTENDED 2
1709 #define INTERNET_AUTODIAL_FAILIFSECURITYCHECK 4
1711 #define INTERNET_AUTODIAL_FLAGS_MASK (INTERNET_AUTODIAL_FORCE_ONLINE | INTERNET_AUTODIAL_FORCE_UNATTENDED | INTERNET_AUTODIAL_FAILIFSECURITYCHECK)
1712 INTERNETAPI BOOL WINAPI InternetAutodialHangup(DWORD);
1713 INTERNETAPI BOOL WINAPI InternetGetConnectedState(LPDWORD ,DWORD);
1715 #define INTERNET_CONNECTION_MODEM 0x01
1716 #define INTERNET_CONNECTION_LAN 0x02
1717 #define INTERNET_CONNECTION_PROXY 0x04
1718 #define INTERNET_CONNECTION_MODEM_BUSY 0x08
1719 #define INTERNET_RAS_INSTALLED 0x10
1720 #define INTERNET_CONNECTION_OFFLINE 0x20
1721 #define INTERNET_CONNECTION_CONFIGURED 0x40
1723 typedef DWORD (CALLBACK *PFN_DIAL_HANDLER) (HWND,LPCSTR,DWORD,LPDWORD);
1725 #define INTERNET_CUSTOMDIAL_CONNECT 0
1726 #define INTERNET_CUSTOMDIAL_UNATTENDED 1
1727 #define INTERNET_CUSTOMDIAL_DISCONNECT 2
1728 #define INTERNET_CUSTOMDIAL_SHOWOFFLINE 4
1729 #define INTERNET_CUSTOMDIAL_SAFE_FOR_UNATTENDED 1
1730 #define INTERNET_CUSTOMDIAL_WILL_SUPPLY_STATE 2
1731 #define INTERNET_CUSTOMDIAL_CAN_HANGUP 4
1733 INTERNETAPI BOOL WINAPI InternetSetDialStateA(LPCSTR ,DWORD ,DWORD);
1734 INTERNETAPI BOOL WINAPI InternetSetDialStateW(LPCWSTR ,DWORD ,DWORD);
1735 #define InternetSetDialState WINELIB_NAME_AW(InternetSetDialState)
1736 #define INTERNET_DIALSTATE_DISCONNECTED 1
1738 BOOL WINAPI InternetGetConnectedStateExA(LPDWORD, LPSTR, DWORD, DWORD);
1739 BOOL WINAPI InternetGetConnectedStateExW(LPDWORD, LPWSTR, DWORD, DWORD);
1740 #define InternetGetConnectedStateEx WINELIB_NAME_AW(InternetGetConnectedStateEx)
1742 typedef struct AutoProxyHelperVtbl
1744 BOOL (WINAPI *IsResolvable)(LPSTR);
1745 DWORD (WINAPI *GetIPAddress)(LPSTR, LPDWORD);
1746 DWORD (WINAPI *ResolveHostName)(LPSTR, LPSTR, LPDWORD);
1747 BOOL (WINAPI *IsInNet)(LPSTR, LPSTR, LPSTR);
1748 BOOL (WINAPI *IsResolvableEx)(LPSTR);
1749 DWORD (WINAPI *GetIPAddressEx)(LPSTR, LPDWORD);
1750 DWORD (WINAPI *ResolveHostNameEx)(LPSTR, LPSTR, LPDWORD);
1751 BOOL (WINAPI *IsInNetEx)(LPSTR, LPSTR);
1752 DWORD (WINAPI *SortIpList)(LPSTR, LPSTR, LPDWORD);
1753 } AutoProxyHelperVtbl;
1755 typedef struct AutoProxyHelperFunctions
1757 const struct AutoProxyHelperVtbl *lpVtbl;
1758 } AutoProxyHelperFunctions;
1760 typedef struct
1762 DWORD dwStructSize;
1763 LPSTR lpszScriptBuffer;
1764 DWORD dwScriptBufferSize;
1765 } AUTO_PROXY_SCRIPT_BUFFER, *LPAUTO_PROXY_SCRIPT_BUFFER;
1767 typedef BOOL (CALLBACK *pfnInternetDeInitializeAutoProxyDll)(LPSTR, DWORD);
1768 typedef BOOL (CALLBACK *pfnInternetGetProxyInfo)(LPCSTR, DWORD, LPSTR, DWORD, LPSTR *, LPDWORD);
1769 typedef BOOL (CALLBACK *pfnInternetInitializeAutoProxyDll)(DWORD, LPSTR, LPSTR, AutoProxyHelperFunctions *,
1770 LPAUTO_PROXY_SCRIPT_BUFFER);
1772 BOOL WINAPI InternetInitializeAutoProxyDll(DWORD);
1773 BOOL WINAPI DetectAutoProxyUrl(LPSTR, DWORD, DWORD);
1775 #ifdef __cplusplus
1777 #endif
1779 #endif