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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #ifndef _WINE_WININET_H_
20 #define _WINE_WININET_H_
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
126 #define INTERNET_OPTIONS_MASK (~INTERNET_FLAGS_MASK)
127 #define WININET_API_FLAG_ASYNC 0x00000001
128 #define WININET_API_FLAG_SYNC 0x00000004
129 #define WININET_API_FLAG_USE_CONTEXT 0x00000008
130 #define INTERNET_NO_CALLBACK 0
133 INTERNET_SCHEME_PARTIAL
= -2,
134 INTERNET_SCHEME_UNKNOWN
= -1,
135 INTERNET_SCHEME_DEFAULT
= 0,
137 INTERNET_SCHEME_GOPHER
,
138 INTERNET_SCHEME_HTTP
,
139 INTERNET_SCHEME_HTTPS
,
140 INTERNET_SCHEME_FILE
,
141 INTERNET_SCHEME_NEWS
,
142 INTERNET_SCHEME_MAILTO
,
143 INTERNET_SCHEME_SOCKS
,
144 INTERNET_SCHEME_FIRST
= INTERNET_SCHEME_FTP
,
145 INTERNET_SCHEME_LAST
= INTERNET_SCHEME_SOCKS
146 } INTERNET_SCHEME
,* LPINTERNET_SCHEME
;
151 } INTERNET_ASYNC_RESULT
,* LPINTERNET_ASYNC_RESULT
;
156 LPCSTR lpszProxyBypass
;
157 } INTERNET_PROXY_INFOA
,* LPINTERNET_PROXY_INFOA
;
162 LPCWSTR lpszProxyBypass
;
163 } INTERNET_PROXY_INFOW
,* LPINTERNET_PROXY_INFOW
;
166 DECL_WINELIB_TYPE_AW(INTERNET_PROXY_INFO
)
167 DECL_WINELIB_TYPE_AW(LPINTERNET_PROXY_INFO
)
170 DWORD dwMajorVersion
;
171 DWORD dwMinorVersion
;
172 } INTERNET_VERSION_INFO
,* LPINTERNET_VERSION_INFO
;
175 DWORD dwMajorVersion
;
176 DWORD dwMinorVersion
;
177 } HTTP_VERSION_INFO
,* LPHTTP_VERSION_INFO
;
180 DWORD dwConnectedState
;
182 } INTERNET_CONNECTED_INFO
,* LPINTERNET_CONNECTED_INFO
;
184 #define ISO_FORCE_DISCONNECTED 0x00000001
189 DWORD dwSchemeLength
;
190 INTERNET_SCHEME nScheme
;
192 DWORD dwHostNameLength
;
195 DWORD dwUserNameLength
;
197 DWORD dwPasswordLength
;
199 DWORD dwUrlPathLength
;
201 DWORD dwExtraInfoLength
;
202 } URL_COMPONENTSA
,* LPURL_COMPONENTSA
;
207 DWORD dwSchemeLength
;
208 INTERNET_SCHEME nScheme
;
210 DWORD dwHostNameLength
;
213 DWORD dwUserNameLength
;
215 DWORD dwPasswordLength
;
217 DWORD dwUrlPathLength
;
218 LPWSTR lpszExtraInfo
;
219 DWORD dwExtraInfoLength
;
220 } URL_COMPONENTSW
,* LPURL_COMPONENTSW
;
222 DECL_WINELIB_TYPE_AW(URL_COMPONENTS
)
223 DECL_WINELIB_TYPE_AW(LPURL_COMPONENTS
)
228 LPSTR lpszSubjectInfo
;
229 LPSTR lpszIssuerInfo
;
230 LPSTR lpszProtocolName
;
231 LPSTR lpszSignatureAlgName
;
232 LPSTR lpszEncryptionAlgName
;
235 } INTERNET_CERTIFICATE_INFOA
,* LPINTERNET_CERTIFICATE_INFOA
;
240 LPWSTR lpszSubjectInfo
;
241 LPWSTR lpszIssuerInfo
;
242 LPWSTR lpszProtocolName
;
243 LPWSTR lpszSignatureAlgName
;
244 LPWSTR lpszEncryptionAlgName
;
247 } INTERNET_CERTIFICATE_INFOW
,* LPINTERNET_CERTIFICATE_INFOW
;
249 DECL_WINELIB_TYPE_AW(INTERNET_CERTIFICATE_INFO
)
250 DECL_WINELIB_TYPE_AW(LPINTERNET_CERTIFICATE_INFO
)
252 typedef struct _INTERNET_BUFFERSA
{
254 struct _INTERNET_BUFFERSA
* Next
;
256 DWORD dwHeadersLength
;
257 DWORD dwHeadersTotal
;
259 DWORD dwBufferLength
;
263 } INTERNET_BUFFERSA
,* LPINTERNET_BUFFERSA
;
265 typedef struct _INTERNET_BUFFERSW
{
267 struct _INTERNET_BUFFERSW
* Next
;
269 DWORD dwHeadersLength
;
270 DWORD dwHeadersTotal
;
272 DWORD dwBufferLength
;
276 } INTERNET_BUFFERSW
,* LPINTERNET_BUFFERSW
;
278 DECL_WINELIB_TYPE_AW(INTERNET_BUFFERS
)
279 DECL_WINELIB_TYPE_AW(LPINTERNET_BUFFERS
)
281 BOOLAPI
InternetTimeFromSystemTimeA(CONST SYSTEMTIME
*,DWORD
,LPSTR
,DWORD
);
282 BOOLAPI
InternetTimeFromSystemTimeW(CONST SYSTEMTIME
*,DWORD
,LPWSTR
,DWORD
);
283 #define InternetTimeFromSystemTime WINELIB_NAME_AW(InternetTimeFromSystemTime)
285 #define INTERNET_RFC1123_BUFSIZE 30
287 BOOLAPI
InternetTimeToSystemTimeA(LPCSTR
,SYSTEMTIME
*,DWORD
);
288 BOOLAPI
InternetTimeToSystemTimeW(LPCWSTR
,SYSTEMTIME
*,DWORD
);
289 #define InternetTimeToSystemTime WINELIB_NAME_AW(InternetTimeToSystemTime)
291 BOOLAPI
InternetCrackUrlA(LPCSTR
,DWORD
,DWORD
,LPURL_COMPONENTSA
);
292 BOOLAPI
InternetCrackUrlW(LPCWSTR
,DWORD
,DWORD
,LPURL_COMPONENTSW
);
293 #define InternetCrackUrl WINELIB_NAME_AW(InternetCrackUrl)
295 BOOLAPI
InternetCreateUrlA(LPURL_COMPONENTSA
,DWORD
,LPSTR
,LPDWORD
);
296 BOOLAPI
InternetCreateUrlW(LPURL_COMPONENTSW
,DWORD
,LPWSTR
,LPDWORD
);
297 #define InternetCreateUrl WINELIB_NAME_AW(InternetCreateUrl)
299 BOOLAPI
InternetCanonicalizeUrlA(LPCSTR
,LPSTR
,LPDWORD
,DWORD
);
300 BOOLAPI
InternetCanonicalizeUrlW(LPCWSTR
,LPWSTR
,LPDWORD
,DWORD
);
301 #define InternetCanonicalizeUrl WINELIB_NAME_AW(InternetCanonicalizeUrl)
303 BOOLAPI
InternetCombineUrlA(LPCSTR
,LPCSTR
,LPSTR
,LPDWORD
,DWORD
);
304 BOOLAPI
InternetCombineUrlW(LPCWSTR
,LPCWSTR
,LPWSTR
,LPDWORD
,DWORD
);
305 #define InternetCombineUrl WINELIB_NAME_AW(InternetCombineUrl)
307 #define ICU_ESCAPE 0x80000000
308 #define ICU_USERNAME 0x40000000
309 #define ICU_NO_ENCODE 0x20000000
310 #define ICU_DECODE 0x10000000
311 #define ICU_NO_META 0x08000000
312 #define ICU_ENCODE_SPACES_ONLY 0x04000000
313 #define ICU_BROWSER_MODE 0x02000000
315 INTERNETAPI HINTERNET WINAPI
InternetOpenA(LPCSTR
,DWORD
,LPCSTR lpszProxy
,LPCSTR lpszProxyBypass
,DWORD
);
316 INTERNETAPI HINTERNET WINAPI
InternetOpenW(LPCWSTR
,DWORD
,LPCWSTR lpszProxy
,LPCWSTR lpszProxyBypass
,DWORD
);
317 #define InternetOpen WINELIB_NAME_AW(InternetOpen)
319 #define INTERNET_OPEN_TYPE_PRECONFIG 0
320 #define INTERNET_OPEN_TYPE_DIRECT 1
321 #define INTERNET_OPEN_TYPE_PROXY 3
322 #define INTERNET_OPEN_TYPE_PRECONFIG_WITH_NO_AUTOPROXY 4
323 #define PRE_CONFIG_INTERNET_ACCESS INTERNET_OPEN_TYPE_PRECONFIG
324 #define LOCAL_INTERNET_ACCESS INTERNET_OPEN_TYPE_DIRECT
325 #define CERN_PROXY_INTERNET_ACCESS INTERNET_OPEN_TYPE_PROXY
327 BOOLAPI
InternetCloseHandle(HINTERNET
);
329 INTERNETAPI HINTERNET WINAPI
InternetConnectA(HINTERNET
,LPCSTR
,INTERNET_PORT
,
330 LPCSTR lpszUserName
,LPCSTR lpszPassword
,DWORD
,DWORD
,DWORD
);
331 INTERNETAPI HINTERNET WINAPI
InternetConnectW(HINTERNET
,LPCWSTR
,INTERNET_PORT
,
332 LPCWSTR lpszUserName
,LPCWSTR lpszPassword
,DWORD
,DWORD
,DWORD
);
333 #define InternetConnect WINELIB_NAME_AW(InternetConnect)
335 #define INTERNET_SERVICE_URL 0
336 #define INTERNET_SERVICE_FTP 1
337 #define INTERNET_SERVICE_GOPHER 2
338 #define INTERNET_SERVICE_HTTP 3
340 #define InternetConnectUrl(hInternet,lpszUrl,dwFlags,dwContext) \
341 InternetConnect(hInternet,\
343 INTERNET_INVALID_PORT_NUMBER,\
346 INTERNET_SERVICE_URL,\
351 INTERNETAPI HINTERNET WINAPI
InternetOpenUrlA(HINTERNET
,LPCSTR
,LPCSTR lpszHeaders
,DWORD
,DWORD
,DWORD
);
352 INTERNETAPI HINTERNET WINAPI
InternetOpenUrlW(HINTERNET
,LPCWSTR
,LPCWSTR lpszHeaders
,DWORD
,DWORD
,DWORD
);
353 #define InternetOpenUrl WINELIB_NAME_AW(InternetOpenUrl)
355 BOOLAPI
InternetReadFile( HINTERNET
,LPVOID
,DWORD
,LPDWORD
);
356 INTERNETAPI BOOL WINAPI
InternetReadFileExA( HINTERNET
,LPINTERNET_BUFFERSA
,DWORD
,DWORD
);
357 INTERNETAPI BOOL WINAPI
InternetReadFileExW( HINTERNET
,LPINTERNET_BUFFERSW
,DWORD
,DWORD
);
358 #define InternetReadFileEx WINELIB_NAME_AW(InternetReadFileEx)
360 #define IRF_ASYNC WININET_API_FLAG_ASYNC
361 #define IRF_SYNC WININET_API_FLAG_SYNC
362 #define IRF_USE_CONTEXT WININET_API_FLAG_USE_CONTEXT
363 #define IRF_NO_WAIT 0x00000008
365 INTERNETAPI DWORD WINAPI
InternetSetFilePointer(HINTERNET
,LONG
,PVOID
,DWORD
,DWORD
);
366 BOOLAPI
InternetWriteFile(HINTERNET
,LPCVOID
,DWORD
,LPDWORD
);
367 BOOLAPI
InternetQueryDataAvailable(HINTERNET
,LPDWORD lpdwNumberOfBytesAvailable
,DWORD
,DWORD
);
368 BOOLAPI
InternetFindNextFileA(HINTERNET
,LPVOID
);
369 BOOLAPI
InternetFindNextFileW(HINTERNET
,LPVOID
);
370 #define InternetFindNextFile WINELIB_NAME_AW(InternetFindNextFile)
372 BOOLAPI
InternetQueryOptionA(HINTERNET hInternet
,DWORD
,LPVOID lpBuffer
,LPDWORD
);
373 BOOLAPI
InternetQueryOptionW(HINTERNET hInternet
,DWORD
,LPVOID lpBuffer
,LPDWORD
);
374 #define InternetQueryOption WINELIB_NAME_AW(InternetQueryOption)
376 BOOLAPI
InternetSetOptionA(HINTERNET hInternet
,DWORD
,LPVOID
,DWORD
);
377 BOOLAPI
InternetSetOptionW(HINTERNET hInternet
,DWORD
,LPVOID
,DWORD
);
378 #define InternetSetOption WINELIB_NAME_AW(InternetSetOption)
380 BOOLAPI
InternetSetOptionExA(HINTERNET hInternet
,DWORD
,LPVOID
,DWORD
,DWORD
);
381 BOOLAPI
InternetSetOptionExW(HINTERNET hInternet
,DWORD
,LPVOID
,DWORD
,DWORD
);
382 #define InternetSetOptionEx WINELIB_NAME_AW(InternetSetOptionEx)
384 BOOLAPI
InternetLockRequestFile(HINTERNET
,HANDLE
*);
385 BOOLAPI
InternetUnlockRequestFile(HANDLE
);
387 #define ISO_GLOBAL 0x00000001
388 #define ISO_REGISTRY 0x00000002
390 #define ISO_VALID_FLAGS (ISO_GLOBAL | ISO_REGISTRY)
391 #define INTERNET_OPTION_CALLBACK 1
392 #define INTERNET_OPTION_CONNECT_TIMEOUT 2
393 #define INTERNET_OPTION_CONNECT_RETRIES 3
394 #define INTERNET_OPTION_CONNECT_BACKOFF 4
395 #define INTERNET_OPTION_SEND_TIMEOUT 5
396 #define INTERNET_OPTION_CONTROL_SEND_TIMEOUT INTERNET_OPTION_SEND_TIMEOUT
397 #define INTERNET_OPTION_RECEIVE_TIMEOUT 6
398 #define INTERNET_OPTION_CONTROL_RECEIVE_TIMEOUT INTERNET_OPTION_RECEIVE_TIMEOUT
399 #define INTERNET_OPTION_DATA_SEND_TIMEOUT 7
400 #define INTERNET_OPTION_DATA_RECEIVE_TIMEOUT 8
401 #define INTERNET_OPTION_HANDLE_TYPE 9
402 #define INTERNET_OPTION_LISTEN_TIMEOUT 11
403 #define INTERNET_OPTION_READ_BUFFER_SIZE 12
404 #define INTERNET_OPTION_WRITE_BUFFER_SIZE 13
405 #define INTERNET_OPTION_ASYNC_ID 15
406 #define INTERNET_OPTION_ASYNC_PRIORITY 16
407 #define INTERNET_OPTION_PARENT_HANDLE 21
408 #define INTERNET_OPTION_KEEP_CONNECTION 22
409 #define INTERNET_OPTION_REQUEST_FLAGS 23
410 #define INTERNET_OPTION_EXTENDED_ERROR 24
411 #define INTERNET_OPTION_OFFLINE_MODE 26
412 #define INTERNET_OPTION_CACHE_STREAM_HANDLE 27
413 #define INTERNET_OPTION_USERNAME 28
414 #define INTERNET_OPTION_PASSWORD 29
415 #define INTERNET_OPTION_ASYNC 30
416 #define INTERNET_OPTION_SECURITY_FLAGS 31
417 #define INTERNET_OPTION_SECURITY_CERTIFICATE_STRUCT 32
418 #define INTERNET_OPTION_DATAFILE_NAME 33
419 #define INTERNET_OPTION_URL 34
420 #define INTERNET_OPTION_SECURITY_CERTIFICATE 35
421 #define INTERNET_OPTION_SECURITY_KEY_BITNESS 36
422 #define INTERNET_OPTION_REFRESH 37
423 #define INTERNET_OPTION_PROXY 38
424 #define INTERNET_OPTION_SETTINGS_CHANGED 39
425 #define INTERNET_OPTION_VERSION 40
426 #define INTERNET_OPTION_USER_AGENT 41
427 #define INTERNET_OPTION_END_BROWSER_SESSION 42
428 #define INTERNET_OPTION_PROXY_USERNAME 43
429 #define INTERNET_OPTION_PROXY_PASSWORD 44
430 #define INTERNET_OPTION_CONTEXT_VALUE 45
431 #define INTERNET_OPTION_CONNECT_LIMIT 46
432 #define INTERNET_OPTION_SECURITY_SELECT_CLIENT_CERT 47
433 #define INTERNET_OPTION_POLICY 48
434 #define INTERNET_OPTION_DISCONNECTED_TIMEOUT 49
435 #define INTERNET_OPTION_CONNECTED_STATE 50
436 #define INTERNET_OPTION_IDLE_STATE 51
437 #define INTERNET_OPTION_OFFLINE_SEMANTICS 52
438 #define INTERNET_OPTION_SECONDARY_CACHE_KEY 53
439 #define INTERNET_OPTION_CALLBACK_FILTER 54
440 #define INTERNET_OPTION_CONNECT_TIME 55
441 #define INTERNET_OPTION_SEND_THROUGHPUT 56
442 #define INTERNET_OPTION_RECEIVE_THROUGHPUT 57
443 #define INTERNET_OPTION_REQUEST_PRIORITY 58
444 #define INTERNET_OPTION_HTTP_VERSION 59
445 #define INTERNET_OPTION_RESET_URLCACHE_SESSION 60
446 #define INTERNET_OPTION_ERROR_MASK 62
447 #define INTERNET_FIRST_OPTION INTERNET_OPTION_CALLBACK
448 #define INTERNET_LAST_OPTION INTERNET_OPTION_ERROR_MASK
449 #define INTERNET_PRIORITY_FOREGROUND 1000
450 #define INTERNET_HANDLE_TYPE_INTERNET 1
451 #define INTERNET_HANDLE_TYPE_CONNECT_FTP 2
452 #define INTERNET_HANDLE_TYPE_CONNECT_GOPHER 3
453 #define INTERNET_HANDLE_TYPE_CONNECT_HTTP 4
454 #define INTERNET_HANDLE_TYPE_FTP_FIND 5
455 #define INTERNET_HANDLE_TYPE_FTP_FIND_HTML 6
456 #define INTERNET_HANDLE_TYPE_FTP_FILE 7
457 #define INTERNET_HANDLE_TYPE_FTP_FILE_HTML 8
458 #define INTERNET_HANDLE_TYPE_GOPHER_FIND 9
459 #define INTERNET_HANDLE_TYPE_GOPHER_FIND_HTML 10
460 #define INTERNET_HANDLE_TYPE_GOPHER_FILE 11
461 #define INTERNET_HANDLE_TYPE_GOPHER_FILE_HTML 12
462 #define INTERNET_HANDLE_TYPE_HTTP_REQUEST 13
463 #define SECURITY_FLAG_SECURE 0x00000001
464 #define SECURITY_FLAG_STRENGTH_WEAK 0x10000000
465 #define SECURITY_FLAG_STRENGTH_MEDIUM 0x40000000
466 #define SECURITY_FLAG_STRENGTH_STRONG 0x20000000
467 #define SECURITY_FLAG_UNKNOWNBIT 0x80000000
468 #define SECURITY_FLAG_NORMALBITNESS SECURITY_FLAG_STRENGTH_WEAK
469 #define SECURITY_FLAG_SSL 0x00000002
470 #define SECURITY_FLAG_SSL3 0x00000004
471 #define SECURITY_FLAG_PCT 0x00000008
472 #define SECURITY_FLAG_PCT4 0x00000010
473 #define SECURITY_FLAG_IETFSSL4 0x00000020
474 #define SECURITY_FLAG_40BIT SECURITY_FLAG_STRENGTH_WEAK
475 #define SECURITY_FLAG_128BIT SECURITY_FLAG_STRENGTH_STRONG
476 #define SECURITY_FLAG_56BIT SECURITY_FLAG_STRENGTH_MEDIUM
477 #define SECURITY_FLAG_IGNORE_REVOCATION 0x00000080
478 #define SECURITY_FLAG_IGNORE_UNKNOWN_CA 0x00000100
479 #define SECURITY_FLAG_IGNORE_WRONG_USAGE 0x00000200
480 #define SECURITY_FLAG_IGNORE_CERT_CN_INVALID INTERNET_FLAG_IGNORE_CERT_CN_INVALID
481 #define SECURITY_FLAG_IGNORE_CERT_DATE_INVALID INTERNET_FLAG_IGNORE_CERT_DATE_INVALID
482 #define SECURITY_FLAG_IGNORE_REDIRECT_TO_HTTPS INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTPS
483 #define SECURITY_FLAG_IGNORE_REDIRECT_TO_HTTP INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTP
484 #define SECURITY_SET_MASK (SECURITY_FLAG_IGNORE_REVOCATION |\
485 SECURITY_FLAG_IGNORE_UNKNOWN_CA |\
486 SECURITY_FLAG_IGNORE_CERT_CN_INVALID |\
487 SECURITY_FLAG_IGNORE_CERT_DATE_INVALID |\
488 SECURITY_FLAG_IGNORE_WRONG_USAGE)
492 BOOLAPI
InternetGetLastResponseInfoA(LPDWORD
,LPSTR lpszBuffer
,LPDWORD
);
493 BOOLAPI
InternetGetLastResponseInfoW(LPDWORD
,LPWSTR lpszBuffer
,LPDWORD
);
494 #define InternetGetLastResponseInfo WINELIB_NAME_AW(InternetGetLastResponseInfo)
496 typedef VOID (CALLBACK
*INTERNET_STATUS_CALLBACK
)(HINTERNET
,DWORD
,DWORD
,
497 LPVOID lpvStatusInformation
,DWORD
);
499 typedef INTERNET_STATUS_CALLBACK
* LPINTERNET_STATUS_CALLBACK
;
501 INTERNETAPI INTERNET_STATUS_CALLBACK WINAPI
InternetSetStatusCallback(HINTERNET
,INTERNET_STATUS_CALLBACK
);
503 #define INTERNET_STATUS_RESOLVING_NAME 10
504 #define INTERNET_STATUS_NAME_RESOLVED 11
505 #define INTERNET_STATUS_CONNECTING_TO_SERVER 20
506 #define INTERNET_STATUS_CONNECTED_TO_SERVER 21
507 #define INTERNET_STATUS_SENDING_REQUEST 30
508 #define INTERNET_STATUS_REQUEST_SENT 31
509 #define INTERNET_STATUS_RECEIVING_RESPONSE 40
510 #define INTERNET_STATUS_RESPONSE_RECEIVED 41
511 #define INTERNET_STATUS_CTL_RESPONSE_RECEIVED 42
512 #define INTERNET_STATUS_PREFETCH 43
513 #define INTERNET_STATUS_CLOSING_CONNECTION 50
514 #define INTERNET_STATUS_CONNECTION_CLOSED 51
515 #define INTERNET_STATUS_HANDLE_CREATED 60
516 #define INTERNET_STATUS_HANDLE_CLOSING 70
517 #define INTERNET_STATUS_REQUEST_COMPLETE 100
518 #define INTERNET_STATUS_REDIRECT 110
519 #define INTERNET_STATUS_INTERMEDIATE_RESPONSE 120
520 #define INTERNET_STATUS_STATE_CHANGE 200
521 #define INTERNET_STATE_CONNECTED 0x00000001
522 #define INTERNET_STATE_DISCONNECTED 0x00000002
523 #define INTERNET_STATE_DISCONNECTED_BY_USER 0x00000010
524 #define INTERNET_STATE_IDLE 0x00000100
525 #define INTERNET_STATE_BUSY 0x00000200
527 #define INTERNET_INVALID_STATUS_CALLBACK ((INTERNET_STATUS_CALLBACK)(-1L))
529 #define FTP_TRANSFER_TYPE_UNKNOWN 0x00000000
530 #define FTP_TRANSFER_TYPE_ASCII 0x00000001
531 #define FTP_TRANSFER_TYPE_BINARY 0x00000002
532 #define FTP_TRANSFER_TYPE_MASK (FTP_TRANSFER_TYPE_ASCII | FTP_TRANSFER_TYPE_BINARY)
535 INTERNETAPI HINTERNET WINAPI
FtpFindFirstFileA(HINTERNET
,LPCSTR lpszSearchFile
,
536 LPWIN32_FIND_DATAA lpFindFileData
,DWORD
,DWORD
);
537 INTERNETAPI HINTERNET WINAPI
FtpFindFirstFileW(HINTERNET
,LPCWSTR lpszSearchFile
,
538 LPWIN32_FIND_DATAW lpFindFileData
,DWORD
,DWORD
);
539 #define FtpFindFirstFile WINELIB_NAME_AW(FtpFindFirstFile)
541 BOOLAPI
FtpGetFileA(HINTERNET
,LPCSTR
,LPCSTR
,BOOL
,DWORD
,DWORD
,DWORD
);
542 BOOLAPI
FtpGetFileW(HINTERNET
,LPCWSTR
,LPCWSTR
,BOOL
,DWORD
,DWORD
,DWORD
);
543 #define FtpGetFile WINELIB_NAME_AW(FtpGetFile)
545 BOOLAPI
FtpPutFileA(HINTERNET
,LPCSTR
,LPCSTR
,DWORD
,DWORD
);
546 BOOLAPI
FtpPutFileW(HINTERNET
,LPCWSTR
,LPCWSTR
,DWORD
,DWORD
);
547 #define FtpPutFile WINELIB_NAME_AW(FtpPutFile)
549 BOOLAPI
FtpDeleteFileA(HINTERNET
,LPCSTR
);
550 BOOLAPI
FtpDeleteFileW(HINTERNET
,LPCWSTR
);
551 #define FtpDeleteFile WINELIB_NAME_AW(FtpDeleteFile)
553 BOOLAPI
FtpRenameFileA(HINTERNET
,LPCSTR
,LPCSTR
);
554 BOOLAPI
FtpRenameFileW(HINTERNET
,LPCWSTR
,LPCWSTR
);
555 #define FtpRenameFile WINELIB_NAME_AW(FtpRenameFile)
557 INTERNETAPI HINTERNET WINAPI
FtpOpenFileA(HINTERNET
,LPCSTR
,DWORD
,DWORD
,DWORD
);
558 INTERNETAPI HINTERNET WINAPI
FtpOpenFileW(HINTERNET
,LPCWSTR
,DWORD
,DWORD
,DWORD
);
559 #define FtpOpenFile WINELIB_NAME_AW(FtpOpenFile)
561 BOOLAPI
FtpCreateDirectoryA(HINTERNET
,LPCSTR
);
562 BOOLAPI
FtpCreateDirectoryW(HINTERNET
,LPCWSTR
);
563 #define FtpCreateDirectory WINELIB_NAME_AW(FtpCreateDirectory)
565 BOOLAPI
FtpRemoveDirectoryA(HINTERNET
,LPCSTR
);
566 BOOLAPI
FtpRemoveDirectoryW(HINTERNET
,LPCWSTR
);
567 #define FtpRemoveDirectory WINELIB_NAME_AW(FtpRemoveDirectory)
569 BOOLAPI
FtpSetCurrentDirectoryA(HINTERNET
,LPCSTR
);
570 BOOLAPI
FtpSetCurrentDirectoryW(HINTERNET
,LPCWSTR
);
571 #define FtpSetCurrentDirectory WINELIB_NAME_AW(FtpSetCurrentDirectory)
573 BOOLAPI
FtpGetCurrentDirectoryA(HINTERNET
,LPSTR
,LPDWORD
);
574 BOOLAPI
FtpGetCurrentDirectoryW(HINTERNET
,LPWSTR
,LPDWORD
);
575 #define FtpGetCurrentDirectory WINELIB_NAME_AW(FtpGetCurrentDirectory)
577 #define MAX_GOPHER_DISPLAY_TEXT 128
578 #define MAX_GOPHER_SELECTOR_TEXT 256
579 #define MAX_GOPHER_HOST_NAME INTERNET_MAX_HOST_NAME_LENGTH
580 #define MAX_GOPHER_LOCATOR_LENGTH (1 \
581 + MAX_GOPHER_DISPLAY_TEXT \
583 + MAX_GOPHER_SELECTOR_TEXT \
585 + MAX_GOPHER_HOST_NAME \
587 + INTERNET_MAX_PORT_NUMBER_LENGTH \
595 CHAR DisplayString
[MAX_GOPHER_DISPLAY_TEXT
+ 1];
599 FILETIME LastModificationTime
;
600 CHAR Locator
[MAX_GOPHER_LOCATOR_LENGTH
+ 1];
601 } GOPHER_FIND_DATAA
,* LPGOPHER_FIND_DATAA
;
604 WCHAR DisplayString
[MAX_GOPHER_DISPLAY_TEXT
+ 1];
608 FILETIME LastModificationTime
;
609 WCHAR Locator
[MAX_GOPHER_LOCATOR_LENGTH
+ 1];
610 } GOPHER_FIND_DATAW
,* LPGOPHER_FIND_DATAW
;
612 DECL_WINELIB_TYPE_AW(GOPHER_FIND_DATA
)
613 DECL_WINELIB_TYPE_AW(LPGOPHER_FIND_DATA
)
615 #define GOPHER_TYPE_TEXT_FILE 0x00000001
616 #define GOPHER_TYPE_DIRECTORY 0x00000002
617 #define GOPHER_TYPE_CSO 0x00000004
618 #define GOPHER_TYPE_ERROR 0x00000008
619 #define GOPHER_TYPE_MAC_BINHEX 0x00000010
620 #define GOPHER_TYPE_DOS_ARCHIVE 0x00000020
621 #define GOPHER_TYPE_UNIX_UUENCODED 0x00000040
622 #define GOPHER_TYPE_INDEX_SERVER 0x00000080
623 #define GOPHER_TYPE_TELNET 0x00000100
624 #define GOPHER_TYPE_BINARY 0x00000200
625 #define GOPHER_TYPE_REDUNDANT 0x00000400
626 #define GOPHER_TYPE_TN3270 0x00000800
627 #define GOPHER_TYPE_GIF 0x00001000
628 #define GOPHER_TYPE_IMAGE 0x00002000
629 #define GOPHER_TYPE_BITMAP 0x00004000
630 #define GOPHER_TYPE_MOVIE 0x00008000
631 #define GOPHER_TYPE_SOUND 0x00010000
632 #define GOPHER_TYPE_HTML 0x00020000
633 #define GOPHER_TYPE_PDF 0x00040000
634 #define GOPHER_TYPE_CALENDAR 0x00080000
635 #define GOPHER_TYPE_INLINE 0x00100000
636 #define GOPHER_TYPE_UNKNOWN 0x20000000
637 #define GOPHER_TYPE_ASK 0x40000000
638 #define GOPHER_TYPE_GOPHER_PLUS 0x80000000
640 #define IS_GOPHER_FILE(type) (BOOL)(((type) & GOPHER_TYPE_FILE_MASK) ? TRUE : FALSE)
641 #define IS_GOPHER_DIRECTORY(type) (BOOL)(((type) & GOPHER_TYPE_DIRECTORY) ? TRUE : FALSE)
642 #define IS_GOPHER_PHONE_SERVER(type) (BOOL)(((type) & GOPHER_TYPE_CSO) ? TRUE : FALSE)
643 #define IS_GOPHER_ERROR(type) (BOOL)(((type) & GOPHER_TYPE_ERROR) ? TRUE : FALSE)
644 #define IS_GOPHER_INDEX_SERVER(type) (BOOL)(((type) & GOPHER_TYPE_INDEX_SERVER) ? TRUE : FALSE)
645 #define IS_GOPHER_TELNET_SESSION(type) (BOOL)(((type) & GOPHER_TYPE_TELNET) ? TRUE : FALSE)
646 #define IS_GOPHER_BACKUP_SERVER(type) (BOOL)(((type) & GOPHER_TYPE_REDUNDANT) ? TRUE : FALSE)
647 #define IS_GOPHER_TN3270_SESSION(type) (BOOL)(((type) & GOPHER_TYPE_TN3270) ? TRUE : FALSE)
648 #define IS_GOPHER_ASK(type) (BOOL)(((type) & GOPHER_TYPE_ASK) ? TRUE : FALSE)
649 #define IS_GOPHER_PLUS(type) (BOOL)(((type) & GOPHER_TYPE_GOPHER_PLUS) ? TRUE : FALSE)
650 #define IS_GOPHER_TYPE_KNOWN(type) (BOOL)(((type) & GOPHER_TYPE_UNKNOWN) ? FALSE : TRUE)
651 #define GOPHER_TYPE_FILE_MASK (GOPHER_TYPE_TEXT_FILE \
652 | GOPHER_TYPE_MAC_BINHEX \
653 | GOPHER_TYPE_DOS_ARCHIVE \
654 | GOPHER_TYPE_UNIX_UUENCODED \
655 | GOPHER_TYPE_BINARY \
657 | GOPHER_TYPE_IMAGE \
658 | GOPHER_TYPE_BITMAP \
659 | GOPHER_TYPE_MOVIE \
660 | GOPHER_TYPE_SOUND \
663 | GOPHER_TYPE_CALENDAR \
664 | GOPHER_TYPE_INLINE \
671 } GOPHER_ADMIN_ATTRIBUTE_TYPEA
,* LPGOPHER_ADMIN_ATTRIBUTE_TYPEA
;
675 LPCWSTR EmailAddress
;
676 } GOPHER_ADMIN_ATTRIBUTE_TYPEW
,* LPGOPHER_ADMIN_ATTRIBUTE_TYPEW
;
678 DECL_WINELIB_TYPE_AW(GOPHER_ADMIN_ATTRIBUTE_TYPE
)
679 DECL_WINELIB_TYPE_AW(LPGOPHER_ADMIN_ATTRIBUTE_TYPE
)
682 FILETIME DateAndTime
;
683 } GOPHER_MOD_DATE_ATTRIBUTE_TYPE
,* LPGOPHER_MOD_DATE_ATTRIBUTE_TYPE
;
687 } GOPHER_TTL_ATTRIBUTE_TYPE
,* LPGOPHER_TTL_ATTRIBUTE_TYPE
;
691 } GOPHER_SCORE_ATTRIBUTE_TYPE
,* LPGOPHER_SCORE_ATTRIBUTE_TYPE
;
696 } GOPHER_SCORE_RANGE_ATTRIBUTE_TYPE
,* LPGOPHER_SCORE_RANGE_ATTRIBUTE_TYPE
;
700 } GOPHER_SITE_ATTRIBUTE_TYPEA
,* LPGOPHER_SITE_ATTRIBUTE_TYPEA
;
704 } GOPHER_SITE_ATTRIBUTE_TYPEW
,* LPGOPHER_SITE_ATTRIBUTE_TYPEW
;
706 DECL_WINELIB_TYPE_AW(GOPHER_SITE_ATTRIBUTE_TYPE
)
707 DECL_WINELIB_TYPE_AW(LPGOPHER_SITE_ATTRIBUTE_TYPE
)
711 } GOPHER_ORGANIZATION_ATTRIBUTE_TYPEA
,* LPGOPHER_ORGANIZATION_ATTRIBUTE_TYPEA
;
714 LPCWSTR Organization
;
715 } GOPHER_ORGANIZATION_ATTRIBUTE_TYPEW
,* LPGOPHER_ORGANIZATION_ATTRIBUTE_TYPEW
;
717 DECL_WINELIB_TYPE_AW(GOPHER_ORGANIZATION_ATTRIBUTE_TYPE
)
718 DECL_WINELIB_TYPE_AW(LPGOPHER_ORGANIZATION_ATTRIBUTE_TYPE
)
722 } GOPHER_LOCATION_ATTRIBUTE_TYPEA
,* LPGOPHER_LOCATION_ATTRIBUTE_TYPEA
;
726 } GOPHER_LOCATION_ATTRIBUTE_TYPEW
,* LPGOPHER_LOCATION_ATTRIBUTE_TYPEW
;
728 DECL_WINELIB_TYPE_AW(GOPHER_LOCATION_ATTRIBUTE_TYPE
)
729 DECL_WINELIB_TYPE_AW(LPGOPHER_LOCATION_ATTRIBUTE_TYPE
)
738 } GOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE
,* LPGOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE
;
742 } GOPHER_TIMEZONE_ATTRIBUTE_TYPE
,* LPGOPHER_TIMEZONE_ATTRIBUTE_TYPE
;
746 } GOPHER_PROVIDER_ATTRIBUTE_TYPEA
,* LPGOPHER_PROVIDER_ATTRIBUTE_TYPEA
;
750 } GOPHER_PROVIDER_ATTRIBUTE_TYPEW
,* LPGOPHER_PROVIDER_ATTRIBUTE_TYPEW
;
752 DECL_WINELIB_TYPE_AW(GOPHER_PROVIDER_ATTRIBUTE_TYPE
)
753 DECL_WINELIB_TYPE_AW(LPGOPHER_PROVIDER_ATTRIBUTE_TYPE
)
757 } GOPHER_VERSION_ATTRIBUTE_TYPEA
,* LPGOPHER_VERSION_ATTRIBUTE_TYPEA
;
761 } GOPHER_VERSION_ATTRIBUTE_TYPEW
,* LPGOPHER_VERSION_ATTRIBUTE_TYPEW
;
763 DECL_WINELIB_TYPE_AW(GOPHER_VERSION_ATTRIBUTE_TYPE
)
764 DECL_WINELIB_TYPE_AW(LPGOPHER_VERSION_ATTRIBUTE_TYPE
)
767 LPCSTR ShortAbstract
;
769 } GOPHER_ABSTRACT_ATTRIBUTE_TYPEA
,* LPGOPHER_ABSTRACT_ATTRIBUTE_TYPEA
;
772 LPCWSTR ShortAbstract
;
773 LPCWSTR AbstractFile
;
774 } GOPHER_ABSTRACT_ATTRIBUTE_TYPEW
,* LPGOPHER_ABSTRACT_ATTRIBUTE_TYPEW
;
776 DECL_WINELIB_TYPE_AW(GOPHER_ABSTRACT_ATTRIBUTE_TYPE
)
777 DECL_WINELIB_TYPE_AW(LPGOPHER_ABSTRACT_ATTRIBUTE_TYPE
)
783 } GOPHER_VIEW_ATTRIBUTE_TYPEA
,* LPGOPHER_VIEW_ATTRIBUTE_TYPEA
;
789 } GOPHER_VIEW_ATTRIBUTE_TYPEW
,* LPGOPHER_VIEW_ATTRIBUTE_TYPEW
;
791 DECL_WINELIB_TYPE_AW(GOPHER_VIEW_ATTRIBUTE_TYPE
)
792 DECL_WINELIB_TYPE_AW(LPGOPHER_VIEW_ATTRIBUTE_TYPE
)
796 } GOPHER_VERONICA_ATTRIBUTE_TYPE
,* LPGOPHER_VERONICA_ATTRIBUTE_TYPE
;
801 } GOPHER_ASK_ATTRIBUTE_TYPEA
,* LPGOPHER_ASK_ATTRIBUTE_TYPEA
;
804 LPCWSTR QuestionType
;
805 LPCWSTR QuestionText
;
806 } GOPHER_ASK_ATTRIBUTE_TYPEW
,* LPGOPHER_ASK_ATTRIBUTE_TYPEW
;
808 DECL_WINELIB_TYPE_AW(GOPHER_ASK_ATTRIBUTE_TYPE
)
809 DECL_WINELIB_TYPE_AW(LPGOPHER_ASK_ATTRIBUTE_TYPE
)
813 } GOPHER_UNKNOWN_ATTRIBUTE_TYPEA
,* LPGOPHER_UNKNOWN_ATTRIBUTE_TYPEA
;
817 } GOPHER_UNKNOWN_ATTRIBUTE_TYPEW
,* LPGOPHER_UNKNOWN_ATTRIBUTE_TYPEW
;
819 DECL_WINELIB_TYPE_AW(GOPHER_UNKNOWN_ATTRIBUTE_TYPE
)
820 DECL_WINELIB_TYPE_AW(LPGOPHER_UNKNOWN_ATTRIBUTE_TYPE
)
826 GOPHER_ADMIN_ATTRIBUTE_TYPEA Admin
;
827 GOPHER_MOD_DATE_ATTRIBUTE_TYPE ModDate
;
828 GOPHER_TTL_ATTRIBUTE_TYPE Ttl
;
829 GOPHER_SCORE_ATTRIBUTE_TYPE Score
;
830 GOPHER_SCORE_RANGE_ATTRIBUTE_TYPE ScoreRange
;
831 GOPHER_SITE_ATTRIBUTE_TYPEA Site
;
832 GOPHER_ORGANIZATION_ATTRIBUTE_TYPEA Organization
;
833 GOPHER_LOCATION_ATTRIBUTE_TYPEA Location
;
834 GOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE GeographicalLocation
;
835 GOPHER_TIMEZONE_ATTRIBUTE_TYPE TimeZone
;
836 GOPHER_PROVIDER_ATTRIBUTE_TYPEA Provider
;
837 GOPHER_VERSION_ATTRIBUTE_TYPEA Version
;
838 GOPHER_ABSTRACT_ATTRIBUTE_TYPEA Abstract
;
839 GOPHER_VIEW_ATTRIBUTE_TYPEA View
;
840 GOPHER_VERONICA_ATTRIBUTE_TYPE Veronica
;
841 GOPHER_ASK_ATTRIBUTE_TYPEA Ask
;
842 GOPHER_UNKNOWN_ATTRIBUTE_TYPEA Unknown
;
844 } GOPHER_ATTRIBUTE_TYPEA
, *LPGOPHER_ATTRIBUTE_TYPEA
;
850 GOPHER_ADMIN_ATTRIBUTE_TYPEW Admin
;
851 GOPHER_MOD_DATE_ATTRIBUTE_TYPE ModDate
;
852 GOPHER_TTL_ATTRIBUTE_TYPE Ttl
;
853 GOPHER_SCORE_ATTRIBUTE_TYPE Score
;
854 GOPHER_SCORE_RANGE_ATTRIBUTE_TYPE ScoreRange
;
855 GOPHER_SITE_ATTRIBUTE_TYPEW Site
;
856 GOPHER_ORGANIZATION_ATTRIBUTE_TYPEW Organization
;
857 GOPHER_LOCATION_ATTRIBUTE_TYPEW Location
;
858 GOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE GeographicalLocation
;
859 GOPHER_TIMEZONE_ATTRIBUTE_TYPE TimeZone
;
860 GOPHER_PROVIDER_ATTRIBUTE_TYPEW Provider
;
861 GOPHER_VERSION_ATTRIBUTE_TYPEW Version
;
862 GOPHER_ABSTRACT_ATTRIBUTE_TYPEW Abstract
;
863 GOPHER_VIEW_ATTRIBUTE_TYPEW View
;
864 GOPHER_VERONICA_ATTRIBUTE_TYPE Veronica
;
865 GOPHER_ASK_ATTRIBUTE_TYPEW Ask
;
866 GOPHER_UNKNOWN_ATTRIBUTE_TYPEW Unknown
;
868 } GOPHER_ATTRIBUTE_TYPEW
, *LPGOPHER_ATTRIBUTE_TYPEW
;
870 DECL_WINELIB_TYPE_AW(GOPHER_ATTRIBUTE_TYPE
)
871 DECL_WINELIB_TYPE_AW(LPGOPHER_ATTRIBUTE_TYPE
)
873 #define MAX_GOPHER_CATEGORY_NAME 128
874 #define MAX_GOPHER_ATTRIBUTE_NAME 128
875 #define MIN_GOPHER_ATTRIBUTE_LENGTH 256
877 #define GOPHER_INFO_CATEGORY TEXT("+INFO")
878 #define GOPHER_ADMIN_CATEGORY TEXT("+ADMIN")
879 #define GOPHER_VIEWS_CATEGORY TEXT("+VIEWS")
880 #define GOPHER_ABSTRACT_CATEGORY TEXT("+ABSTRACT")
881 #define GOPHER_VERONICA_CATEGORY TEXT("+VERONICA")
882 #define GOPHER_ADMIN_ATTRIBUTE TEXT("Admin")
883 #define GOPHER_MOD_DATE_ATTRIBUTE TEXT("Mod-Date")
884 #define GOPHER_TTL_ATTRIBUTE TEXT("TTL")
885 #define GOPHER_SCORE_ATTRIBUTE TEXT("Score")
886 #define GOPHER_RANGE_ATTRIBUTE TEXT("Score-range")
887 #define GOPHER_SITE_ATTRIBUTE TEXT("Site")
888 #define GOPHER_ORG_ATTRIBUTE TEXT("Org")
889 #define GOPHER_LOCATION_ATTRIBUTE TEXT("Loc")
890 #define GOPHER_GEOG_ATTRIBUTE TEXT("Geog")
891 #define GOPHER_TIMEZONE_ATTRIBUTE TEXT("TZ")
892 #define GOPHER_PROVIDER_ATTRIBUTE TEXT("Provider")
893 #define GOPHER_VERSION_ATTRIBUTE TEXT("Version")
894 #define GOPHER_ABSTRACT_ATTRIBUTE TEXT("Abstract")
895 #define GOPHER_VIEW_ATTRIBUTE TEXT("View")
896 #define GOPHER_TREEWALK_ATTRIBUTE TEXT("treewalk")
898 #define GOPHER_ATTRIBUTE_ID_BASE 0xabcccc00
900 #define GOPHER_CATEGORY_ID_ALL (GOPHER_ATTRIBUTE_ID_BASE + 1)
901 #define GOPHER_CATEGORY_ID_INFO (GOPHER_ATTRIBUTE_ID_BASE + 2)
902 #define GOPHER_CATEGORY_ID_ADMIN (GOPHER_ATTRIBUTE_ID_BASE + 3)
903 #define GOPHER_CATEGORY_ID_VIEWS (GOPHER_ATTRIBUTE_ID_BASE + 4)
904 #define GOPHER_CATEGORY_ID_ABSTRACT (GOPHER_ATTRIBUTE_ID_BASE + 5)
905 #define GOPHER_CATEGORY_ID_VERONICA (GOPHER_ATTRIBUTE_ID_BASE + 6)
906 #define GOPHER_CATEGORY_ID_ASK (GOPHER_ATTRIBUTE_ID_BASE + 7)
907 #define GOPHER_CATEGORY_ID_UNKNOWN (GOPHER_ATTRIBUTE_ID_BASE + 8)
909 #define GOPHER_ATTRIBUTE_ID_ALL (GOPHER_ATTRIBUTE_ID_BASE + 9)
910 #define GOPHER_ATTRIBUTE_ID_ADMIN (GOPHER_ATTRIBUTE_ID_BASE + 10)
911 #define GOPHER_ATTRIBUTE_ID_MOD_DATE (GOPHER_ATTRIBUTE_ID_BASE + 11)
912 #define GOPHER_ATTRIBUTE_ID_TTL (GOPHER_ATTRIBUTE_ID_BASE + 12)
913 #define GOPHER_ATTRIBUTE_ID_SCORE (GOPHER_ATTRIBUTE_ID_BASE + 13)
914 #define GOPHER_ATTRIBUTE_ID_RANGE (GOPHER_ATTRIBUTE_ID_BASE + 14)
915 #define GOPHER_ATTRIBUTE_ID_SITE (GOPHER_ATTRIBUTE_ID_BASE + 15)
916 #define GOPHER_ATTRIBUTE_ID_ORG (GOPHER_ATTRIBUTE_ID_BASE + 16)
917 #define GOPHER_ATTRIBUTE_ID_LOCATION (GOPHER_ATTRIBUTE_ID_BASE + 17)
918 #define GOPHER_ATTRIBUTE_ID_GEOG (GOPHER_ATTRIBUTE_ID_BASE + 18)
919 #define GOPHER_ATTRIBUTE_ID_TIMEZONE (GOPHER_ATTRIBUTE_ID_BASE + 19)
920 #define GOPHER_ATTRIBUTE_ID_PROVIDER (GOPHER_ATTRIBUTE_ID_BASE + 20)
921 #define GOPHER_ATTRIBUTE_ID_VERSION (GOPHER_ATTRIBUTE_ID_BASE + 21)
922 #define GOPHER_ATTRIBUTE_ID_ABSTRACT (GOPHER_ATTRIBUTE_ID_BASE + 22)
923 #define GOPHER_ATTRIBUTE_ID_VIEW (GOPHER_ATTRIBUTE_ID_BASE + 23)
924 #define GOPHER_ATTRIBUTE_ID_TREEWALK (GOPHER_ATTRIBUTE_ID_BASE + 24)
925 #define GOPHER_ATTRIBUTE_ID_UNKNOWN (GOPHER_ATTRIBUTE_ID_BASE + 25)
927 BOOLAPI
GopherCreateLocatorA(LPCSTR
,INTERNET_PORT
,LPCSTR lpszDisplayString
,
928 LPCSTR lpszSelectorString
,DWORD
,LPSTR lpszLocator
,LPDWORD
);
929 BOOLAPI
GopherCreateLocatorW(LPCWSTR
,INTERNET_PORT
,LPCWSTR lpszDisplayString
,
930 LPCWSTR lpszSelectorString
,DWORD
,LPWSTR lpszLocator
,LPDWORD
);
931 #define GopherCreateLocator WINELIB_NAME_AW(GopherCreateLocator)
933 BOOLAPI
GopherGetLocatorTypeA(LPCSTR
,LPDWORD
);
934 BOOLAPI
GopherGetLocatorTypeW(LPCWSTR
,LPDWORD
);
935 #define GopherGetLocatorType WINELIB_NAME_AW(GopherGetLocatorType)
937 INTERNETAPI HINTERNET WINAPI
GopherFindFirstFileA(HINTERNET
,LPCSTR lpszLocator
,
938 LPCSTR lpszSearchString
,LPGOPHER_FIND_DATAA lpFindData
,DWORD
,DWORD
);
939 INTERNETAPI HINTERNET WINAPI
GopherFindFirstFileW(HINTERNET
,LPCWSTR lpszLocator
,
940 LPCWSTR lpszSearchString
,LPGOPHER_FIND_DATAW lpFindData
,DWORD
,DWORD
);
941 #define GopherFindFirstFile WINELIB_NAME_AW(GopherFindFirstFile)
943 INTERNETAPI HINTERNET WINAPI
GopherOpenFileA(HINTERNET
,LPCSTR
,LPCSTR lpszView
,DWORD
,DWORD
);
944 INTERNETAPI HINTERNET WINAPI
GopherOpenFileW(HINTERNET
,LPCWSTR
,LPCWSTR lpszView
,DWORD
,DWORD
);
945 #define GopherOpenFile WINELIB_NAME_AW(GopherOpenFile)
947 typedef BOOL (CALLBACK
*GOPHER_ATTRIBUTE_ENUMERATORA
)(LPGOPHER_ATTRIBUTE_TYPEA
,DWORD
);
948 typedef BOOL (CALLBACK
*GOPHER_ATTRIBUTE_ENUMERATORW
)(LPGOPHER_ATTRIBUTE_TYPEW
,DWORD
);
950 DECL_WINELIB_TYPE_AW(GOPHER_ATTRIBUTE_ENUMERATOR
)
952 BOOLAPI
GopherGetAttributeA(HINTERNET
,LPCSTR
,LPCSTR lpszAttributeName
,LPBYTE
,
953 DWORD
,LPDWORD
,GOPHER_ATTRIBUTE_ENUMERATORA lpfnEnumerator
,DWORD
);
954 BOOLAPI
GopherGetAttributeW(HINTERNET
,LPCWSTR
,LPCWSTR lpszAttributeName
,LPBYTE
,
955 DWORD
,LPDWORD
,GOPHER_ATTRIBUTE_ENUMERATORW lpfnEnumerator
,DWORD
);
956 #define GopherGetAttribute WINELIB_NAME_AW(GopherGetAttribute)
958 #define HTTP_MAJOR_VERSION 1
959 #define HTTP_MINOR_VERSION 0
960 #define HTTP_VERSION TEXT("HTTP/1.0")
961 #define HTTP_QUERY_MIME_VERSION 0
962 #define HTTP_QUERY_CONTENT_TYPE 1
963 #define HTTP_QUERY_CONTENT_TRANSFER_ENCODING 2
964 #define HTTP_QUERY_CONTENT_ID 3
965 #define HTTP_QUERY_CONTENT_DESCRIPTION 4
966 #define HTTP_QUERY_CONTENT_LENGTH 5
967 #define HTTP_QUERY_CONTENT_LANGUAGE 6
968 #define HTTP_QUERY_ALLOW 7
969 #define HTTP_QUERY_PUBLIC 8
970 #define HTTP_QUERY_DATE 9
971 #define HTTP_QUERY_EXPIRES 10
972 #define HTTP_QUERY_LAST_MODIFIED 11
973 #define HTTP_QUERY_MESSAGE_ID 12
974 #define HTTP_QUERY_URI 13
975 #define HTTP_QUERY_DERIVED_FROM 14
976 #define HTTP_QUERY_COST 15
977 #define HTTP_QUERY_LINK 16
978 #define HTTP_QUERY_PRAGMA 17
979 #define HTTP_QUERY_VERSION 18
980 #define HTTP_QUERY_STATUS_CODE 19
981 #define HTTP_QUERY_STATUS_TEXT 20
982 #define HTTP_QUERY_RAW_HEADERS 21
983 #define HTTP_QUERY_RAW_HEADERS_CRLF 22
984 #define HTTP_QUERY_CONNECTION 23
985 #define HTTP_QUERY_ACCEPT 24
986 #define HTTP_QUERY_ACCEPT_CHARSET 25
987 #define HTTP_QUERY_ACCEPT_ENCODING 26
988 #define HTTP_QUERY_ACCEPT_LANGUAGE 27
989 #define HTTP_QUERY_AUTHORIZATION 28
990 #define HTTP_QUERY_CONTENT_ENCODING 29
991 #define HTTP_QUERY_FORWARDED 30
992 #define HTTP_QUERY_FROM 31
993 #define HTTP_QUERY_IF_MODIFIED_SINCE 32
994 #define HTTP_QUERY_LOCATION 33
995 #define HTTP_QUERY_ORIG_URI 34
996 #define HTTP_QUERY_REFERER 35
997 #define HTTP_QUERY_RETRY_AFTER 36
998 #define HTTP_QUERY_SERVER 37
999 #define HTTP_QUERY_TITLE 38
1000 #define HTTP_QUERY_USER_AGENT 39
1001 #define HTTP_QUERY_WWW_AUTHENTICATE 40
1002 #define HTTP_QUERY_PROXY_AUTHENTICATE 41
1003 #define HTTP_QUERY_ACCEPT_RANGES 42
1004 #define HTTP_QUERY_SET_COOKIE 43
1005 #define HTTP_QUERY_COOKIE 44
1006 #define HTTP_QUERY_REQUEST_METHOD 45
1007 #define HTTP_QUERY_REFRESH 46
1008 #define HTTP_QUERY_CONTENT_DISPOSITION 47
1009 #define HTTP_QUERY_AGE 48
1010 #define HTTP_QUERY_CACHE_CONTROL 49
1011 #define HTTP_QUERY_CONTENT_BASE 50
1012 #define HTTP_QUERY_CONTENT_LOCATION 51
1013 #define HTTP_QUERY_CONTENT_MD5 52
1014 #define HTTP_QUERY_CONTENT_RANGE 53
1015 #define HTTP_QUERY_ETAG 54
1016 #define HTTP_QUERY_HOST 55
1017 #define HTTP_QUERY_IF_MATCH 56
1018 #define HTTP_QUERY_IF_NONE_MATCH 57
1019 #define HTTP_QUERY_IF_RANGE 58
1020 #define HTTP_QUERY_IF_UNMODIFIED_SINCE 59
1021 #define HTTP_QUERY_MAX_FORWARDS 60
1022 #define HTTP_QUERY_PROXY_AUTHORIZATION 61
1023 #define HTTP_QUERY_RANGE 62
1024 #define HTTP_QUERY_TRANSFER_ENCODING 63
1025 #define HTTP_QUERY_UPGRADE 64
1026 #define HTTP_QUERY_VARY 65
1027 #define HTTP_QUERY_VIA 66
1028 #define HTTP_QUERY_WARNING 67
1029 #define HTTP_QUERY_MAX 67
1030 #define HTTP_QUERY_CUSTOM 65535
1031 #define HTTP_QUERY_FLAG_REQUEST_HEADERS 0x80000000
1032 #define HTTP_QUERY_FLAG_SYSTEMTIME 0x40000000
1033 #define HTTP_QUERY_FLAG_NUMBER 0x20000000
1034 #define HTTP_QUERY_FLAG_COALESCE 0x10000000
1035 #define HTTP_QUERY_MODIFIER_FLAGS_MASK (HTTP_QUERY_FLAG_REQUEST_HEADERS \
1036 | HTTP_QUERY_FLAG_SYSTEMTIME \
1037 | HTTP_QUERY_FLAG_NUMBER \
1038 | HTTP_QUERY_FLAG_COALESCE \
1040 #define HTTP_QUERY_HEADER_MASK (~HTTP_QUERY_MODIFIER_FLAGS_MASK)
1042 #define HTTP_STATUS_CONTINUE 100
1043 #define HTTP_STATUS_SWITCH_PROTOCOLS 101
1044 #define HTTP_STATUS_OK 200
1045 #define HTTP_STATUS_CREATED 201
1046 #define HTTP_STATUS_ACCEPTED 202
1047 #define HTTP_STATUS_PARTIAL 203
1048 #define HTTP_STATUS_NO_CONTENT 204
1049 #define HTTP_STATUS_RESET_CONTENT 205
1050 #define HTTP_STATUS_PARTIAL_CONTENT 206
1051 #define HTTP_STATUS_AMBIGUOUS 300
1052 #define HTTP_STATUS_MOVED 301
1053 #define HTTP_STATUS_REDIRECT 302
1054 #define HTTP_STATUS_REDIRECT_METHOD 303
1055 #define HTTP_STATUS_NOT_MODIFIED 304
1056 #define HTTP_STATUS_USE_PROXY 305
1057 #define HTTP_STATUS_REDIRECT_KEEP_VERB 307
1058 #define HTTP_STATUS_BAD_REQUEST 400
1059 #define HTTP_STATUS_DENIED 401
1060 #define HTTP_STATUS_PAYMENT_REQ 402
1061 #define HTTP_STATUS_FORBIDDEN 403
1062 #define HTTP_STATUS_NOT_FOUND 404
1063 #define HTTP_STATUS_BAD_METHOD 405
1064 #define HTTP_STATUS_NONE_ACCEPTABLE 406
1065 #define HTTP_STATUS_PROXY_AUTH_REQ 407
1066 #define HTTP_STATUS_REQUEST_TIMEOUT 408
1067 #define HTTP_STATUS_CONFLICT 409
1068 #define HTTP_STATUS_GONE 410
1069 #define HTTP_STATUS_LENGTH_REQUIRED 411
1070 #define HTTP_STATUS_PRECOND_FAILED 412
1071 #define HTTP_STATUS_REQUEST_TOO_LARGE 413
1072 #define HTTP_STATUS_URI_TOO_LONG 414
1073 #define HTTP_STATUS_UNSUPPORTED_MEDIA 415
1074 #define HTTP_STATUS_SERVER_ERROR 500
1075 #define HTTP_STATUS_NOT_SUPPORTED 501
1076 #define HTTP_STATUS_BAD_GATEWAY 502
1077 #define HTTP_STATUS_SERVICE_UNAVAIL 503
1078 #define HTTP_STATUS_GATEWAY_TIMEOUT 504
1079 #define HTTP_STATUS_VERSION_NOT_SUP 505
1080 #define HTTP_STATUS_FIRST HTTP_STATUS_CONTINUE
1081 #define HTTP_STATUS_LAST HTTP_STATUS_VERSION_NOT_SUP
1084 INTERNETAPI HINTERNET WINAPI
HttpOpenRequestA(HINTERNET
,LPCSTR
,LPCSTR
,LPCSTR
,
1085 LPCSTR lpszReferrer
,LPCSTR
* ,DWORD
,DWORD
);
1086 INTERNETAPI HINTERNET WINAPI
HttpOpenRequestW(HINTERNET
,LPCWSTR
,LPCWSTR
,LPCWSTR
,
1087 LPCWSTR lpszReferrer
,LPCWSTR
* ,DWORD
,DWORD
);
1088 #define HttpOpenRequest WINELIB_NAME_AW(HttpOpenRequest)
1090 BOOLAPI
HttpAddRequestHeadersA(HINTERNET
,LPCSTR
,DWORD
,DWORD
);
1091 BOOLAPI
HttpAddRequestHeadersW(HINTERNET
,LPCWSTR
,DWORD
,DWORD
);
1092 #define HttpAddRequestHeaders WINELIB_NAME_AW(HttpAddRequestHeaders)
1094 #define HTTP_ADDREQ_INDEX_MASK 0x0000FFFF
1095 #define HTTP_ADDREQ_FLAGS_MASK 0xFFFF0000
1096 #define HTTP_ADDREQ_FLAG_ADD_IF_NEW 0x10000000
1097 #define HTTP_ADDREQ_FLAG_ADD 0x20000000
1098 #define HTTP_ADDREQ_FLAG_COALESCE_WITH_COMMA 0x40000000
1099 #define HTTP_ADDREQ_FLAG_COALESCE_WITH_SEMICOLON 0x01000000
1100 #define HTTP_ADDREQ_FLAG_COALESCE HTTP_ADDREQ_FLAG_COALESCE_WITH_COMMA
1101 #define HTTP_ADDREQ_FLAG_REPLACE 0x80000000
1103 BOOLAPI
HttpSendRequestA(HINTERNET
,LPCSTR lpszHeaders
,DWORD
,LPVOID lpOptional
,DWORD
);
1104 BOOLAPI
HttpSendRequestW(HINTERNET
,LPCWSTR lpszHeaders
,DWORD
,LPVOID lpOptional
,DWORD
);
1105 #define HttpSendRequest WINELIB_NAME_AW(HttpSendRequest)
1107 INTERNETAPI BOOL WINAPI
HttpSendRequestExA(HINTERNET
,LPINTERNET_BUFFERSA lpBuffersIn
,
1108 LPINTERNET_BUFFERSA lpBuffersOut
,DWORD
,DWORD
);
1109 INTERNETAPI BOOL WINAPI
HttpSendRequestExW(HINTERNET
,LPINTERNET_BUFFERSW lpBuffersIn
,
1110 LPINTERNET_BUFFERSW lpBuffersOut
,DWORD
,DWORD
);
1111 #define HttpSendRequestEx WINELIB_NAME_AW(HttpSendRequestEx)
1113 #define HSR_ASYNC WININET_API_FLAG_ASYNC
1114 #define HSR_SYNC WININET_API_FLAG_SYNC
1115 #define HSR_USE_CONTEXT WININET_API_FLAG_USE_CONTEXT
1116 #define HSR_INITIATE 0x00000008
1117 #define HSR_DOWNLOAD 0x00000010
1118 #define HSR_CHUNKED 0x00000020
1120 INTERNETAPI BOOL WINAPI
HttpEndRequestA(HINTERNET
,LPINTERNET_BUFFERSA lpBuffersOut
,DWORD
,DWORD
);
1121 INTERNETAPI BOOL WINAPI
HttpEndRequestW(HINTERNET
,LPINTERNET_BUFFERSW lpBuffersOut
,DWORD
,DWORD
);
1122 #define HttpEndRequest WINELIB_NAME_AW(HttpEndRequest)
1124 BOOLAPI
HttpQueryInfoA(HINTERNET
,DWORD
,LPVOID lpBuffer
,LPDWORD
,LPDWORD lpdwIndex
);
1125 BOOLAPI
HttpQueryInfoW(HINTERNET
,DWORD
,LPVOID lpBuffer
,LPDWORD
,LPDWORD lpdwIndex
);
1126 #define HttpQueryInfo WINELIB_NAME_AW(HttpQueryInfo)
1128 BOOLAPI
InternetSetCookieA(LPCSTR
,LPCSTR
,LPCSTR
);
1129 BOOLAPI
InternetSetCookieW(LPCSTR
,LPCWSTR
,LPCWSTR
);
1130 #define InternetSetCookie WINELIB_NAME_AW(InternetSetCookie)
1132 BOOLAPI
InternetGetCookieA(LPCSTR
,LPCSTR
,LPSTR
,LPDWORD
);
1133 BOOLAPI
InternetGetCookieW(LPCSTR
,LPCWSTR
,LPWSTR
,LPDWORD
);
1134 #define InternetGetCookie WINELIB_NAME_AW(InternetGetCookie)
1136 INTERNETAPI DWORD WINAPI
InternetAttemptConnect(DWORD
);
1137 BOOLAPI
InternetCheckConnectionA(LPCSTR
,DWORD
,DWORD
);
1138 BOOLAPI
InternetCheckConnectionW(LPCWSTR
,DWORD
,DWORD
);
1139 #define InternetCheckConnection WINELIB_NAME_AW(InternetCheckConnection)
1141 #define FLAG_ICC_FORCE_CONNECTION 0x00000001
1143 #define FLAGS_ERROR_UI_FILTER_FOR_ERRORS 0x01
1144 #define FLAGS_ERROR_UI_FLAGS_CHANGE_OPTIONS 0x02
1145 #define FLAGS_ERROR_UI_FLAGS_GENERATE_DATA 0x04
1146 #define FLAGS_ERROR_UI_FLAGS_NO_UI 0x08
1147 #define FLAGS_ERROR_UI_SERIALIZE_DIALOGS 0x10
1149 DWORD
InternetAuthNotifyCallback ( DWORD
,DWORD
,LPVOID
);
1150 typedef DWORD (CALLBACK
*PFN_AUTH_NOTIFY
) (DWORD
,DWORD
,LPVOID
);
1156 PFN_AUTH_NOTIFY pfnNotify
;
1159 INTERNET_AUTH_NOTIFY_DATA
;
1162 INTERNETAPI DWORD WINAPI
InternetErrorDlg(HWND
,HINTERNET
,DWORD
,DWORD
,LPVOID
*);
1163 INTERNETAPI DWORD WINAPI
InternetConfirmZoneCrossingA(HWND
,LPSTR
,LPSTR
,BOOL
);
1164 INTERNETAPI DWORD WINAPI
InternetConfirmZoneCrossingW(HWND
,LPWSTR
,LPWSTR
,BOOL
);
1165 #define InternetConfirmZoneCrossing WINELIB_NAME_AW(InternetConfirmZoneCrossing)
1167 #define INTERNET_ERROR_BASE 12000
1169 #define ERROR_INTERNET_OUT_OF_HANDLES (INTERNET_ERROR_BASE + 1)
1170 #define ERROR_INTERNET_TIMEOUT (INTERNET_ERROR_BASE + 2)
1171 #define ERROR_INTERNET_EXTENDED_ERROR (INTERNET_ERROR_BASE + 3)
1172 #define ERROR_INTERNET_INTERNAL_ERROR (INTERNET_ERROR_BASE + 4)
1173 #define ERROR_INTERNET_INVALID_URL (INTERNET_ERROR_BASE + 5)
1174 #define ERROR_INTERNET_UNRECOGNIZED_SCHEME (INTERNET_ERROR_BASE + 6)
1175 #define ERROR_INTERNET_NAME_NOT_RESOLVED (INTERNET_ERROR_BASE + 7)
1176 #define ERROR_INTERNET_PROTOCOL_NOT_FOUND (INTERNET_ERROR_BASE + 8)
1177 #define ERROR_INTERNET_INVALID_OPTION (INTERNET_ERROR_BASE + 9)
1178 #define ERROR_INTERNET_BAD_OPTION_LENGTH (INTERNET_ERROR_BASE + 10)
1179 #define ERROR_INTERNET_OPTION_NOT_SETTABLE (INTERNET_ERROR_BASE + 11)
1180 #define ERROR_INTERNET_SHUTDOWN (INTERNET_ERROR_BASE + 12)
1181 #define ERROR_INTERNET_INCORRECT_USER_NAME (INTERNET_ERROR_BASE + 13)
1182 #define ERROR_INTERNET_INCORRECT_PASSWORD (INTERNET_ERROR_BASE + 14)
1183 #define ERROR_INTERNET_LOGIN_FAILURE (INTERNET_ERROR_BASE + 15)
1184 #define ERROR_INTERNET_INVALID_OPERATION (INTERNET_ERROR_BASE + 16)
1185 #define ERROR_INTERNET_OPERATION_CANCELLED (INTERNET_ERROR_BASE + 17)
1186 #define ERROR_INTERNET_INCORRECT_HANDLE_TYPE (INTERNET_ERROR_BASE + 18)
1187 #define ERROR_INTERNET_INCORRECT_HANDLE_STATE (INTERNET_ERROR_BASE + 19)
1188 #define ERROR_INTERNET_NOT_PROXY_REQUEST (INTERNET_ERROR_BASE + 20)
1189 #define ERROR_INTERNET_REGISTRY_VALUE_NOT_FOUND (INTERNET_ERROR_BASE + 21)
1190 #define ERROR_INTERNET_BAD_REGISTRY_PARAMETER (INTERNET_ERROR_BASE + 22)
1191 #define ERROR_INTERNET_NO_DIRECT_ACCESS (INTERNET_ERROR_BASE + 23)
1192 #define ERROR_INTERNET_NO_CONTEXT (INTERNET_ERROR_BASE + 24)
1193 #define ERROR_INTERNET_NO_CALLBACK (INTERNET_ERROR_BASE + 25)
1194 #define ERROR_INTERNET_REQUEST_PENDING (INTERNET_ERROR_BASE + 26)
1195 #define ERROR_INTERNET_INCORRECT_FORMAT (INTERNET_ERROR_BASE + 27)
1196 #define ERROR_INTERNET_ITEM_NOT_FOUND (INTERNET_ERROR_BASE + 28)
1197 #define ERROR_INTERNET_CANNOT_CONNECT (INTERNET_ERROR_BASE + 29)
1198 #define ERROR_INTERNET_CONNECTION_ABORTED (INTERNET_ERROR_BASE + 30)
1199 #define ERROR_INTERNET_CONNECTION_RESET (INTERNET_ERROR_BASE + 31)
1200 #define ERROR_INTERNET_FORCE_RETRY (INTERNET_ERROR_BASE + 32)
1201 #define ERROR_INTERNET_INVALID_PROXY_REQUEST (INTERNET_ERROR_BASE + 33)
1202 #define ERROR_INTERNET_NEED_UI (INTERNET_ERROR_BASE + 34)
1203 #define ERROR_INTERNET_HANDLE_EXISTS (INTERNET_ERROR_BASE + 36)
1204 #define ERROR_INTERNET_SEC_CERT_DATE_INVALID (INTERNET_ERROR_BASE + 37)
1205 #define ERROR_INTERNET_SEC_CERT_CN_INVALID (INTERNET_ERROR_BASE + 38)
1206 #define ERROR_INTERNET_HTTP_TO_HTTPS_ON_REDIR (INTERNET_ERROR_BASE + 39)
1207 #define ERROR_INTERNET_HTTPS_TO_HTTP_ON_REDIR (INTERNET_ERROR_BASE + 40)
1208 #define ERROR_INTERNET_MIXED_SECURITY (INTERNET_ERROR_BASE + 41)
1209 #define ERROR_INTERNET_CHG_POST_IS_NON_SECURE (INTERNET_ERROR_BASE + 42)
1210 #define ERROR_INTERNET_POST_IS_NON_SECURE (INTERNET_ERROR_BASE + 43)
1211 #define ERROR_INTERNET_CLIENT_AUTH_CERT_NEEDED (INTERNET_ERROR_BASE + 44)
1212 #define ERROR_INTERNET_INVALID_CA (INTERNET_ERROR_BASE + 45)
1213 #define ERROR_INTERNET_CLIENT_AUTH_NOT_SETUP (INTERNET_ERROR_BASE + 46)
1214 #define ERROR_INTERNET_ASYNC_THREAD_FAILED (INTERNET_ERROR_BASE + 47)
1215 #define ERROR_INTERNET_REDIRECT_SCHEME_CHANGE (INTERNET_ERROR_BASE + 48)
1216 #define ERROR_INTERNET_DIALOG_PENDING (INTERNET_ERROR_BASE + 49)
1217 #define ERROR_INTERNET_RETRY_DIALOG (INTERNET_ERROR_BASE + 50)
1218 #define ERROR_INTERNET_HTTPS_HTTP_SUBMIT_REDIR (INTERNET_ERROR_BASE + 52)
1219 #define ERROR_INTERNET_INSERT_CDROM (INTERNET_ERROR_BASE + 53)
1220 #define ERROR_FTP_TRANSFER_IN_PROGRESS (INTERNET_ERROR_BASE + 110)
1221 #define ERROR_FTP_DROPPED (INTERNET_ERROR_BASE + 111)
1222 #define ERROR_FTP_NO_PASSIVE_MODE (INTERNET_ERROR_BASE + 112)
1223 #define ERROR_GOPHER_PROTOCOL_ERROR (INTERNET_ERROR_BASE + 130)
1224 #define ERROR_GOPHER_NOT_FILE (INTERNET_ERROR_BASE + 131)
1225 #define ERROR_GOPHER_DATA_ERROR (INTERNET_ERROR_BASE + 132)
1226 #define ERROR_GOPHER_END_OF_DATA (INTERNET_ERROR_BASE + 133)
1227 #define ERROR_GOPHER_INVALID_LOCATOR (INTERNET_ERROR_BASE + 134)
1228 #define ERROR_GOPHER_INCORRECT_LOCATOR_TYPE (INTERNET_ERROR_BASE + 135)
1229 #define ERROR_GOPHER_NOT_GOPHER_PLUS (INTERNET_ERROR_BASE + 136)
1230 #define ERROR_GOPHER_ATTRIBUTE_NOT_FOUND (INTERNET_ERROR_BASE + 137)
1231 #define ERROR_GOPHER_UNKNOWN_LOCATOR (INTERNET_ERROR_BASE + 138)
1232 #define ERROR_HTTP_HEADER_NOT_FOUND (INTERNET_ERROR_BASE + 150)
1233 #define ERROR_HTTP_DOWNLEVEL_SERVER (INTERNET_ERROR_BASE + 151)
1234 #define ERROR_HTTP_INVALID_SERVER_RESPONSE (INTERNET_ERROR_BASE + 152)
1235 #define ERROR_HTTP_INVALID_HEADER (INTERNET_ERROR_BASE + 153)
1236 #define ERROR_HTTP_INVALID_QUERY_REQUEST (INTERNET_ERROR_BASE + 154)
1237 #define ERROR_HTTP_HEADER_ALREADY_EXISTS (INTERNET_ERROR_BASE + 155)
1238 #define ERROR_HTTP_REDIRECT_FAILED (INTERNET_ERROR_BASE + 156)
1239 #define ERROR_HTTP_NOT_REDIRECTED (INTERNET_ERROR_BASE + 160)
1240 #define ERROR_HTTP_COOKIE_NEEDS_CONFIRMATION (INTERNET_ERROR_BASE + 161)
1241 #define ERROR_HTTP_COOKIE_DECLINED (INTERNET_ERROR_BASE + 162)
1242 #define ERROR_HTTP_REDIRECT_NEEDS_CONFIRMATION (INTERNET_ERROR_BASE + 168)
1243 #define ERROR_INTERNET_SECURITY_CHANNEL_ERROR (INTERNET_ERROR_BASE + 157)
1244 #define ERROR_INTERNET_UNABLE_TO_CACHE_FILE (INTERNET_ERROR_BASE + 158)
1245 #define ERROR_INTERNET_TCPIP_NOT_INSTALLED (INTERNET_ERROR_BASE + 159)
1246 #define ERROR_INTERNET_DISCONNECTED (INTERNET_ERROR_BASE + 163)
1247 #define ERROR_INTERNET_SERVER_UNREACHABLE (INTERNET_ERROR_BASE + 164)
1248 #define ERROR_INTERNET_PROXY_SERVER_UNREACHABLE (INTERNET_ERROR_BASE + 165)
1249 #define ERROR_INTERNET_BAD_AUTO_PROXY_SCRIPT (INTERNET_ERROR_BASE + 166)
1250 #define ERROR_INTERNET_UNABLE_TO_DOWNLOAD_SCRIPT (INTERNET_ERROR_BASE + 167)
1251 #define ERROR_INTERNET_SEC_INVALID_CERT (INTERNET_ERROR_BASE + 169)
1252 #define ERROR_INTERNET_SEC_CERT_REVOKED (INTERNET_ERROR_BASE + 170)
1253 #define ERROR_INTERNET_FAILED_DUETOSECURITYCHECK (INTERNET_ERROR_BASE + 171)
1254 #define INTERNET_ERROR_LAST ERROR_INTERNET_FAILED_DUETOSECURITYCHECK
1257 #define NORMAL_CACHE_ENTRY 0x00000001
1258 #define COOKIE_CACHE_ENTRY 0x00100000
1259 #define URLHISTORY_CACHE_ENTRY 0x00200000
1260 #define TRACK_OFFLINE_CACHE_ENTRY 0x00000010
1261 #define TRACK_ONLINE_CACHE_ENTRY 0x00000020
1262 #define STICKY_CACHE_ENTRY 0x00000004
1263 #define SPARSE_CACHE_ENTRY 0x00010000
1265 #define URLCACHE_FIND_DEFAULT_FILTER NORMAL_CACHE_ENTRY \
1266 | COOKIE_CACHE_ENTRY \
1267 | URLHISTORY_CACHE_ENTRY \
1268 | TRACK_OFFLINE_CACHE_ENTRY \
1269 | TRACK_ONLINE_CACHE_ENTRY \
1270 | STICKY_CACHE_ENTRY
1273 typedef struct _INTERNET_CACHE_ENTRY_INFOA
{
1275 LPSTR lpszSourceUrlName
;
1276 LPSTR lpszLocalFileName
;
1277 DWORD CacheEntryType
;
1282 FILETIME LastModifiedTime
;
1283 FILETIME ExpireTime
;
1284 FILETIME LastAccessTime
;
1285 FILETIME LastSyncTime
;
1287 LPBYTE lpHeaderInfo
;
1288 DWORD dwHeaderInfoSize
;
1289 LPSTR lpszFileExtension
;
1292 DWORD dwExemptDelta
;
1294 } INTERNET_CACHE_ENTRY_INFOA
,* LPINTERNET_CACHE_ENTRY_INFOA
;
1296 typedef struct _INTERNET_CACHE_ENTRY_INFOW
{
1298 LPWSTR lpszSourceUrlName
;
1299 LPWSTR lpszLocalFileName
;
1300 DWORD CacheEntryType
;
1305 FILETIME LastModifiedTime
;
1306 FILETIME ExpireTime
;
1307 FILETIME LastAccessTime
;
1308 FILETIME LastSyncTime
;
1310 LPBYTE lpHeaderInfo
;
1311 DWORD dwHeaderInfoSize
;
1312 LPWSTR lpszFileExtension
;
1315 DWORD dwExemptDelta
;
1317 } INTERNET_CACHE_ENTRY_INFOW
,* LPINTERNET_CACHE_ENTRY_INFOW
;
1319 DECL_WINELIB_TYPE_AW(INTERNET_CACHE_ENTRY_INFO
)
1320 DECL_WINELIB_TYPE_AW(LPINTERNET_CACHE_ENTRY_INFO
)
1322 BOOLAPI
CreateUrlCacheEntryA(LPCSTR
,DWORD
,LPCSTR
,LPSTR
,DWORD
);
1323 BOOLAPI
CreateUrlCacheEntryW(LPCSTR
,DWORD
,LPCSTR
,LPWSTR
,DWORD
);
1324 #define CreateUrlCacheEntry WINELIB_NAME_AW(CreateUrlCacheEntry)
1326 BOOLAPI
CommitUrlCacheEntryA(LPCSTR
,LPCSTR
,FILETIME
,FILETIME
,DWORD
,LPBYTE
,DWORD
,LPCSTR
,DWORD
);
1327 BOOLAPI
CommitUrlCacheEntryW(LPCSTR
,LPCWSTR
,FILETIME
,FILETIME
,DWORD
,LPBYTE
,DWORD
,LPCWSTR
,DWORD
);
1328 #define CommitUrlCacheEntry WINELIB_NAME_AW(CommitUrlCacheEntry)
1330 BOOLAPI
RetrieveUrlCacheEntryFileA(LPCSTR
,LPINTERNET_CACHE_ENTRY_INFOA
,LPDWORD
,DWORD
);
1331 BOOLAPI
RetrieveUrlCacheEntryFileW(LPCSTR
,LPINTERNET_CACHE_ENTRY_INFOW
,LPDWORD
,DWORD
);
1332 #define RetrieveUrlCacheEntryFile WINELIB_NAME_AW(RetrieveUrlCacheEntryFile)
1334 BOOLAPI
UnlockUrlCacheEntryFile(LPCSTR
,DWORD
);
1336 INTERNETAPI HANDLE WINAPI
RetrieveUrlCacheEntryStreamA(LPCSTR
,
1337 LPINTERNET_CACHE_ENTRY_INFOA
, LPDWORD
,BOOL
,DWORD
);
1338 INTERNETAPI HANDLE WINAPI
RetrieveUrlCacheEntryStreamW(LPCSTR
,LPINTERNET_CACHE_ENTRY_INFOW
,
1339 LPDWORD
,BOOL
,DWORD
);
1340 #define RetrieveUrlCacheEntryStream WINELIB_NAME_AW(RetrieveUrlCacheEntryStream)
1342 BOOLAPI
ReadUrlCacheEntryStream( HANDLE
,DWORD
,LPVOID
,LPDWORD
,DWORD
);
1343 BOOLAPI
UnlockUrlCacheEntryStream( HANDLE
,DWORD
);
1344 BOOLAPI
GetUrlCacheEntryInfoA(LPCSTR
,LPINTERNET_CACHE_ENTRY_INFOA
,LPDWORD
);
1345 BOOLAPI
GetUrlCacheEntryInfoW(LPCSTR
,LPINTERNET_CACHE_ENTRY_INFOW
,LPDWORD
);
1346 #define GetUrlCacheEntryInfo WINELIB_NAME_AW(GetUrlCacheEntryInfo)
1348 BOOLAPI
GetUrlCacheEntryInfoExA(
1349 LPCSTR
,LPINTERNET_CACHE_ENTRY_INFOA
,LPDWORD
,LPSTR
,LPDWORD
,LPVOID
,DWORD
);
1350 BOOLAPI
GetUrlCacheEntryInfoExW(
1351 LPCSTR
,LPINTERNET_CACHE_ENTRY_INFOW
,LPDWORD
,LPWSTR
,LPDWORD
,LPVOID
,DWORD
);
1352 #define GetUrlCacheEntryInfoEx WINELIB_NAME_AW(GetUrlCacheEntryInfoEx)
1354 #define CACHE_ENTRY_ATTRIBUTE_FC 0x00000004
1355 #define CACHE_ENTRY_HITRATE_FC 0x00000010
1356 #define CACHE_ENTRY_MODTIME_FC 0x00000040
1357 #define CACHE_ENTRY_EXPTIME_FC 0x00000080
1358 #define CACHE_ENTRY_ACCTIME_FC 0x00000100
1359 #define CACHE_ENTRY_SYNCTIME_FC 0x00000200
1360 #define CACHE_ENTRY_HEADERINFO_FC 0x00000400
1361 #define CACHE_ENTRY_EXEMPT_DELTA_FC 0x00000800
1364 BOOLAPI
SetUrlCacheEntryInfoA(LPCSTR
,LPINTERNET_CACHE_ENTRY_INFOA
,DWORD
);
1365 BOOLAPI
SetUrlCacheEntryInfoW(LPCWSTR
,LPINTERNET_CACHE_ENTRY_INFOW
,DWORD
);
1366 #define SetUrlCacheEntryInfo WINELIB_NAME_AW(SetUrlCacheEntryInfo)
1368 typedef LONGLONG GROUPID
;
1369 INTERNETAPI GROUPID WINAPI
CreateUrlCacheGroup(DWORD
,LPVOID
);
1370 BOOLAPI
DeleteUrlCacheGroup(GROUPID
,DWORD
,LPVOID
);
1372 #define INTERNET_CACHE_GROUP_ADD 0
1373 #define INTERNET_CACHE_GROUP_REMOVE 1
1375 BOOLAPI
SetUrlCacheEntryGroup(LPCSTR
,DWORD
,GROUPID
,LPBYTE
,DWORD
,LPVOID
);
1377 INTERNETAPI HANDLE WINAPI
FindFirstUrlCacheEntryExA(
1378 LPCSTR
,DWORD
,DWORD
,GROUPID
,LPINTERNET_CACHE_ENTRY_INFOA
,LPDWORD
,LPVOID
,LPDWORD
,LPVOID
);
1379 INTERNETAPI HANDLE WINAPI
FindFirstUrlCacheEntryExW(
1380 LPCWSTR
,DWORD
,DWORD
,GROUPID
,LPINTERNET_CACHE_ENTRY_INFOW
,LPDWORD
,LPVOID
,LPDWORD
,LPVOID
);
1381 #define FindFirstUrlCacheEntryEx WINELIB_NAME_AW(FindFirstUrlCacheEntryEx)
1383 BOOLAPI
FindNextUrlCacheEntryExA(HANDLE
,LPINTERNET_CACHE_ENTRY_INFOA
,LPDWORD
,LPVOID
,LPDWORD
,LPVOID
);
1384 BOOLAPI
FindNextUrlCacheEntryExW(HANDLE
,LPINTERNET_CACHE_ENTRY_INFOW
,LPDWORD
,LPVOID
,LPDWORD
,LPVOID
);
1385 #define FindNextUrlCacheEntryEx WINELIB_NAME_AW(FindNextUrlCacheEntryEx)
1387 INTERNETAPI HANDLE WINAPI
FindFirstUrlCacheEntryA(LPCSTR
,LPINTERNET_CACHE_ENTRY_INFOA
,LPDWORD
);
1388 INTERNETAPI HANDLE WINAPI
FindFirstUrlCacheEntryW(LPCWSTR
,LPINTERNET_CACHE_ENTRY_INFOW
,LPDWORD
);
1389 #define FindFirstUrlCacheEntry WINELIB_NAME_AW(FindFirstUrlCacheEntry)
1391 BOOLAPI
FindNextUrlCacheEntryA(HANDLE
,LPINTERNET_CACHE_ENTRY_INFOA
,LPDWORD
);
1392 BOOLAPI
FindNextUrlCacheEntryW(HANDLE
,LPINTERNET_CACHE_ENTRY_INFOW
,LPDWORD
);
1393 #define FindNextUrlCacheEntry WINELIB_NAME_AW(FindNextUrlCacheEntry)
1396 BOOLAPI
FindCloseUrlCache(HANDLE
);
1397 BOOLAPI
DeleteUrlCacheEntry(LPCSTR
);
1399 INTERNETAPI DWORD WINAPI
InternetDialA(HWND
,LPSTR
,DWORD
,LPDWORD
,DWORD
);
1400 INTERNETAPI DWORD WINAPI
InternetDialW(HWND
,LPWSTR
,DWORD
,LPDWORD
,DWORD
);
1401 #define InternetDial WINELIB_NAME_AW(InternetDial)
1404 #define INTERNET_DIAL_UNATTENDED 0x8000
1406 INTERNETAPI DWORD WINAPI
InternetHangUp(DWORD
,DWORD
);
1408 #define INTERENT_GOONLINE_REFRESH 0x00000001
1409 #define INTERENT_GOONLINE_MASK 0x00000001
1410 INTERNETAPI BOOL WINAPI
InternetGoOnlineA(LPSTR
,HWND
,DWORD
);
1411 INTERNETAPI BOOL WINAPI
InternetGoOnlineW(LPWSTR
,HWND
,DWORD
);
1412 #define InternetGoOnline WINELIB_NAME_AW(InternetGoOnline)
1413 INTERNETAPI BOOL WINAPI
InternetAutodial(DWORD
,DWORD
);
1415 #define INTERNET_AUTODIAL_FORCE_ONLINE 1
1416 #define INTERNET_AUTODIAL_FORCE_UNATTENDED 2
1417 #define INTERNET_AUTODIAL_FAILIFSECURITYCHECK 4
1419 #define INTERNET_AUTODIAL_FLAGS_MASK (INTERNET_AUTODIAL_FORCE_ONLINE | INTERNET_AUTODIAL_FORCE_UNATTENDED | INTERNET_AUTODIAL_FAILIFSECURITYCHECK)
1420 INTERNETAPI BOOL WINAPI
InternetAutodialHangup(DWORD
);
1421 INTERNETAPI BOOL WINAPI
InternetGetConnectedState(LPDWORD
,DWORD
);
1423 #define INTERNET_CONNECTION_MODEM 1
1424 #define INTERNET_CONNECTION_LAN 2
1425 #define INTERNET_CONNECTION_PROXY 4
1426 #define INTERNET_CONNECTION_MODEM_BUSY 8
1428 typedef DWORD (CALLBACK
*PFN_DIAL_HANDLER
) (HWND
,LPCSTR
,DWORD
,LPDWORD
);
1430 #define INTERNET_CUSTOMDIAL_CONNECT 0
1431 #define INTERNET_CUSTOMDIAL_UNATTENDED 1
1432 #define INTERNET_CUSTOMDIAL_DISCONNECT 2
1433 #define INTERNET_CUSTOMDIAL_SHOWOFFLINE 4
1434 #define INTERNET_CUSTOMDIAL_SAFE_FOR_UNATTENDED 1
1435 #define INTERNET_CUSTOMDIAL_WILL_SUPPLY_STATE 2
1436 #define INTERNET_CUSTOMDIAL_CAN_HANGUP 4
1438 INTERNETAPI BOOL WINAPI
InternetSetDialStateA(LPCSTR
,DWORD
,DWORD
);
1439 INTERNETAPI BOOL WINAPI
InternetSetDialStateW(LPCWSTR
,DWORD
,DWORD
);
1440 #define InternetSetDialState WINELIB_NAME_AW(InternetSetDialState)
1441 #define INTERNET_DIALSTATE_DISCONNECTED 1
1443 BOOLAPI
InternetCheckConnectionA(LPCSTR lpszUrl
,DWORD dwFlags
,DWORD dwReserved
);
1444 BOOLAPI
InternetCheckConnectionW(LPCWSTR lpszUrl
,DWORD dwFlags
,DWORD dwReserved
);
1445 #define InternetCheckConnection WINELIB_NAME_AW(InternetCheckConnection)