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_JAVASCRIPT
,
145 INTERNET_SCHEME_VBSCRIPT
,
147 INTERNET_SCHEME_FIRST
= INTERNET_SCHEME_FTP
,
148 INTERNET_SCHEME_LAST
= INTERNET_SCHEME_RES
149 } INTERNET_SCHEME
,* LPINTERNET_SCHEME
;
154 } INTERNET_ASYNC_RESULT
,* LPINTERNET_ASYNC_RESULT
;
159 LPCSTR lpszProxyBypass
;
160 } INTERNET_PROXY_INFOA
,* LPINTERNET_PROXY_INFOA
;
165 LPCWSTR lpszProxyBypass
;
166 } INTERNET_PROXY_INFOW
,* LPINTERNET_PROXY_INFOW
;
169 DECL_WINELIB_TYPE_AW(INTERNET_PROXY_INFO
)
170 DECL_WINELIB_TYPE_AW(LPINTERNET_PROXY_INFO
)
173 DWORD dwMajorVersion
;
174 DWORD dwMinorVersion
;
175 } INTERNET_VERSION_INFO
,* LPINTERNET_VERSION_INFO
;
178 DWORD dwMajorVersion
;
179 DWORD dwMinorVersion
;
180 } HTTP_VERSION_INFO
,* LPHTTP_VERSION_INFO
;
183 DWORD dwConnectedState
;
185 } INTERNET_CONNECTED_INFO
,* LPINTERNET_CONNECTED_INFO
;
187 #define ISO_FORCE_DISCONNECTED 0x00000001
192 DWORD dwSchemeLength
;
193 INTERNET_SCHEME nScheme
;
195 DWORD dwHostNameLength
;
198 DWORD dwUserNameLength
;
200 DWORD dwPasswordLength
;
202 DWORD dwUrlPathLength
;
204 DWORD dwExtraInfoLength
;
205 } URL_COMPONENTSA
,* LPURL_COMPONENTSA
;
210 DWORD dwSchemeLength
;
211 INTERNET_SCHEME nScheme
;
213 DWORD dwHostNameLength
;
216 DWORD dwUserNameLength
;
218 DWORD dwPasswordLength
;
220 DWORD dwUrlPathLength
;
221 LPWSTR lpszExtraInfo
;
222 DWORD dwExtraInfoLength
;
223 } URL_COMPONENTSW
,* LPURL_COMPONENTSW
;
225 DECL_WINELIB_TYPE_AW(URL_COMPONENTS
)
226 DECL_WINELIB_TYPE_AW(LPURL_COMPONENTS
)
231 LPSTR lpszSubjectInfo
;
232 LPSTR lpszIssuerInfo
;
233 LPSTR lpszProtocolName
;
234 LPSTR lpszSignatureAlgName
;
235 LPSTR lpszEncryptionAlgName
;
238 } INTERNET_CERTIFICATE_INFOA
,* LPINTERNET_CERTIFICATE_INFOA
;
243 LPWSTR lpszSubjectInfo
;
244 LPWSTR lpszIssuerInfo
;
245 LPWSTR lpszProtocolName
;
246 LPWSTR lpszSignatureAlgName
;
247 LPWSTR lpszEncryptionAlgName
;
250 } INTERNET_CERTIFICATE_INFOW
,* LPINTERNET_CERTIFICATE_INFOW
;
252 DECL_WINELIB_TYPE_AW(INTERNET_CERTIFICATE_INFO
)
253 DECL_WINELIB_TYPE_AW(LPINTERNET_CERTIFICATE_INFO
)
255 typedef struct _INTERNET_BUFFERSA
{
257 struct _INTERNET_BUFFERSA
* Next
;
259 DWORD dwHeadersLength
;
260 DWORD dwHeadersTotal
;
262 DWORD dwBufferLength
;
266 } INTERNET_BUFFERSA
,* LPINTERNET_BUFFERSA
;
268 typedef struct _INTERNET_BUFFERSW
{
270 struct _INTERNET_BUFFERSW
* Next
;
272 DWORD dwHeadersLength
;
273 DWORD dwHeadersTotal
;
275 DWORD dwBufferLength
;
279 } INTERNET_BUFFERSW
,* LPINTERNET_BUFFERSW
;
281 DECL_WINELIB_TYPE_AW(INTERNET_BUFFERS
)
282 DECL_WINELIB_TYPE_AW(LPINTERNET_BUFFERS
)
284 #define GROUP_OWNER_STORAGE_SIZE 4
285 #define GROUPNAME_MAX_LENGTH 120
287 typedef struct _INTERNET_CACHE_GROUP_INFOA
{
293 DWORD dwOwnerStorage
[GROUP_OWNER_STORAGE_SIZE
];
294 CHAR szGroupName
[GROUPNAME_MAX_LENGTH
];
295 } INTERNET_CACHE_GROUP_INFOA
, * LPINTERNET_CACHE_GROUP_INFOA
;
297 typedef struct _INTERNET_CACHE_GROUP_INFOW
{
303 DWORD dwOwnerStorage
[GROUP_OWNER_STORAGE_SIZE
];
304 WCHAR szGroupName
[GROUPNAME_MAX_LENGTH
];
305 } INTERNET_CACHE_GROUP_INFOW
, *LPINTERNET_CACHE_GROUP_INFOW
;
307 DECL_WINELIB_TYPE_AW(INTERNET_CACHE_GROUP_INFO
)
308 DECL_WINELIB_TYPE_AW(LPINTERNET_CACHE_GROUP_INFO
)
310 BOOLAPI
InternetTimeFromSystemTimeA(CONST SYSTEMTIME
*,DWORD
,LPSTR
,DWORD
);
311 BOOLAPI
InternetTimeFromSystemTimeW(CONST SYSTEMTIME
*,DWORD
,LPWSTR
,DWORD
);
312 #define InternetTimeFromSystemTime WINELIB_NAME_AW(InternetTimeFromSystemTime)
314 #define INTERNET_RFC1123_FORMAT 0
315 #define INTERNET_RFC1123_BUFSIZE 30
317 BOOLAPI
InternetTimeToSystemTimeA(LPCSTR
,SYSTEMTIME
*,DWORD
);
318 BOOLAPI
InternetTimeToSystemTimeW(LPCWSTR
,SYSTEMTIME
*,DWORD
);
319 #define InternetTimeToSystemTime WINELIB_NAME_AW(InternetTimeToSystemTime)
321 BOOLAPI
InternetCrackUrlA(LPCSTR
,DWORD
,DWORD
,LPURL_COMPONENTSA
);
322 BOOLAPI
InternetCrackUrlW(LPCWSTR
,DWORD
,DWORD
,LPURL_COMPONENTSW
);
323 #define InternetCrackUrl WINELIB_NAME_AW(InternetCrackUrl)
325 BOOLAPI
InternetCreateUrlA(LPURL_COMPONENTSA
,DWORD
,LPSTR
,LPDWORD
);
326 BOOLAPI
InternetCreateUrlW(LPURL_COMPONENTSW
,DWORD
,LPWSTR
,LPDWORD
);
327 #define InternetCreateUrl WINELIB_NAME_AW(InternetCreateUrl)
329 BOOLAPI
InternetCanonicalizeUrlA(LPCSTR
,LPSTR
,LPDWORD
,DWORD
);
330 BOOLAPI
InternetCanonicalizeUrlW(LPCWSTR
,LPWSTR
,LPDWORD
,DWORD
);
331 #define InternetCanonicalizeUrl WINELIB_NAME_AW(InternetCanonicalizeUrl)
333 BOOLAPI
InternetCombineUrlA(LPCSTR
,LPCSTR
,LPSTR
,LPDWORD
,DWORD
);
334 BOOLAPI
InternetCombineUrlW(LPCWSTR
,LPCWSTR
,LPWSTR
,LPDWORD
,DWORD
);
335 #define InternetCombineUrl WINELIB_NAME_AW(InternetCombineUrl)
337 #define ICU_ESCAPE 0x80000000
338 #define ICU_USERNAME 0x40000000
339 #define ICU_NO_ENCODE 0x20000000
340 #define ICU_DECODE 0x10000000
341 #define ICU_NO_META 0x08000000
342 #define ICU_ENCODE_SPACES_ONLY 0x04000000
343 #define ICU_BROWSER_MODE 0x02000000
345 INTERNETAPI HINTERNET WINAPI
InternetOpenA(LPCSTR
,DWORD
,LPCSTR lpszProxy
,LPCSTR lpszProxyBypass
,DWORD
);
346 INTERNETAPI HINTERNET WINAPI
InternetOpenW(LPCWSTR
,DWORD
,LPCWSTR lpszProxy
,LPCWSTR lpszProxyBypass
,DWORD
);
347 #define InternetOpen WINELIB_NAME_AW(InternetOpen)
349 #define INTERNET_OPEN_TYPE_PRECONFIG 0
350 #define INTERNET_OPEN_TYPE_DIRECT 1
351 #define INTERNET_OPEN_TYPE_PROXY 3
352 #define INTERNET_OPEN_TYPE_PRECONFIG_WITH_NO_AUTOPROXY 4
353 #define PRE_CONFIG_INTERNET_ACCESS INTERNET_OPEN_TYPE_PRECONFIG
354 #define LOCAL_INTERNET_ACCESS INTERNET_OPEN_TYPE_DIRECT
355 #define CERN_PROXY_INTERNET_ACCESS INTERNET_OPEN_TYPE_PROXY
357 BOOLAPI
InternetCloseHandle(HINTERNET
);
359 INTERNETAPI HINTERNET WINAPI
InternetConnectA(HINTERNET
,LPCSTR
,INTERNET_PORT
,
360 LPCSTR lpszUserName
,LPCSTR lpszPassword
,DWORD
,DWORD
,DWORD
);
361 INTERNETAPI HINTERNET WINAPI
InternetConnectW(HINTERNET
,LPCWSTR
,INTERNET_PORT
,
362 LPCWSTR lpszUserName
,LPCWSTR lpszPassword
,DWORD
,DWORD
,DWORD
);
363 #define InternetConnect WINELIB_NAME_AW(InternetConnect)
365 #define INTERNET_SERVICE_URL 0
366 #define INTERNET_SERVICE_FTP 1
367 #define INTERNET_SERVICE_GOPHER 2
368 #define INTERNET_SERVICE_HTTP 3
370 #define InternetConnectUrl(hInternet,lpszUrl,dwFlags,dwContext) \
371 InternetConnect(hInternet,\
373 INTERNET_INVALID_PORT_NUMBER,\
376 INTERNET_SERVICE_URL,\
381 INTERNETAPI HINTERNET WINAPI
InternetOpenUrlA(HINTERNET
,LPCSTR
,LPCSTR lpszHeaders
,DWORD
,DWORD
,DWORD
);
382 INTERNETAPI HINTERNET WINAPI
InternetOpenUrlW(HINTERNET
,LPCWSTR
,LPCWSTR lpszHeaders
,DWORD
,DWORD
,DWORD
);
383 #define InternetOpenUrl WINELIB_NAME_AW(InternetOpenUrl)
385 BOOLAPI
InternetReadFile( HINTERNET
,LPVOID
,DWORD
,LPDWORD
);
386 INTERNETAPI BOOL WINAPI
InternetReadFileExA( HINTERNET
,LPINTERNET_BUFFERSA
,DWORD
,DWORD
);
387 INTERNETAPI BOOL WINAPI
InternetReadFileExW( HINTERNET
,LPINTERNET_BUFFERSW
,DWORD
,DWORD
);
388 #define InternetReadFileEx WINELIB_NAME_AW(InternetReadFileEx)
390 #define IRF_ASYNC WININET_API_FLAG_ASYNC
391 #define IRF_SYNC WININET_API_FLAG_SYNC
392 #define IRF_USE_CONTEXT WININET_API_FLAG_USE_CONTEXT
393 #define IRF_NO_WAIT 0x00000008
395 INTERNETAPI DWORD WINAPI
InternetSetFilePointer(HINTERNET
,LONG
,PVOID
,DWORD
,DWORD
);
396 BOOLAPI
InternetWriteFile(HINTERNET
,LPCVOID
,DWORD
,LPDWORD
);
397 BOOLAPI
InternetQueryDataAvailable(HINTERNET
,LPDWORD lpdwNumberOfBytesAvailable
,DWORD
,DWORD
);
398 BOOLAPI
InternetFindNextFileA(HINTERNET
,LPVOID
);
399 BOOLAPI
InternetFindNextFileW(HINTERNET
,LPVOID
);
400 #define InternetFindNextFile WINELIB_NAME_AW(InternetFindNextFile)
402 BOOLAPI
InternetQueryOptionA(HINTERNET hInternet
,DWORD
,LPVOID lpBuffer
,LPDWORD
);
403 BOOLAPI
InternetQueryOptionW(HINTERNET hInternet
,DWORD
,LPVOID lpBuffer
,LPDWORD
);
404 #define InternetQueryOption WINELIB_NAME_AW(InternetQueryOption)
406 BOOLAPI
InternetSetOptionA(HINTERNET hInternet
,DWORD
,LPVOID
,DWORD
);
407 BOOLAPI
InternetSetOptionW(HINTERNET hInternet
,DWORD
,LPVOID
,DWORD
);
408 #define InternetSetOption WINELIB_NAME_AW(InternetSetOption)
410 BOOLAPI
InternetSetOptionExA(HINTERNET hInternet
,DWORD
,LPVOID
,DWORD
,DWORD
);
411 BOOLAPI
InternetSetOptionExW(HINTERNET hInternet
,DWORD
,LPVOID
,DWORD
,DWORD
);
412 #define InternetSetOptionEx WINELIB_NAME_AW(InternetSetOptionEx)
414 BOOLAPI
InternetLockRequestFile(HINTERNET
,HANDLE
*);
415 BOOLAPI
InternetUnlockRequestFile(HANDLE
);
417 #define ISO_GLOBAL 0x00000001
418 #define ISO_REGISTRY 0x00000002
420 #define ISO_VALID_FLAGS (ISO_GLOBAL | ISO_REGISTRY)
421 #define INTERNET_OPTION_CALLBACK 1
422 #define INTERNET_OPTION_CONNECT_TIMEOUT 2
423 #define INTERNET_OPTION_CONNECT_RETRIES 3
424 #define INTERNET_OPTION_CONNECT_BACKOFF 4
425 #define INTERNET_OPTION_SEND_TIMEOUT 5
426 #define INTERNET_OPTION_CONTROL_SEND_TIMEOUT INTERNET_OPTION_SEND_TIMEOUT
427 #define INTERNET_OPTION_RECEIVE_TIMEOUT 6
428 #define INTERNET_OPTION_CONTROL_RECEIVE_TIMEOUT INTERNET_OPTION_RECEIVE_TIMEOUT
429 #define INTERNET_OPTION_DATA_SEND_TIMEOUT 7
430 #define INTERNET_OPTION_DATA_RECEIVE_TIMEOUT 8
431 #define INTERNET_OPTION_HANDLE_TYPE 9
432 #define INTERNET_OPTION_LISTEN_TIMEOUT 11
433 #define INTERNET_OPTION_READ_BUFFER_SIZE 12
434 #define INTERNET_OPTION_WRITE_BUFFER_SIZE 13
435 #define INTERNET_OPTION_ASYNC_ID 15
436 #define INTERNET_OPTION_ASYNC_PRIORITY 16
437 #define INTERNET_OPTION_PARENT_HANDLE 21
438 #define INTERNET_OPTION_KEEP_CONNECTION 22
439 #define INTERNET_OPTION_REQUEST_FLAGS 23
440 #define INTERNET_OPTION_EXTENDED_ERROR 24
441 #define INTERNET_OPTION_OFFLINE_MODE 26
442 #define INTERNET_OPTION_CACHE_STREAM_HANDLE 27
443 #define INTERNET_OPTION_USERNAME 28
444 #define INTERNET_OPTION_PASSWORD 29
445 #define INTERNET_OPTION_ASYNC 30
446 #define INTERNET_OPTION_SECURITY_FLAGS 31
447 #define INTERNET_OPTION_SECURITY_CERTIFICATE_STRUCT 32
448 #define INTERNET_OPTION_DATAFILE_NAME 33
449 #define INTERNET_OPTION_URL 34
450 #define INTERNET_OPTION_SECURITY_CERTIFICATE 35
451 #define INTERNET_OPTION_SECURITY_KEY_BITNESS 36
452 #define INTERNET_OPTION_REFRESH 37
453 #define INTERNET_OPTION_PROXY 38
454 #define INTERNET_OPTION_SETTINGS_CHANGED 39
455 #define INTERNET_OPTION_VERSION 40
456 #define INTERNET_OPTION_USER_AGENT 41
457 #define INTERNET_OPTION_END_BROWSER_SESSION 42
458 #define INTERNET_OPTION_PROXY_USERNAME 43
459 #define INTERNET_OPTION_PROXY_PASSWORD 44
460 #define INTERNET_OPTION_CONTEXT_VALUE 45
461 #define INTERNET_OPTION_CONNECT_LIMIT 46
462 #define INTERNET_OPTION_SECURITY_SELECT_CLIENT_CERT 47
463 #define INTERNET_OPTION_POLICY 48
464 #define INTERNET_OPTION_DISCONNECTED_TIMEOUT 49
465 #define INTERNET_OPTION_CONNECTED_STATE 50
466 #define INTERNET_OPTION_IDLE_STATE 51
467 #define INTERNET_OPTION_OFFLINE_SEMANTICS 52
468 #define INTERNET_OPTION_SECONDARY_CACHE_KEY 53
469 #define INTERNET_OPTION_CALLBACK_FILTER 54
470 #define INTERNET_OPTION_CONNECT_TIME 55
471 #define INTERNET_OPTION_SEND_THROUGHPUT 56
472 #define INTERNET_OPTION_RECEIVE_THROUGHPUT 57
473 #define INTERNET_OPTION_REQUEST_PRIORITY 58
474 #define INTERNET_OPTION_HTTP_VERSION 59
475 #define INTERNET_OPTION_RESET_URLCACHE_SESSION 60
476 #define INTERNET_OPTION_ERROR_MASK 62
477 #define INTERNET_OPTION_FROM_CACHE_TIMEOUT 63
478 #define INTERNET_OPTION_BYPASS_EDITED_ENTRY 64
479 #define INTERNET_OPTION_DIAGNOSTIC_SOCKET_INFO 67
480 #define INTERNET_OPTION_CODEPAGE 68
481 #define INTERNET_OPTION_CACHE_TIMESTAMPS 69
482 #define INTERNET_OPTION_DISABLE_AUTODIAL 70
483 #define INTERNET_OPTION_MAX_CONNS_PER_SERVER 73
484 #define INTERNET_OPTION_MAX_CONNS_PER_1_0_SERVER 74
485 #define INTERNET_OPTION_PER_CONNECTION_OPTION 75
486 #define INTERNET_OPTION_DIGEST_AUTH_UNLOAD 76
487 #define INTERNET_OPTION_IGNORE_OFFLINE 77
488 #define INTERNET_OPTION_IDENTITY 78
489 #define INTERNET_OPTION_REMOVE_IDENTITY 79
490 #define INTERNET_OPTION_ALTER_IDENTITY 80
491 #define INTERNET_OPTION_SUPPRESS_BEHAVIOR 81
492 #define INTERNET_OPTION_AUTODIAL_MODE 82
493 #define INTERNET_OPTION_AUTODIAL_CONNECTION 83
494 #define INTERNET_OPTION_CLIENT_CERT_CONTEXT 84
495 #define INTERNET_OPTION_AUTH_FLAGS 85
496 #define INTERNET_OPTION_COOKIES_3RD_PARTY 86
497 #define INTERNET_OPTION_DISABLE_PASSPORT_AUTH 87
498 #define INTERNET_OPTION_SEND_UTF8_SERVERNAME_TO_PROXY 88
499 #define INTERNET_OPTION_EXEMPT_CONNECTION_LIMIT 89
500 #define INTERNET_OPTION_ENABLE_PASSPORT_AUTH 90
502 #define INTERNET_OPTION_HIBERNATE_INACTIVE_WORKER_THREADS 91
503 #define INTERNET_OPTION_ACTIVATE_WORKER_THREADS 92
504 #define INTERNET_OPTION_RESTORE_WORKER_THREAD_DEFAULTS 93
505 #define INTERNET_OPTION_SOCKET_SEND_BUFFER_LENGTH 94
507 #define INTERNET_OPTION_PROXY_SETTINGS_CHANGED 95
508 #define INTERNET_OPTION_DATAFILE_EXT 96
510 #define INTERNET_FIRST_OPTION INTERNET_OPTION_CALLBACK
511 #define INTERNET_LAST_OPTION INTERNET_OPTION_DATAFILE_EXT
513 #define INTERNET_PRIORITY_FOREGROUND 1000
514 #define INTERNET_HANDLE_TYPE_INTERNET 1
515 #define INTERNET_HANDLE_TYPE_CONNECT_FTP 2
516 #define INTERNET_HANDLE_TYPE_CONNECT_GOPHER 3
517 #define INTERNET_HANDLE_TYPE_CONNECT_HTTP 4
518 #define INTERNET_HANDLE_TYPE_FTP_FIND 5
519 #define INTERNET_HANDLE_TYPE_FTP_FIND_HTML 6
520 #define INTERNET_HANDLE_TYPE_FTP_FILE 7
521 #define INTERNET_HANDLE_TYPE_FTP_FILE_HTML 8
522 #define INTERNET_HANDLE_TYPE_GOPHER_FIND 9
523 #define INTERNET_HANDLE_TYPE_GOPHER_FIND_HTML 10
524 #define INTERNET_HANDLE_TYPE_GOPHER_FILE 11
525 #define INTERNET_HANDLE_TYPE_GOPHER_FILE_HTML 12
526 #define INTERNET_HANDLE_TYPE_HTTP_REQUEST 13
527 #define SECURITY_FLAG_SECURE 0x00000001
528 #define SECURITY_FLAG_STRENGTH_WEAK 0x10000000
529 #define SECURITY_FLAG_STRENGTH_MEDIUM 0x40000000
530 #define SECURITY_FLAG_STRENGTH_STRONG 0x20000000
531 #define SECURITY_FLAG_UNKNOWNBIT 0x80000000
532 #define SECURITY_FLAG_NORMALBITNESS SECURITY_FLAG_STRENGTH_WEAK
533 #define SECURITY_FLAG_SSL 0x00000002
534 #define SECURITY_FLAG_SSL3 0x00000004
535 #define SECURITY_FLAG_PCT 0x00000008
536 #define SECURITY_FLAG_PCT4 0x00000010
537 #define SECURITY_FLAG_IETFSSL4 0x00000020
538 #define SECURITY_FLAG_40BIT SECURITY_FLAG_STRENGTH_WEAK
539 #define SECURITY_FLAG_128BIT SECURITY_FLAG_STRENGTH_STRONG
540 #define SECURITY_FLAG_56BIT SECURITY_FLAG_STRENGTH_MEDIUM
541 #define SECURITY_FLAG_IGNORE_REVOCATION 0x00000080
542 #define SECURITY_FLAG_IGNORE_UNKNOWN_CA 0x00000100
543 #define SECURITY_FLAG_IGNORE_WRONG_USAGE 0x00000200
544 #define SECURITY_FLAG_IGNORE_CERT_CN_INVALID INTERNET_FLAG_IGNORE_CERT_CN_INVALID
545 #define SECURITY_FLAG_IGNORE_CERT_DATE_INVALID INTERNET_FLAG_IGNORE_CERT_DATE_INVALID
546 #define SECURITY_FLAG_IGNORE_REDIRECT_TO_HTTPS INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTPS
547 #define SECURITY_FLAG_IGNORE_REDIRECT_TO_HTTP INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTP
548 #define SECURITY_SET_MASK (SECURITY_FLAG_IGNORE_REVOCATION |\
549 SECURITY_FLAG_IGNORE_UNKNOWN_CA |\
550 SECURITY_FLAG_IGNORE_CERT_CN_INVALID |\
551 SECURITY_FLAG_IGNORE_CERT_DATE_INVALID |\
552 SECURITY_FLAG_IGNORE_WRONG_USAGE)
556 BOOLAPI
InternetGetLastResponseInfoA(LPDWORD
,LPSTR lpszBuffer
,LPDWORD
);
557 BOOLAPI
InternetGetLastResponseInfoW(LPDWORD
,LPWSTR lpszBuffer
,LPDWORD
);
558 #define InternetGetLastResponseInfo WINELIB_NAME_AW(InternetGetLastResponseInfo)
560 typedef VOID (CALLBACK
*INTERNET_STATUS_CALLBACK
)(HINTERNET
,DWORD
,DWORD
,
561 LPVOID lpvStatusInformation
,DWORD
);
563 typedef INTERNET_STATUS_CALLBACK
* LPINTERNET_STATUS_CALLBACK
;
565 INTERNETAPI INTERNET_STATUS_CALLBACK WINAPI
InternetSetStatusCallbackA(HINTERNET
,INTERNET_STATUS_CALLBACK
);
566 INTERNETAPI INTERNET_STATUS_CALLBACK WINAPI
InternetSetStatusCallbackW(HINTERNET
,INTERNET_STATUS_CALLBACK
);
567 #define InternetSetStatusCallback WINELIB_NAME_AW(InternetSetStatusCallback)
569 #define INTERNET_STATUS_RESOLVING_NAME 10
570 #define INTERNET_STATUS_NAME_RESOLVED 11
571 #define INTERNET_STATUS_CONNECTING_TO_SERVER 20
572 #define INTERNET_STATUS_CONNECTED_TO_SERVER 21
573 #define INTERNET_STATUS_SENDING_REQUEST 30
574 #define INTERNET_STATUS_REQUEST_SENT 31
575 #define INTERNET_STATUS_RECEIVING_RESPONSE 40
576 #define INTERNET_STATUS_RESPONSE_RECEIVED 41
577 #define INTERNET_STATUS_CTL_RESPONSE_RECEIVED 42
578 #define INTERNET_STATUS_PREFETCH 43
579 #define INTERNET_STATUS_CLOSING_CONNECTION 50
580 #define INTERNET_STATUS_CONNECTION_CLOSED 51
581 #define INTERNET_STATUS_HANDLE_CREATED 60
582 #define INTERNET_STATUS_HANDLE_CLOSING 70
583 #define INTERNET_STATUS_REQUEST_COMPLETE 100
584 #define INTERNET_STATUS_REDIRECT 110
585 #define INTERNET_STATUS_INTERMEDIATE_RESPONSE 120
586 #define INTERNET_STATUS_USER_INPUT_REQUIRED 140
587 #define INTERNET_STATUS_STATE_CHANGE 200
588 #define INTERNET_STATUS_COOKIE_SENT 320
589 #define INTERNET_STATUS_COOKIE_RECEIVED 321
590 #define INTERNET_STATUS_PRIVACY_IMPACTED 324
591 #define INTERNET_STATUS_P3P_HEADER 325
592 #define INTERNET_STATUS_P3P_POLICYREF 326
593 #define INTERNET_STATUS_COOKIE_HISTORY 327
594 #define INTERNET_STATE_CONNECTED 0x00000001
595 #define INTERNET_STATE_DISCONNECTED 0x00000002
596 #define INTERNET_STATE_DISCONNECTED_BY_USER 0x00000010
597 #define INTERNET_STATE_IDLE 0x00000100
598 #define INTERNET_STATE_BUSY 0x00000200
600 #define INTERNET_INVALID_STATUS_CALLBACK ((INTERNET_STATUS_CALLBACK)(-1L))
602 #define FTP_TRANSFER_TYPE_UNKNOWN 0x00000000
603 #define FTP_TRANSFER_TYPE_ASCII 0x00000001
604 #define FTP_TRANSFER_TYPE_BINARY 0x00000002
605 #define FTP_TRANSFER_TYPE_MASK (FTP_TRANSFER_TYPE_ASCII | FTP_TRANSFER_TYPE_BINARY)
607 BOOLAPI
FtpCommandA(HINTERNET
, BOOL
, DWORD
, LPCSTR
, DWORD_PTR
, HINTERNET
*);
608 BOOLAPI
FtpCommandW(HINTERNET
, BOOL
, DWORD
, LPCWSTR
, DWORD_PTR
, HINTERNET
*);
609 #define FtpCommand WINELIB_NAME_AW(FtpCommand)
611 INTERNETAPI HINTERNET WINAPI
FtpFindFirstFileA(HINTERNET
,LPCSTR lpszSearchFile
,
612 LPWIN32_FIND_DATAA lpFindFileData
,DWORD
,DWORD
);
613 INTERNETAPI HINTERNET WINAPI
FtpFindFirstFileW(HINTERNET
,LPCWSTR lpszSearchFile
,
614 LPWIN32_FIND_DATAW lpFindFileData
,DWORD
,DWORD
);
615 #define FtpFindFirstFile WINELIB_NAME_AW(FtpFindFirstFile)
617 BOOLAPI
FtpGetFileA(HINTERNET
,LPCSTR
,LPCSTR
,BOOL
,DWORD
,DWORD
,DWORD
);
618 BOOLAPI
FtpGetFileW(HINTERNET
,LPCWSTR
,LPCWSTR
,BOOL
,DWORD
,DWORD
,DWORD
);
619 #define FtpGetFile WINELIB_NAME_AW(FtpGetFile)
621 DWORD WINAPI
FtpGetFileSize(HINTERNET
, LPDWORD
);
623 BOOLAPI
FtpPutFileA(HINTERNET
,LPCSTR
,LPCSTR
,DWORD
,DWORD
);
624 BOOLAPI
FtpPutFileW(HINTERNET
,LPCWSTR
,LPCWSTR
,DWORD
,DWORD
);
625 #define FtpPutFile WINELIB_NAME_AW(FtpPutFile)
627 BOOLAPI
FtpDeleteFileA(HINTERNET
,LPCSTR
);
628 BOOLAPI
FtpDeleteFileW(HINTERNET
,LPCWSTR
);
629 #define FtpDeleteFile WINELIB_NAME_AW(FtpDeleteFile)
631 BOOLAPI
FtpRenameFileA(HINTERNET
,LPCSTR
,LPCSTR
);
632 BOOLAPI
FtpRenameFileW(HINTERNET
,LPCWSTR
,LPCWSTR
);
633 #define FtpRenameFile WINELIB_NAME_AW(FtpRenameFile)
635 INTERNETAPI HINTERNET WINAPI
FtpOpenFileA(HINTERNET
,LPCSTR
,DWORD
,DWORD
,DWORD
);
636 INTERNETAPI HINTERNET WINAPI
FtpOpenFileW(HINTERNET
,LPCWSTR
,DWORD
,DWORD
,DWORD
);
637 #define FtpOpenFile WINELIB_NAME_AW(FtpOpenFile)
639 BOOLAPI
FtpCreateDirectoryA(HINTERNET
,LPCSTR
);
640 BOOLAPI
FtpCreateDirectoryW(HINTERNET
,LPCWSTR
);
641 #define FtpCreateDirectory WINELIB_NAME_AW(FtpCreateDirectory)
643 BOOLAPI
FtpRemoveDirectoryA(HINTERNET
,LPCSTR
);
644 BOOLAPI
FtpRemoveDirectoryW(HINTERNET
,LPCWSTR
);
645 #define FtpRemoveDirectory WINELIB_NAME_AW(FtpRemoveDirectory)
647 BOOLAPI
FtpSetCurrentDirectoryA(HINTERNET
,LPCSTR
);
648 BOOLAPI
FtpSetCurrentDirectoryW(HINTERNET
,LPCWSTR
);
649 #define FtpSetCurrentDirectory WINELIB_NAME_AW(FtpSetCurrentDirectory)
651 BOOLAPI
FtpGetCurrentDirectoryA(HINTERNET
,LPSTR
,LPDWORD
);
652 BOOLAPI
FtpGetCurrentDirectoryW(HINTERNET
,LPWSTR
,LPDWORD
);
653 #define FtpGetCurrentDirectory WINELIB_NAME_AW(FtpGetCurrentDirectory)
655 #define MAX_GOPHER_DISPLAY_TEXT 128
656 #define MAX_GOPHER_SELECTOR_TEXT 256
657 #define MAX_GOPHER_HOST_NAME INTERNET_MAX_HOST_NAME_LENGTH
658 #define MAX_GOPHER_LOCATOR_LENGTH (1 \
659 + MAX_GOPHER_DISPLAY_TEXT \
661 + MAX_GOPHER_SELECTOR_TEXT \
663 + MAX_GOPHER_HOST_NAME \
665 + INTERNET_MAX_PORT_NUMBER_LENGTH \
673 CHAR DisplayString
[MAX_GOPHER_DISPLAY_TEXT
+ 1];
677 FILETIME LastModificationTime
;
678 CHAR Locator
[MAX_GOPHER_LOCATOR_LENGTH
+ 1];
679 } GOPHER_FIND_DATAA
,* LPGOPHER_FIND_DATAA
;
682 WCHAR DisplayString
[MAX_GOPHER_DISPLAY_TEXT
+ 1];
686 FILETIME LastModificationTime
;
687 WCHAR Locator
[MAX_GOPHER_LOCATOR_LENGTH
+ 1];
688 } GOPHER_FIND_DATAW
,* LPGOPHER_FIND_DATAW
;
690 DECL_WINELIB_TYPE_AW(GOPHER_FIND_DATA
)
691 DECL_WINELIB_TYPE_AW(LPGOPHER_FIND_DATA
)
693 #define GOPHER_TYPE_TEXT_FILE 0x00000001
694 #define GOPHER_TYPE_DIRECTORY 0x00000002
695 #define GOPHER_TYPE_CSO 0x00000004
696 #define GOPHER_TYPE_ERROR 0x00000008
697 #define GOPHER_TYPE_MAC_BINHEX 0x00000010
698 #define GOPHER_TYPE_DOS_ARCHIVE 0x00000020
699 #define GOPHER_TYPE_UNIX_UUENCODED 0x00000040
700 #define GOPHER_TYPE_INDEX_SERVER 0x00000080
701 #define GOPHER_TYPE_TELNET 0x00000100
702 #define GOPHER_TYPE_BINARY 0x00000200
703 #define GOPHER_TYPE_REDUNDANT 0x00000400
704 #define GOPHER_TYPE_TN3270 0x00000800
705 #define GOPHER_TYPE_GIF 0x00001000
706 #define GOPHER_TYPE_IMAGE 0x00002000
707 #define GOPHER_TYPE_BITMAP 0x00004000
708 #define GOPHER_TYPE_MOVIE 0x00008000
709 #define GOPHER_TYPE_SOUND 0x00010000
710 #define GOPHER_TYPE_HTML 0x00020000
711 #define GOPHER_TYPE_PDF 0x00040000
712 #define GOPHER_TYPE_CALENDAR 0x00080000
713 #define GOPHER_TYPE_INLINE 0x00100000
714 #define GOPHER_TYPE_UNKNOWN 0x20000000
715 #define GOPHER_TYPE_ASK 0x40000000
716 #define GOPHER_TYPE_GOPHER_PLUS 0x80000000
718 #define IS_GOPHER_FILE(type) (BOOL)(((type) & GOPHER_TYPE_FILE_MASK) ? TRUE : FALSE)
719 #define IS_GOPHER_DIRECTORY(type) (BOOL)(((type) & GOPHER_TYPE_DIRECTORY) ? TRUE : FALSE)
720 #define IS_GOPHER_PHONE_SERVER(type) (BOOL)(((type) & GOPHER_TYPE_CSO) ? TRUE : FALSE)
721 #define IS_GOPHER_ERROR(type) (BOOL)(((type) & GOPHER_TYPE_ERROR) ? TRUE : FALSE)
722 #define IS_GOPHER_INDEX_SERVER(type) (BOOL)(((type) & GOPHER_TYPE_INDEX_SERVER) ? TRUE : FALSE)
723 #define IS_GOPHER_TELNET_SESSION(type) (BOOL)(((type) & GOPHER_TYPE_TELNET) ? TRUE : FALSE)
724 #define IS_GOPHER_BACKUP_SERVER(type) (BOOL)(((type) & GOPHER_TYPE_REDUNDANT) ? TRUE : FALSE)
725 #define IS_GOPHER_TN3270_SESSION(type) (BOOL)(((type) & GOPHER_TYPE_TN3270) ? TRUE : FALSE)
726 #define IS_GOPHER_ASK(type) (BOOL)(((type) & GOPHER_TYPE_ASK) ? TRUE : FALSE)
727 #define IS_GOPHER_PLUS(type) (BOOL)(((type) & GOPHER_TYPE_GOPHER_PLUS) ? TRUE : FALSE)
728 #define IS_GOPHER_TYPE_KNOWN(type) (BOOL)(((type) & GOPHER_TYPE_UNKNOWN) ? FALSE : TRUE)
729 #define GOPHER_TYPE_FILE_MASK (GOPHER_TYPE_TEXT_FILE \
730 | GOPHER_TYPE_MAC_BINHEX \
731 | GOPHER_TYPE_DOS_ARCHIVE \
732 | GOPHER_TYPE_UNIX_UUENCODED \
733 | GOPHER_TYPE_BINARY \
735 | GOPHER_TYPE_IMAGE \
736 | GOPHER_TYPE_BITMAP \
737 | GOPHER_TYPE_MOVIE \
738 | GOPHER_TYPE_SOUND \
741 | GOPHER_TYPE_CALENDAR \
742 | GOPHER_TYPE_INLINE \
749 } GOPHER_ADMIN_ATTRIBUTE_TYPEA
,* LPGOPHER_ADMIN_ATTRIBUTE_TYPEA
;
753 LPCWSTR EmailAddress
;
754 } GOPHER_ADMIN_ATTRIBUTE_TYPEW
,* LPGOPHER_ADMIN_ATTRIBUTE_TYPEW
;
756 DECL_WINELIB_TYPE_AW(GOPHER_ADMIN_ATTRIBUTE_TYPE
)
757 DECL_WINELIB_TYPE_AW(LPGOPHER_ADMIN_ATTRIBUTE_TYPE
)
760 FILETIME DateAndTime
;
761 } GOPHER_MOD_DATE_ATTRIBUTE_TYPE
,* LPGOPHER_MOD_DATE_ATTRIBUTE_TYPE
;
765 } GOPHER_TTL_ATTRIBUTE_TYPE
,* LPGOPHER_TTL_ATTRIBUTE_TYPE
;
769 } GOPHER_SCORE_ATTRIBUTE_TYPE
,* LPGOPHER_SCORE_ATTRIBUTE_TYPE
;
774 } GOPHER_SCORE_RANGE_ATTRIBUTE_TYPE
,* LPGOPHER_SCORE_RANGE_ATTRIBUTE_TYPE
;
778 } GOPHER_SITE_ATTRIBUTE_TYPEA
,* LPGOPHER_SITE_ATTRIBUTE_TYPEA
;
782 } GOPHER_SITE_ATTRIBUTE_TYPEW
,* LPGOPHER_SITE_ATTRIBUTE_TYPEW
;
784 DECL_WINELIB_TYPE_AW(GOPHER_SITE_ATTRIBUTE_TYPE
)
785 DECL_WINELIB_TYPE_AW(LPGOPHER_SITE_ATTRIBUTE_TYPE
)
789 } GOPHER_ORGANIZATION_ATTRIBUTE_TYPEA
,* LPGOPHER_ORGANIZATION_ATTRIBUTE_TYPEA
;
792 LPCWSTR Organization
;
793 } GOPHER_ORGANIZATION_ATTRIBUTE_TYPEW
,* LPGOPHER_ORGANIZATION_ATTRIBUTE_TYPEW
;
795 DECL_WINELIB_TYPE_AW(GOPHER_ORGANIZATION_ATTRIBUTE_TYPE
)
796 DECL_WINELIB_TYPE_AW(LPGOPHER_ORGANIZATION_ATTRIBUTE_TYPE
)
800 } GOPHER_LOCATION_ATTRIBUTE_TYPEA
,* LPGOPHER_LOCATION_ATTRIBUTE_TYPEA
;
804 } GOPHER_LOCATION_ATTRIBUTE_TYPEW
,* LPGOPHER_LOCATION_ATTRIBUTE_TYPEW
;
806 DECL_WINELIB_TYPE_AW(GOPHER_LOCATION_ATTRIBUTE_TYPE
)
807 DECL_WINELIB_TYPE_AW(LPGOPHER_LOCATION_ATTRIBUTE_TYPE
)
816 } GOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE
,* LPGOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE
;
820 } GOPHER_TIMEZONE_ATTRIBUTE_TYPE
,* LPGOPHER_TIMEZONE_ATTRIBUTE_TYPE
;
824 } GOPHER_PROVIDER_ATTRIBUTE_TYPEA
,* LPGOPHER_PROVIDER_ATTRIBUTE_TYPEA
;
828 } GOPHER_PROVIDER_ATTRIBUTE_TYPEW
,* LPGOPHER_PROVIDER_ATTRIBUTE_TYPEW
;
830 DECL_WINELIB_TYPE_AW(GOPHER_PROVIDER_ATTRIBUTE_TYPE
)
831 DECL_WINELIB_TYPE_AW(LPGOPHER_PROVIDER_ATTRIBUTE_TYPE
)
835 } GOPHER_VERSION_ATTRIBUTE_TYPEA
,* LPGOPHER_VERSION_ATTRIBUTE_TYPEA
;
839 } GOPHER_VERSION_ATTRIBUTE_TYPEW
,* LPGOPHER_VERSION_ATTRIBUTE_TYPEW
;
841 DECL_WINELIB_TYPE_AW(GOPHER_VERSION_ATTRIBUTE_TYPE
)
842 DECL_WINELIB_TYPE_AW(LPGOPHER_VERSION_ATTRIBUTE_TYPE
)
845 LPCSTR ShortAbstract
;
847 } GOPHER_ABSTRACT_ATTRIBUTE_TYPEA
,* LPGOPHER_ABSTRACT_ATTRIBUTE_TYPEA
;
850 LPCWSTR ShortAbstract
;
851 LPCWSTR AbstractFile
;
852 } GOPHER_ABSTRACT_ATTRIBUTE_TYPEW
,* LPGOPHER_ABSTRACT_ATTRIBUTE_TYPEW
;
854 DECL_WINELIB_TYPE_AW(GOPHER_ABSTRACT_ATTRIBUTE_TYPE
)
855 DECL_WINELIB_TYPE_AW(LPGOPHER_ABSTRACT_ATTRIBUTE_TYPE
)
861 } GOPHER_VIEW_ATTRIBUTE_TYPEA
,* LPGOPHER_VIEW_ATTRIBUTE_TYPEA
;
867 } GOPHER_VIEW_ATTRIBUTE_TYPEW
,* LPGOPHER_VIEW_ATTRIBUTE_TYPEW
;
869 DECL_WINELIB_TYPE_AW(GOPHER_VIEW_ATTRIBUTE_TYPE
)
870 DECL_WINELIB_TYPE_AW(LPGOPHER_VIEW_ATTRIBUTE_TYPE
)
874 } GOPHER_VERONICA_ATTRIBUTE_TYPE
,* LPGOPHER_VERONICA_ATTRIBUTE_TYPE
;
879 } GOPHER_ASK_ATTRIBUTE_TYPEA
,* LPGOPHER_ASK_ATTRIBUTE_TYPEA
;
882 LPCWSTR QuestionType
;
883 LPCWSTR QuestionText
;
884 } GOPHER_ASK_ATTRIBUTE_TYPEW
,* LPGOPHER_ASK_ATTRIBUTE_TYPEW
;
886 DECL_WINELIB_TYPE_AW(GOPHER_ASK_ATTRIBUTE_TYPE
)
887 DECL_WINELIB_TYPE_AW(LPGOPHER_ASK_ATTRIBUTE_TYPE
)
891 } GOPHER_UNKNOWN_ATTRIBUTE_TYPEA
,* LPGOPHER_UNKNOWN_ATTRIBUTE_TYPEA
;
895 } GOPHER_UNKNOWN_ATTRIBUTE_TYPEW
,* LPGOPHER_UNKNOWN_ATTRIBUTE_TYPEW
;
897 DECL_WINELIB_TYPE_AW(GOPHER_UNKNOWN_ATTRIBUTE_TYPE
)
898 DECL_WINELIB_TYPE_AW(LPGOPHER_UNKNOWN_ATTRIBUTE_TYPE
)
904 GOPHER_ADMIN_ATTRIBUTE_TYPEA Admin
;
905 GOPHER_MOD_DATE_ATTRIBUTE_TYPE ModDate
;
906 GOPHER_TTL_ATTRIBUTE_TYPE Ttl
;
907 GOPHER_SCORE_ATTRIBUTE_TYPE Score
;
908 GOPHER_SCORE_RANGE_ATTRIBUTE_TYPE ScoreRange
;
909 GOPHER_SITE_ATTRIBUTE_TYPEA Site
;
910 GOPHER_ORGANIZATION_ATTRIBUTE_TYPEA Organization
;
911 GOPHER_LOCATION_ATTRIBUTE_TYPEA Location
;
912 GOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE GeographicalLocation
;
913 GOPHER_TIMEZONE_ATTRIBUTE_TYPE TimeZone
;
914 GOPHER_PROVIDER_ATTRIBUTE_TYPEA Provider
;
915 GOPHER_VERSION_ATTRIBUTE_TYPEA Version
;
916 GOPHER_ABSTRACT_ATTRIBUTE_TYPEA Abstract
;
917 GOPHER_VIEW_ATTRIBUTE_TYPEA View
;
918 GOPHER_VERONICA_ATTRIBUTE_TYPE Veronica
;
919 GOPHER_ASK_ATTRIBUTE_TYPEA Ask
;
920 GOPHER_UNKNOWN_ATTRIBUTE_TYPEA Unknown
;
922 } GOPHER_ATTRIBUTE_TYPEA
, *LPGOPHER_ATTRIBUTE_TYPEA
;
928 GOPHER_ADMIN_ATTRIBUTE_TYPEW Admin
;
929 GOPHER_MOD_DATE_ATTRIBUTE_TYPE ModDate
;
930 GOPHER_TTL_ATTRIBUTE_TYPE Ttl
;
931 GOPHER_SCORE_ATTRIBUTE_TYPE Score
;
932 GOPHER_SCORE_RANGE_ATTRIBUTE_TYPE ScoreRange
;
933 GOPHER_SITE_ATTRIBUTE_TYPEW Site
;
934 GOPHER_ORGANIZATION_ATTRIBUTE_TYPEW Organization
;
935 GOPHER_LOCATION_ATTRIBUTE_TYPEW Location
;
936 GOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE GeographicalLocation
;
937 GOPHER_TIMEZONE_ATTRIBUTE_TYPE TimeZone
;
938 GOPHER_PROVIDER_ATTRIBUTE_TYPEW Provider
;
939 GOPHER_VERSION_ATTRIBUTE_TYPEW Version
;
940 GOPHER_ABSTRACT_ATTRIBUTE_TYPEW Abstract
;
941 GOPHER_VIEW_ATTRIBUTE_TYPEW View
;
942 GOPHER_VERONICA_ATTRIBUTE_TYPE Veronica
;
943 GOPHER_ASK_ATTRIBUTE_TYPEW Ask
;
944 GOPHER_UNKNOWN_ATTRIBUTE_TYPEW Unknown
;
946 } GOPHER_ATTRIBUTE_TYPEW
, *LPGOPHER_ATTRIBUTE_TYPEW
;
948 DECL_WINELIB_TYPE_AW(GOPHER_ATTRIBUTE_TYPE
)
949 DECL_WINELIB_TYPE_AW(LPGOPHER_ATTRIBUTE_TYPE
)
951 #define MAX_GOPHER_CATEGORY_NAME 128
952 #define MAX_GOPHER_ATTRIBUTE_NAME 128
953 #define MIN_GOPHER_ATTRIBUTE_LENGTH 256
955 #define GOPHER_INFO_CATEGORY TEXT("+INFO")
956 #define GOPHER_ADMIN_CATEGORY TEXT("+ADMIN")
957 #define GOPHER_VIEWS_CATEGORY TEXT("+VIEWS")
958 #define GOPHER_ABSTRACT_CATEGORY TEXT("+ABSTRACT")
959 #define GOPHER_VERONICA_CATEGORY TEXT("+VERONICA")
960 #define GOPHER_ADMIN_ATTRIBUTE TEXT("Admin")
961 #define GOPHER_MOD_DATE_ATTRIBUTE TEXT("Mod-Date")
962 #define GOPHER_TTL_ATTRIBUTE TEXT("TTL")
963 #define GOPHER_SCORE_ATTRIBUTE TEXT("Score")
964 #define GOPHER_RANGE_ATTRIBUTE TEXT("Score-range")
965 #define GOPHER_SITE_ATTRIBUTE TEXT("Site")
966 #define GOPHER_ORG_ATTRIBUTE TEXT("Org")
967 #define GOPHER_LOCATION_ATTRIBUTE TEXT("Loc")
968 #define GOPHER_GEOG_ATTRIBUTE TEXT("Geog")
969 #define GOPHER_TIMEZONE_ATTRIBUTE TEXT("TZ")
970 #define GOPHER_PROVIDER_ATTRIBUTE TEXT("Provider")
971 #define GOPHER_VERSION_ATTRIBUTE TEXT("Version")
972 #define GOPHER_ABSTRACT_ATTRIBUTE TEXT("Abstract")
973 #define GOPHER_VIEW_ATTRIBUTE TEXT("View")
974 #define GOPHER_TREEWALK_ATTRIBUTE TEXT("treewalk")
976 #define GOPHER_ATTRIBUTE_ID_BASE 0xabcccc00
978 #define GOPHER_CATEGORY_ID_ALL (GOPHER_ATTRIBUTE_ID_BASE + 1)
979 #define GOPHER_CATEGORY_ID_INFO (GOPHER_ATTRIBUTE_ID_BASE + 2)
980 #define GOPHER_CATEGORY_ID_ADMIN (GOPHER_ATTRIBUTE_ID_BASE + 3)
981 #define GOPHER_CATEGORY_ID_VIEWS (GOPHER_ATTRIBUTE_ID_BASE + 4)
982 #define GOPHER_CATEGORY_ID_ABSTRACT (GOPHER_ATTRIBUTE_ID_BASE + 5)
983 #define GOPHER_CATEGORY_ID_VERONICA (GOPHER_ATTRIBUTE_ID_BASE + 6)
984 #define GOPHER_CATEGORY_ID_ASK (GOPHER_ATTRIBUTE_ID_BASE + 7)
985 #define GOPHER_CATEGORY_ID_UNKNOWN (GOPHER_ATTRIBUTE_ID_BASE + 8)
987 #define GOPHER_ATTRIBUTE_ID_ALL (GOPHER_ATTRIBUTE_ID_BASE + 9)
988 #define GOPHER_ATTRIBUTE_ID_ADMIN (GOPHER_ATTRIBUTE_ID_BASE + 10)
989 #define GOPHER_ATTRIBUTE_ID_MOD_DATE (GOPHER_ATTRIBUTE_ID_BASE + 11)
990 #define GOPHER_ATTRIBUTE_ID_TTL (GOPHER_ATTRIBUTE_ID_BASE + 12)
991 #define GOPHER_ATTRIBUTE_ID_SCORE (GOPHER_ATTRIBUTE_ID_BASE + 13)
992 #define GOPHER_ATTRIBUTE_ID_RANGE (GOPHER_ATTRIBUTE_ID_BASE + 14)
993 #define GOPHER_ATTRIBUTE_ID_SITE (GOPHER_ATTRIBUTE_ID_BASE + 15)
994 #define GOPHER_ATTRIBUTE_ID_ORG (GOPHER_ATTRIBUTE_ID_BASE + 16)
995 #define GOPHER_ATTRIBUTE_ID_LOCATION (GOPHER_ATTRIBUTE_ID_BASE + 17)
996 #define GOPHER_ATTRIBUTE_ID_GEOG (GOPHER_ATTRIBUTE_ID_BASE + 18)
997 #define GOPHER_ATTRIBUTE_ID_TIMEZONE (GOPHER_ATTRIBUTE_ID_BASE + 19)
998 #define GOPHER_ATTRIBUTE_ID_PROVIDER (GOPHER_ATTRIBUTE_ID_BASE + 20)
999 #define GOPHER_ATTRIBUTE_ID_VERSION (GOPHER_ATTRIBUTE_ID_BASE + 21)
1000 #define GOPHER_ATTRIBUTE_ID_ABSTRACT (GOPHER_ATTRIBUTE_ID_BASE + 22)
1001 #define GOPHER_ATTRIBUTE_ID_VIEW (GOPHER_ATTRIBUTE_ID_BASE + 23)
1002 #define GOPHER_ATTRIBUTE_ID_TREEWALK (GOPHER_ATTRIBUTE_ID_BASE + 24)
1003 #define GOPHER_ATTRIBUTE_ID_UNKNOWN (GOPHER_ATTRIBUTE_ID_BASE + 25)
1005 BOOLAPI
GopherCreateLocatorA(LPCSTR
,INTERNET_PORT
,LPCSTR lpszDisplayString
,
1006 LPCSTR lpszSelectorString
,DWORD
,LPSTR lpszLocator
,LPDWORD
);
1007 BOOLAPI
GopherCreateLocatorW(LPCWSTR
,INTERNET_PORT
,LPCWSTR lpszDisplayString
,
1008 LPCWSTR lpszSelectorString
,DWORD
,LPWSTR lpszLocator
,LPDWORD
);
1009 #define GopherCreateLocator WINELIB_NAME_AW(GopherCreateLocator)
1011 BOOLAPI
GopherGetLocatorTypeA(LPCSTR
,LPDWORD
);
1012 BOOLAPI
GopherGetLocatorTypeW(LPCWSTR
,LPDWORD
);
1013 #define GopherGetLocatorType WINELIB_NAME_AW(GopherGetLocatorType)
1015 INTERNETAPI HINTERNET WINAPI
GopherFindFirstFileA(HINTERNET
,LPCSTR lpszLocator
,
1016 LPCSTR lpszSearchString
,LPGOPHER_FIND_DATAA lpFindData
,DWORD
,DWORD
);
1017 INTERNETAPI HINTERNET WINAPI
GopherFindFirstFileW(HINTERNET
,LPCWSTR lpszLocator
,
1018 LPCWSTR lpszSearchString
,LPGOPHER_FIND_DATAW lpFindData
,DWORD
,DWORD
);
1019 #define GopherFindFirstFile WINELIB_NAME_AW(GopherFindFirstFile)
1021 INTERNETAPI HINTERNET WINAPI
GopherOpenFileA(HINTERNET
,LPCSTR
,LPCSTR lpszView
,DWORD
,DWORD
);
1022 INTERNETAPI HINTERNET WINAPI
GopherOpenFileW(HINTERNET
,LPCWSTR
,LPCWSTR lpszView
,DWORD
,DWORD
);
1023 #define GopherOpenFile WINELIB_NAME_AW(GopherOpenFile)
1025 typedef BOOL (CALLBACK
*GOPHER_ATTRIBUTE_ENUMERATORA
)(LPGOPHER_ATTRIBUTE_TYPEA
,DWORD
);
1026 typedef BOOL (CALLBACK
*GOPHER_ATTRIBUTE_ENUMERATORW
)(LPGOPHER_ATTRIBUTE_TYPEW
,DWORD
);
1028 DECL_WINELIB_TYPE_AW(GOPHER_ATTRIBUTE_ENUMERATOR
)
1030 BOOLAPI
GopherGetAttributeA(HINTERNET
,LPCSTR
,LPCSTR lpszAttributeName
,LPBYTE
,
1031 DWORD
,LPDWORD
,GOPHER_ATTRIBUTE_ENUMERATORA lpfnEnumerator
,DWORD
);
1032 BOOLAPI
GopherGetAttributeW(HINTERNET
,LPCWSTR
,LPCWSTR lpszAttributeName
,LPBYTE
,
1033 DWORD
,LPDWORD
,GOPHER_ATTRIBUTE_ENUMERATORW lpfnEnumerator
,DWORD
);
1034 #define GopherGetAttribute WINELIB_NAME_AW(GopherGetAttribute)
1036 #define HTTP_MAJOR_VERSION 1
1037 #define HTTP_MINOR_VERSION 0
1038 #define HTTP_VERSION TEXT("HTTP/1.0")
1039 #define HTTP_QUERY_MIME_VERSION 0
1040 #define HTTP_QUERY_CONTENT_TYPE 1
1041 #define HTTP_QUERY_CONTENT_TRANSFER_ENCODING 2
1042 #define HTTP_QUERY_CONTENT_ID 3
1043 #define HTTP_QUERY_CONTENT_DESCRIPTION 4
1044 #define HTTP_QUERY_CONTENT_LENGTH 5
1045 #define HTTP_QUERY_CONTENT_LANGUAGE 6
1046 #define HTTP_QUERY_ALLOW 7
1047 #define HTTP_QUERY_PUBLIC 8
1048 #define HTTP_QUERY_DATE 9
1049 #define HTTP_QUERY_EXPIRES 10
1050 #define HTTP_QUERY_LAST_MODIFIED 11
1051 #define HTTP_QUERY_MESSAGE_ID 12
1052 #define HTTP_QUERY_URI 13
1053 #define HTTP_QUERY_DERIVED_FROM 14
1054 #define HTTP_QUERY_COST 15
1055 #define HTTP_QUERY_LINK 16
1056 #define HTTP_QUERY_PRAGMA 17
1057 #define HTTP_QUERY_VERSION 18
1058 #define HTTP_QUERY_STATUS_CODE 19
1059 #define HTTP_QUERY_STATUS_TEXT 20
1060 #define HTTP_QUERY_RAW_HEADERS 21
1061 #define HTTP_QUERY_RAW_HEADERS_CRLF 22
1062 #define HTTP_QUERY_CONNECTION 23
1063 #define HTTP_QUERY_ACCEPT 24
1064 #define HTTP_QUERY_ACCEPT_CHARSET 25
1065 #define HTTP_QUERY_ACCEPT_ENCODING 26
1066 #define HTTP_QUERY_ACCEPT_LANGUAGE 27
1067 #define HTTP_QUERY_AUTHORIZATION 28
1068 #define HTTP_QUERY_CONTENT_ENCODING 29
1069 #define HTTP_QUERY_FORWARDED 30
1070 #define HTTP_QUERY_FROM 31
1071 #define HTTP_QUERY_IF_MODIFIED_SINCE 32
1072 #define HTTP_QUERY_LOCATION 33
1073 #define HTTP_QUERY_ORIG_URI 34
1074 #define HTTP_QUERY_REFERER 35
1075 #define HTTP_QUERY_RETRY_AFTER 36
1076 #define HTTP_QUERY_SERVER 37
1077 #define HTTP_QUERY_TITLE 38
1078 #define HTTP_QUERY_USER_AGENT 39
1079 #define HTTP_QUERY_WWW_AUTHENTICATE 40
1080 #define HTTP_QUERY_PROXY_AUTHENTICATE 41
1081 #define HTTP_QUERY_ACCEPT_RANGES 42
1082 #define HTTP_QUERY_SET_COOKIE 43
1083 #define HTTP_QUERY_COOKIE 44
1084 #define HTTP_QUERY_REQUEST_METHOD 45
1085 #define HTTP_QUERY_REFRESH 46
1086 #define HTTP_QUERY_CONTENT_DISPOSITION 47
1087 #define HTTP_QUERY_AGE 48
1088 #define HTTP_QUERY_CACHE_CONTROL 49
1089 #define HTTP_QUERY_CONTENT_BASE 50
1090 #define HTTP_QUERY_CONTENT_LOCATION 51
1091 #define HTTP_QUERY_CONTENT_MD5 52
1092 #define HTTP_QUERY_CONTENT_RANGE 53
1093 #define HTTP_QUERY_ETAG 54
1094 #define HTTP_QUERY_HOST 55
1095 #define HTTP_QUERY_IF_MATCH 56
1096 #define HTTP_QUERY_IF_NONE_MATCH 57
1097 #define HTTP_QUERY_IF_RANGE 58
1098 #define HTTP_QUERY_IF_UNMODIFIED_SINCE 59
1099 #define HTTP_QUERY_MAX_FORWARDS 60
1100 #define HTTP_QUERY_PROXY_AUTHORIZATION 61
1101 #define HTTP_QUERY_RANGE 62
1102 #define HTTP_QUERY_TRANSFER_ENCODING 63
1103 #define HTTP_QUERY_UPGRADE 64
1104 #define HTTP_QUERY_VARY 65
1105 #define HTTP_QUERY_VIA 66
1106 #define HTTP_QUERY_WARNING 67
1107 #define HTTP_QUERY_EXPECT 68
1108 #define HTTP_QUERY_PROXY_CONNECTION 69
1109 #define HTTP_QUERY_UNLESS_MODIFIED_SINCE 70
1110 #define HTTP_QUERY_ECHO_REQUEST 71
1111 #define HTTP_QUERY_ECHO_REPLY 72
1112 #define HTTP_QUERY_ECHO_HEADERS 73
1113 #define HTTP_QUERY_ECHO_HEADERS_CRLF 74
1114 #define HTTP_QUERY_PROXY_SUPPORT 75
1115 #define HTTP_QUERY_AUTHENTICATION_INFO 76
1116 #define HTTP_QUERY_PASSPORT_URLS 77
1117 #define HTTP_QUERY_PASSPORT_CONFIG 78
1118 #define HTTP_QUERY_MAX 78
1119 #define HTTP_QUERY_CUSTOM 65535
1120 #define HTTP_QUERY_FLAG_REQUEST_HEADERS 0x80000000
1121 #define HTTP_QUERY_FLAG_SYSTEMTIME 0x40000000
1122 #define HTTP_QUERY_FLAG_NUMBER 0x20000000
1123 #define HTTP_QUERY_FLAG_COALESCE 0x10000000
1124 #define HTTP_QUERY_MODIFIER_FLAGS_MASK (HTTP_QUERY_FLAG_REQUEST_HEADERS \
1125 | HTTP_QUERY_FLAG_SYSTEMTIME \
1126 | HTTP_QUERY_FLAG_NUMBER \
1127 | HTTP_QUERY_FLAG_COALESCE \
1129 #define HTTP_QUERY_HEADER_MASK (~HTTP_QUERY_MODIFIER_FLAGS_MASK)
1131 #define HTTP_STATUS_CONTINUE 100
1132 #define HTTP_STATUS_SWITCH_PROTOCOLS 101
1133 #define HTTP_STATUS_OK 200
1134 #define HTTP_STATUS_CREATED 201
1135 #define HTTP_STATUS_ACCEPTED 202
1136 #define HTTP_STATUS_PARTIAL 203
1137 #define HTTP_STATUS_NO_CONTENT 204
1138 #define HTTP_STATUS_RESET_CONTENT 205
1139 #define HTTP_STATUS_PARTIAL_CONTENT 206
1140 #define HTTP_STATUS_AMBIGUOUS 300
1141 #define HTTP_STATUS_MOVED 301
1142 #define HTTP_STATUS_REDIRECT 302
1143 #define HTTP_STATUS_REDIRECT_METHOD 303
1144 #define HTTP_STATUS_NOT_MODIFIED 304
1145 #define HTTP_STATUS_USE_PROXY 305
1146 #define HTTP_STATUS_REDIRECT_KEEP_VERB 307
1147 #define HTTP_STATUS_BAD_REQUEST 400
1148 #define HTTP_STATUS_DENIED 401
1149 #define HTTP_STATUS_PAYMENT_REQ 402
1150 #define HTTP_STATUS_FORBIDDEN 403
1151 #define HTTP_STATUS_NOT_FOUND 404
1152 #define HTTP_STATUS_BAD_METHOD 405
1153 #define HTTP_STATUS_NONE_ACCEPTABLE 406
1154 #define HTTP_STATUS_PROXY_AUTH_REQ 407
1155 #define HTTP_STATUS_REQUEST_TIMEOUT 408
1156 #define HTTP_STATUS_CONFLICT 409
1157 #define HTTP_STATUS_GONE 410
1158 #define HTTP_STATUS_LENGTH_REQUIRED 411
1159 #define HTTP_STATUS_PRECOND_FAILED 412
1160 #define HTTP_STATUS_REQUEST_TOO_LARGE 413
1161 #define HTTP_STATUS_URI_TOO_LONG 414
1162 #define HTTP_STATUS_UNSUPPORTED_MEDIA 415
1163 #define HTTP_STATUS_SERVER_ERROR 500
1164 #define HTTP_STATUS_NOT_SUPPORTED 501
1165 #define HTTP_STATUS_BAD_GATEWAY 502
1166 #define HTTP_STATUS_SERVICE_UNAVAIL 503
1167 #define HTTP_STATUS_GATEWAY_TIMEOUT 504
1168 #define HTTP_STATUS_VERSION_NOT_SUP 505
1169 #define HTTP_STATUS_FIRST HTTP_STATUS_CONTINUE
1170 #define HTTP_STATUS_LAST HTTP_STATUS_VERSION_NOT_SUP
1173 INTERNETAPI HINTERNET WINAPI
HttpOpenRequestA(HINTERNET
,LPCSTR
,LPCSTR
,LPCSTR
,
1174 LPCSTR lpszReferrer
,LPCSTR
* ,DWORD
,DWORD
);
1175 INTERNETAPI HINTERNET WINAPI
HttpOpenRequestW(HINTERNET
,LPCWSTR
,LPCWSTR
,LPCWSTR
,
1176 LPCWSTR lpszReferrer
,LPCWSTR
* ,DWORD
,DWORD
);
1177 #define HttpOpenRequest WINELIB_NAME_AW(HttpOpenRequest)
1179 BOOLAPI
HttpAddRequestHeadersA(HINTERNET
,LPCSTR
,DWORD
,DWORD
);
1180 BOOLAPI
HttpAddRequestHeadersW(HINTERNET
,LPCWSTR
,DWORD
,DWORD
);
1181 #define HttpAddRequestHeaders WINELIB_NAME_AW(HttpAddRequestHeaders)
1183 #define HTTP_ADDREQ_INDEX_MASK 0x0000FFFF
1184 #define HTTP_ADDREQ_FLAGS_MASK 0xFFFF0000
1185 #define HTTP_ADDREQ_FLAG_ADD_IF_NEW 0x10000000
1186 #define HTTP_ADDREQ_FLAG_ADD 0x20000000
1187 #define HTTP_ADDREQ_FLAG_COALESCE_WITH_COMMA 0x40000000
1188 #define HTTP_ADDREQ_FLAG_COALESCE_WITH_SEMICOLON 0x01000000
1189 #define HTTP_ADDREQ_FLAG_COALESCE HTTP_ADDREQ_FLAG_COALESCE_WITH_COMMA
1190 #define HTTP_ADDREQ_FLAG_REPLACE 0x80000000
1192 BOOLAPI
HttpSendRequestA(HINTERNET
,LPCSTR lpszHeaders
,DWORD
,LPVOID lpOptional
,DWORD
);
1193 BOOLAPI
HttpSendRequestW(HINTERNET
,LPCWSTR lpszHeaders
,DWORD
,LPVOID lpOptional
,DWORD
);
1194 #define HttpSendRequest WINELIB_NAME_AW(HttpSendRequest)
1196 INTERNETAPI BOOL WINAPI
HttpSendRequestExA(HINTERNET
,LPINTERNET_BUFFERSA lpBuffersIn
,
1197 LPINTERNET_BUFFERSA lpBuffersOut
,DWORD
,DWORD
);
1198 INTERNETAPI BOOL WINAPI
HttpSendRequestExW(HINTERNET
,LPINTERNET_BUFFERSW lpBuffersIn
,
1199 LPINTERNET_BUFFERSW lpBuffersOut
,DWORD
,DWORD
);
1200 #define HttpSendRequestEx WINELIB_NAME_AW(HttpSendRequestEx)
1202 #define HSR_ASYNC WININET_API_FLAG_ASYNC
1203 #define HSR_SYNC WININET_API_FLAG_SYNC
1204 #define HSR_USE_CONTEXT WININET_API_FLAG_USE_CONTEXT
1205 #define HSR_INITIATE 0x00000008
1206 #define HSR_DOWNLOAD 0x00000010
1207 #define HSR_CHUNKED 0x00000020
1209 INTERNETAPI BOOL WINAPI
HttpEndRequestA(HINTERNET
,LPINTERNET_BUFFERSA lpBuffersOut
,DWORD
,DWORD
);
1210 INTERNETAPI BOOL WINAPI
HttpEndRequestW(HINTERNET
,LPINTERNET_BUFFERSW lpBuffersOut
,DWORD
,DWORD
);
1211 #define HttpEndRequest WINELIB_NAME_AW(HttpEndRequest)
1213 BOOLAPI
HttpQueryInfoA(HINTERNET
,DWORD
,LPVOID lpBuffer
,LPDWORD
,LPDWORD lpdwIndex
);
1214 BOOLAPI
HttpQueryInfoW(HINTERNET
,DWORD
,LPVOID lpBuffer
,LPDWORD
,LPDWORD lpdwIndex
);
1215 #define HttpQueryInfo WINELIB_NAME_AW(HttpQueryInfo)
1217 BOOLAPI
InternetClearAllPerSiteCookieDecisions(VOID
);
1219 BOOLAPI
InternetEnumPerSiteCookieDecisionA(LPSTR
,unsigned long *,unsigned long *,unsigned long);
1220 BOOLAPI
InternetEnumPerSiteCookieDecisionW(LPWSTR
,unsigned long *,unsigned long *,unsigned long);
1221 #define InternetEnumPerSiteCookieDecision WINELIB_NAME_AW(InternetEnumPerSiteCookieDecision)
1223 BOOLAPI
InternetGetCookieExA(LPCSTR
,LPCSTR
,LPSTR
,LPDWORD
,DWORD
,LPVOID
);
1224 BOOLAPI
InternetGetCookieExW(LPCWSTR
,LPCWSTR
,LPWSTR
,LPDWORD
,DWORD
,LPVOID
);
1225 #define InternetGetCookieEx WINELIB_NAME_AW(InternetGetCookieEx)
1227 DWORD WINAPI
InternetSetCookieExA(LPCSTR
,LPCSTR
,LPCSTR
,DWORD
,DWORD_PTR
);
1228 DWORD WINAPI
InternetSetCookieExW(LPCWSTR
,LPCWSTR
,LPCWSTR
,DWORD
,DWORD_PTR
);
1229 #define InternetSetCookieEx WINELIB_NAME_AW(InternetSetCookieEx)
1231 BOOLAPI
InternetGetPerSiteCookieDecisionA(LPCSTR
,unsigned long *);
1232 BOOLAPI
InternetGetPerSiteCookieDecisionW(LPCWSTR
,unsigned long *);
1233 #define InternetGetPerSiteCookieDecision WINELIB_NAME_AW(InternetGetPerSiteCookieDecision)
1235 BOOLAPI
InternetSetPerSiteCookieDecisionA(LPCSTR
,DWORD
);
1236 BOOLAPI
InternetSetPerSiteCookieDecisionW(LPCWSTR
,DWORD
);
1237 #define InternetSetPerSiteCookieDecision WINELIB_NAME_AW(InternetSetPerSiteCookieDecision)
1239 BOOLAPI
InternetSetCookieA(LPCSTR
,LPCSTR
,LPCSTR
);
1240 BOOLAPI
InternetSetCookieW(LPCWSTR
,LPCWSTR
,LPCWSTR
);
1241 #define InternetSetCookie WINELIB_NAME_AW(InternetSetCookie)
1243 BOOLAPI
InternetGetCookieA(LPCSTR
,LPCSTR
,LPSTR
,LPDWORD
);
1244 BOOLAPI
InternetGetCookieW(LPCWSTR
,LPCWSTR
,LPWSTR
,LPDWORD
);
1245 #define InternetGetCookie WINELIB_NAME_AW(InternetGetCookie)
1247 INTERNETAPI DWORD WINAPI
InternetAttemptConnect(DWORD
);
1248 BOOLAPI
InternetCheckConnectionA(LPCSTR
,DWORD
,DWORD
);
1249 BOOLAPI
InternetCheckConnectionW(LPCWSTR
,DWORD
,DWORD
);
1250 #define InternetCheckConnection WINELIB_NAME_AW(InternetCheckConnection)
1252 #define FLAG_ICC_FORCE_CONNECTION 0x00000001
1254 #define FLAGS_ERROR_UI_FILTER_FOR_ERRORS 0x01
1255 #define FLAGS_ERROR_UI_FLAGS_CHANGE_OPTIONS 0x02
1256 #define FLAGS_ERROR_UI_FLAGS_GENERATE_DATA 0x04
1257 #define FLAGS_ERROR_UI_FLAGS_NO_UI 0x08
1258 #define FLAGS_ERROR_UI_SERIALIZE_DIALOGS 0x10
1260 DWORD
InternetAuthNotifyCallback ( DWORD
,DWORD
,LPVOID
);
1261 typedef DWORD (CALLBACK
*PFN_AUTH_NOTIFY
) (DWORD
,DWORD
,LPVOID
);
1267 PFN_AUTH_NOTIFY pfnNotify
;
1270 INTERNET_AUTH_NOTIFY_DATA
;
1273 INTERNETAPI DWORD WINAPI
InternetErrorDlg(HWND
,HINTERNET
,DWORD
,DWORD
,LPVOID
*);
1274 INTERNETAPI DWORD WINAPI
InternetConfirmZoneCrossingA(HWND
,LPSTR
,LPSTR
,BOOL
);
1275 INTERNETAPI DWORD WINAPI
InternetConfirmZoneCrossingW(HWND
,LPWSTR
,LPWSTR
,BOOL
);
1276 #define InternetConfirmZoneCrossing WINELIB_NAME_AW(InternetConfirmZoneCrossing)
1278 #define INTERNET_ERROR_BASE 12000
1280 #define ERROR_INTERNET_OUT_OF_HANDLES (INTERNET_ERROR_BASE + 1)
1281 #define ERROR_INTERNET_TIMEOUT (INTERNET_ERROR_BASE + 2)
1282 #define ERROR_INTERNET_EXTENDED_ERROR (INTERNET_ERROR_BASE + 3)
1283 #define ERROR_INTERNET_INTERNAL_ERROR (INTERNET_ERROR_BASE + 4)
1284 #define ERROR_INTERNET_INVALID_URL (INTERNET_ERROR_BASE + 5)
1285 #define ERROR_INTERNET_UNRECOGNIZED_SCHEME (INTERNET_ERROR_BASE + 6)
1286 #define ERROR_INTERNET_NAME_NOT_RESOLVED (INTERNET_ERROR_BASE + 7)
1287 #define ERROR_INTERNET_PROTOCOL_NOT_FOUND (INTERNET_ERROR_BASE + 8)
1288 #define ERROR_INTERNET_INVALID_OPTION (INTERNET_ERROR_BASE + 9)
1289 #define ERROR_INTERNET_BAD_OPTION_LENGTH (INTERNET_ERROR_BASE + 10)
1290 #define ERROR_INTERNET_OPTION_NOT_SETTABLE (INTERNET_ERROR_BASE + 11)
1291 #define ERROR_INTERNET_SHUTDOWN (INTERNET_ERROR_BASE + 12)
1292 #define ERROR_INTERNET_INCORRECT_USER_NAME (INTERNET_ERROR_BASE + 13)
1293 #define ERROR_INTERNET_INCORRECT_PASSWORD (INTERNET_ERROR_BASE + 14)
1294 #define ERROR_INTERNET_LOGIN_FAILURE (INTERNET_ERROR_BASE + 15)
1295 #define ERROR_INTERNET_INVALID_OPERATION (INTERNET_ERROR_BASE + 16)
1296 #define ERROR_INTERNET_OPERATION_CANCELLED (INTERNET_ERROR_BASE + 17)
1297 #define ERROR_INTERNET_INCORRECT_HANDLE_TYPE (INTERNET_ERROR_BASE + 18)
1298 #define ERROR_INTERNET_INCORRECT_HANDLE_STATE (INTERNET_ERROR_BASE + 19)
1299 #define ERROR_INTERNET_NOT_PROXY_REQUEST (INTERNET_ERROR_BASE + 20)
1300 #define ERROR_INTERNET_REGISTRY_VALUE_NOT_FOUND (INTERNET_ERROR_BASE + 21)
1301 #define ERROR_INTERNET_BAD_REGISTRY_PARAMETER (INTERNET_ERROR_BASE + 22)
1302 #define ERROR_INTERNET_NO_DIRECT_ACCESS (INTERNET_ERROR_BASE + 23)
1303 #define ERROR_INTERNET_NO_CONTEXT (INTERNET_ERROR_BASE + 24)
1304 #define ERROR_INTERNET_NO_CALLBACK (INTERNET_ERROR_BASE + 25)
1305 #define ERROR_INTERNET_REQUEST_PENDING (INTERNET_ERROR_BASE + 26)
1306 #define ERROR_INTERNET_INCORRECT_FORMAT (INTERNET_ERROR_BASE + 27)
1307 #define ERROR_INTERNET_ITEM_NOT_FOUND (INTERNET_ERROR_BASE + 28)
1308 #define ERROR_INTERNET_CANNOT_CONNECT (INTERNET_ERROR_BASE + 29)
1309 #define ERROR_INTERNET_CONNECTION_ABORTED (INTERNET_ERROR_BASE + 30)
1310 #define ERROR_INTERNET_CONNECTION_RESET (INTERNET_ERROR_BASE + 31)
1311 #define ERROR_INTERNET_FORCE_RETRY (INTERNET_ERROR_BASE + 32)
1312 #define ERROR_INTERNET_INVALID_PROXY_REQUEST (INTERNET_ERROR_BASE + 33)
1313 #define ERROR_INTERNET_NEED_UI (INTERNET_ERROR_BASE + 34)
1314 #define ERROR_INTERNET_HANDLE_EXISTS (INTERNET_ERROR_BASE + 36)
1315 #define ERROR_INTERNET_SEC_CERT_DATE_INVALID (INTERNET_ERROR_BASE + 37)
1316 #define ERROR_INTERNET_SEC_CERT_CN_INVALID (INTERNET_ERROR_BASE + 38)
1317 #define ERROR_INTERNET_HTTP_TO_HTTPS_ON_REDIR (INTERNET_ERROR_BASE + 39)
1318 #define ERROR_INTERNET_HTTPS_TO_HTTP_ON_REDIR (INTERNET_ERROR_BASE + 40)
1319 #define ERROR_INTERNET_MIXED_SECURITY (INTERNET_ERROR_BASE + 41)
1320 #define ERROR_INTERNET_CHG_POST_IS_NON_SECURE (INTERNET_ERROR_BASE + 42)
1321 #define ERROR_INTERNET_POST_IS_NON_SECURE (INTERNET_ERROR_BASE + 43)
1322 #define ERROR_INTERNET_CLIENT_AUTH_CERT_NEEDED (INTERNET_ERROR_BASE + 44)
1323 #define ERROR_INTERNET_INVALID_CA (INTERNET_ERROR_BASE + 45)
1324 #define ERROR_INTERNET_CLIENT_AUTH_NOT_SETUP (INTERNET_ERROR_BASE + 46)
1325 #define ERROR_INTERNET_ASYNC_THREAD_FAILED (INTERNET_ERROR_BASE + 47)
1326 #define ERROR_INTERNET_REDIRECT_SCHEME_CHANGE (INTERNET_ERROR_BASE + 48)
1327 #define ERROR_INTERNET_DIALOG_PENDING (INTERNET_ERROR_BASE + 49)
1328 #define ERROR_INTERNET_RETRY_DIALOG (INTERNET_ERROR_BASE + 50)
1329 #define ERROR_INTERNET_HTTPS_HTTP_SUBMIT_REDIR (INTERNET_ERROR_BASE + 52)
1330 #define ERROR_INTERNET_INSERT_CDROM (INTERNET_ERROR_BASE + 53)
1331 #define ERROR_INTERNET_SEC_CERT_ERRORS (INTERNET_ERROR_BASE + 55)
1332 #define ERROR_INTERNET_SEC_CERT_NO_REV (INTERNET_ERROR_BASE + 56)
1333 #define ERROR_INTERNET_SEC_CERT_REV_FAILED (INTERNET_ERROR_BASE + 57)
1334 #define ERROR_FTP_TRANSFER_IN_PROGRESS (INTERNET_ERROR_BASE + 110)
1335 #define ERROR_FTP_DROPPED (INTERNET_ERROR_BASE + 111)
1336 #define ERROR_FTP_NO_PASSIVE_MODE (INTERNET_ERROR_BASE + 112)
1337 #define ERROR_GOPHER_PROTOCOL_ERROR (INTERNET_ERROR_BASE + 130)
1338 #define ERROR_GOPHER_NOT_FILE (INTERNET_ERROR_BASE + 131)
1339 #define ERROR_GOPHER_DATA_ERROR (INTERNET_ERROR_BASE + 132)
1340 #define ERROR_GOPHER_END_OF_DATA (INTERNET_ERROR_BASE + 133)
1341 #define ERROR_GOPHER_INVALID_LOCATOR (INTERNET_ERROR_BASE + 134)
1342 #define ERROR_GOPHER_INCORRECT_LOCATOR_TYPE (INTERNET_ERROR_BASE + 135)
1343 #define ERROR_GOPHER_NOT_GOPHER_PLUS (INTERNET_ERROR_BASE + 136)
1344 #define ERROR_GOPHER_ATTRIBUTE_NOT_FOUND (INTERNET_ERROR_BASE + 137)
1345 #define ERROR_GOPHER_UNKNOWN_LOCATOR (INTERNET_ERROR_BASE + 138)
1346 #define ERROR_HTTP_HEADER_NOT_FOUND (INTERNET_ERROR_BASE + 150)
1347 #define ERROR_HTTP_DOWNLEVEL_SERVER (INTERNET_ERROR_BASE + 151)
1348 #define ERROR_HTTP_INVALID_SERVER_RESPONSE (INTERNET_ERROR_BASE + 152)
1349 #define ERROR_HTTP_INVALID_HEADER (INTERNET_ERROR_BASE + 153)
1350 #define ERROR_HTTP_INVALID_QUERY_REQUEST (INTERNET_ERROR_BASE + 154)
1351 #define ERROR_HTTP_HEADER_ALREADY_EXISTS (INTERNET_ERROR_BASE + 155)
1352 #define ERROR_HTTP_REDIRECT_FAILED (INTERNET_ERROR_BASE + 156)
1353 #define ERROR_HTTP_NOT_REDIRECTED (INTERNET_ERROR_BASE + 160)
1354 #define ERROR_HTTP_COOKIE_NEEDS_CONFIRMATION (INTERNET_ERROR_BASE + 161)
1355 #define ERROR_HTTP_COOKIE_DECLINED (INTERNET_ERROR_BASE + 162)
1356 #define ERROR_HTTP_REDIRECT_NEEDS_CONFIRMATION (INTERNET_ERROR_BASE + 168)
1357 #define ERROR_INTERNET_SECURITY_CHANNEL_ERROR (INTERNET_ERROR_BASE + 157)
1358 #define ERROR_INTERNET_UNABLE_TO_CACHE_FILE (INTERNET_ERROR_BASE + 158)
1359 #define ERROR_INTERNET_TCPIP_NOT_INSTALLED (INTERNET_ERROR_BASE + 159)
1360 #define ERROR_INTERNET_DISCONNECTED (INTERNET_ERROR_BASE + 163)
1361 #define ERROR_INTERNET_SERVER_UNREACHABLE (INTERNET_ERROR_BASE + 164)
1362 #define ERROR_INTERNET_PROXY_SERVER_UNREACHABLE (INTERNET_ERROR_BASE + 165)
1363 #define ERROR_INTERNET_BAD_AUTO_PROXY_SCRIPT (INTERNET_ERROR_BASE + 166)
1364 #define ERROR_INTERNET_UNABLE_TO_DOWNLOAD_SCRIPT (INTERNET_ERROR_BASE + 167)
1365 #define ERROR_INTERNET_SEC_INVALID_CERT (INTERNET_ERROR_BASE + 169)
1366 #define ERROR_INTERNET_SEC_CERT_REVOKED (INTERNET_ERROR_BASE + 170)
1367 #define ERROR_INTERNET_FAILED_DUETOSECURITYCHECK (INTERNET_ERROR_BASE + 171)
1368 #define INTERNET_ERROR_LAST ERROR_INTERNET_FAILED_DUETOSECURITYCHECK
1371 #define NORMAL_CACHE_ENTRY 0x00000001
1372 #define COOKIE_CACHE_ENTRY 0x00100000
1373 #define URLHISTORY_CACHE_ENTRY 0x00200000
1374 #define TRACK_OFFLINE_CACHE_ENTRY 0x00000010
1375 #define TRACK_ONLINE_CACHE_ENTRY 0x00000020
1376 #define STICKY_CACHE_ENTRY 0x00000004
1377 #define SPARSE_CACHE_ENTRY 0x00010000
1379 #define URLCACHE_FIND_DEFAULT_FILTER NORMAL_CACHE_ENTRY \
1380 | COOKIE_CACHE_ENTRY \
1381 | URLHISTORY_CACHE_ENTRY \
1382 | TRACK_OFFLINE_CACHE_ENTRY \
1383 | TRACK_ONLINE_CACHE_ENTRY \
1384 | STICKY_CACHE_ENTRY
1387 typedef struct _INTERNET_CACHE_ENTRY_INFOA
{
1389 LPSTR lpszSourceUrlName
;
1390 LPSTR lpszLocalFileName
;
1391 DWORD CacheEntryType
;
1396 FILETIME LastModifiedTime
;
1397 FILETIME ExpireTime
;
1398 FILETIME LastAccessTime
;
1399 FILETIME LastSyncTime
;
1401 LPBYTE lpHeaderInfo
;
1402 DWORD dwHeaderInfoSize
;
1403 LPSTR lpszFileExtension
;
1406 DWORD dwExemptDelta
;
1408 } INTERNET_CACHE_ENTRY_INFOA
,* LPINTERNET_CACHE_ENTRY_INFOA
;
1410 typedef struct _INTERNET_CACHE_ENTRY_INFOW
{
1412 LPWSTR lpszSourceUrlName
;
1413 LPWSTR lpszLocalFileName
;
1414 DWORD CacheEntryType
;
1419 FILETIME LastModifiedTime
;
1420 FILETIME ExpireTime
;
1421 FILETIME LastAccessTime
;
1422 FILETIME LastSyncTime
;
1424 LPBYTE lpHeaderInfo
;
1425 DWORD dwHeaderInfoSize
;
1426 LPWSTR lpszFileExtension
;
1429 DWORD dwExemptDelta
;
1431 } INTERNET_CACHE_ENTRY_INFOW
,* LPINTERNET_CACHE_ENTRY_INFOW
;
1433 DECL_WINELIB_TYPE_AW(INTERNET_CACHE_ENTRY_INFO
)
1434 DECL_WINELIB_TYPE_AW(LPINTERNET_CACHE_ENTRY_INFO
)
1436 BOOLAPI
CreateUrlCacheEntryA(LPCSTR
,DWORD
,LPCSTR
,LPSTR
,DWORD
);
1437 BOOLAPI
CreateUrlCacheEntryW(LPCWSTR
,DWORD
,LPCWSTR
,LPWSTR
,DWORD
);
1438 #define CreateUrlCacheEntry WINELIB_NAME_AW(CreateUrlCacheEntry)
1440 BOOLAPI
CommitUrlCacheEntryA(LPCSTR
,LPCSTR
,FILETIME
,FILETIME
,DWORD
,LPBYTE
,DWORD
,LPCSTR
,LPCSTR
);
1441 BOOLAPI
CommitUrlCacheEntryW(LPCWSTR
,LPCWSTR
,FILETIME
,FILETIME
,DWORD
,LPWSTR
,DWORD
,LPCWSTR
,LPCWSTR
);
1442 #define CommitUrlCacheEntry WINELIB_NAME_AW(CommitUrlCacheEntry)
1444 BOOLAPI
ResumeSuspendedDownload(HINTERNET
, DWORD
);
1446 BOOLAPI
RetrieveUrlCacheEntryFileA(LPCSTR
,LPINTERNET_CACHE_ENTRY_INFOA
,LPDWORD
,DWORD
);
1447 BOOLAPI
RetrieveUrlCacheEntryFileW(LPCWSTR
,LPINTERNET_CACHE_ENTRY_INFOW
,LPDWORD
,DWORD
);
1448 #define RetrieveUrlCacheEntryFile WINELIB_NAME_AW(RetrieveUrlCacheEntryFile)
1450 BOOLAPI
SetUrlCacheConfigInfoA(LPDWORD
,DWORD
);
1451 BOOLAPI
SetUrlCacheConfigInfoW(LPDWORD
,DWORD
);
1452 #define SetUrlCacheConfigInfo WINELIB_NAME_AW(SetUrlCacheConfigInfo)
1454 BOOLAPI
UnlockUrlCacheEntryFileA(LPCSTR
,DWORD
);
1455 BOOLAPI
UnlockUrlCacheEntryFileW(LPCWSTR
,DWORD
);
1456 #define UnlockUrlCacheEntryFile WINELIB_NAME_AW(UnlockUrlCacheEntryFile)
1458 INTERNETAPI HANDLE WINAPI
RetrieveUrlCacheEntryStreamA(LPCSTR
,
1459 LPINTERNET_CACHE_ENTRY_INFOA
, LPDWORD
,BOOL
,DWORD
);
1460 INTERNETAPI HANDLE WINAPI
RetrieveUrlCacheEntryStreamW(LPCWSTR
,LPINTERNET_CACHE_ENTRY_INFOW
,
1461 LPDWORD
,BOOL
,DWORD
);
1462 #define RetrieveUrlCacheEntryStream WINELIB_NAME_AW(RetrieveUrlCacheEntryStream)
1464 BOOLAPI
ReadUrlCacheEntryStream( HANDLE
,DWORD
,LPVOID
,LPDWORD
,DWORD
);
1465 BOOLAPI
UnlockUrlCacheEntryStream( HANDLE
,DWORD
);
1466 BOOLAPI
GetUrlCacheEntryInfoA(LPCSTR
,LPINTERNET_CACHE_ENTRY_INFOA
,LPDWORD
);
1467 BOOLAPI
GetUrlCacheEntryInfoW(LPCWSTR
,LPINTERNET_CACHE_ENTRY_INFOW
,LPDWORD
);
1468 #define GetUrlCacheEntryInfo WINELIB_NAME_AW(GetUrlCacheEntryInfo)
1470 BOOLAPI
GetUrlCacheEntryInfoExA(
1471 LPCSTR
,LPINTERNET_CACHE_ENTRY_INFOA
,LPDWORD
,LPSTR
,LPDWORD
,LPVOID
,DWORD
);
1472 BOOLAPI
GetUrlCacheEntryInfoExW(
1473 LPCWSTR
,LPINTERNET_CACHE_ENTRY_INFOW
,LPDWORD
,LPWSTR
,LPDWORD
,LPVOID
,DWORD
);
1474 #define GetUrlCacheEntryInfoEx WINELIB_NAME_AW(GetUrlCacheEntryInfoEx)
1476 #define CACHE_ENTRY_ATTRIBUTE_FC 0x00000004
1477 #define CACHE_ENTRY_HITRATE_FC 0x00000010
1478 #define CACHE_ENTRY_MODTIME_FC 0x00000040
1479 #define CACHE_ENTRY_EXPTIME_FC 0x00000080
1480 #define CACHE_ENTRY_ACCTIME_FC 0x00000100
1481 #define CACHE_ENTRY_SYNCTIME_FC 0x00000200
1482 #define CACHE_ENTRY_HEADERINFO_FC 0x00000400
1483 #define CACHE_ENTRY_EXEMPT_DELTA_FC 0x00000800
1486 BOOLAPI
SetUrlCacheEntryInfoA(LPCSTR
,LPINTERNET_CACHE_ENTRY_INFOA
,DWORD
);
1487 BOOLAPI
SetUrlCacheEntryInfoW(LPCWSTR
,LPINTERNET_CACHE_ENTRY_INFOW
,DWORD
);
1488 #define SetUrlCacheEntryInfo WINELIB_NAME_AW(SetUrlCacheEntryInfo)
1490 typedef LONGLONG GROUPID
;
1492 INTERNETAPI GROUPID WINAPI
CreateUrlCacheGroup(DWORD
,LPVOID
);
1493 BOOLAPI
DeleteUrlCacheGroup(GROUPID
,DWORD
,LPVOID
);
1495 INTERNETAPI HANDLE WINAPI
FindFirstUrlCacheGroup(DWORD
,DWORD
,LPVOID
,DWORD
,GROUPID
*,LPVOID
);
1496 BOOLAPI
FindNextUrlCacheGroup(HANDLE
,GROUPID
*,LPVOID
);
1498 BOOLAPI
GetUrlCacheGroupAttributeA(GROUPID
,DWORD
,DWORD
,LPINTERNET_CACHE_GROUP_INFOA
,LPDWORD
,LPVOID
);
1499 BOOLAPI
GetUrlCacheGroupAttributeW(GROUPID
,DWORD
,DWORD
,LPINTERNET_CACHE_GROUP_INFOW
,LPDWORD
,LPVOID
);
1500 #define GetUrlCacheGroupAttribute WINELIB_NAME_AW(GetUrlCacheGroupAttribute)
1502 #define INTERNET_CACHE_GROUP_ADD 0
1503 #define INTERNET_CACHE_GROUP_REMOVE 1
1505 BOOLAPI
SetUrlCacheEntryGroupA(LPCSTR
,DWORD
,GROUPID
,LPBYTE
,DWORD
,LPVOID
);
1506 BOOLAPI
SetUrlCacheEntryGroupW(LPCWSTR
,DWORD
,GROUPID
,LPBYTE
,DWORD
,LPVOID
);
1507 #define SetUrlCacheEntryGroup WINELIB_NAME_AW(SetUrlCacheEntryGroup)
1509 BOOLAPI
SetUrlCacheGroupAttributeA(GROUPID
,DWORD
,DWORD
,LPINTERNET_CACHE_GROUP_INFOA
,LPVOID
);
1510 BOOLAPI
SetUrlCacheGroupAttributeW(GROUPID
,DWORD
,DWORD
,LPINTERNET_CACHE_GROUP_INFOW
,LPVOID
);
1511 #define SetUrlCacheGroupAttribute WINELIB_NAME_AW(SetUrlCacheGroupAttribute)
1513 INTERNETAPI HANDLE WINAPI
FindFirstUrlCacheEntryExA(
1514 LPCSTR
,DWORD
,DWORD
,GROUPID
,LPINTERNET_CACHE_ENTRY_INFOA
,LPDWORD
,LPVOID
,LPDWORD
,LPVOID
);
1515 INTERNETAPI HANDLE WINAPI
FindFirstUrlCacheEntryExW(
1516 LPCWSTR
,DWORD
,DWORD
,GROUPID
,LPINTERNET_CACHE_ENTRY_INFOW
,LPDWORD
,LPVOID
,LPDWORD
,LPVOID
);
1517 #define FindFirstUrlCacheEntryEx WINELIB_NAME_AW(FindFirstUrlCacheEntryEx)
1519 BOOLAPI
FindNextUrlCacheEntryExA(HANDLE
,LPINTERNET_CACHE_ENTRY_INFOA
,LPDWORD
,LPVOID
,LPDWORD
,LPVOID
);
1520 BOOLAPI
FindNextUrlCacheEntryExW(HANDLE
,LPINTERNET_CACHE_ENTRY_INFOW
,LPDWORD
,LPVOID
,LPDWORD
,LPVOID
);
1521 #define FindNextUrlCacheEntryEx WINELIB_NAME_AW(FindNextUrlCacheEntryEx)
1523 INTERNETAPI HANDLE WINAPI
FindFirstUrlCacheEntryA(LPCSTR
,LPINTERNET_CACHE_ENTRY_INFOA
,LPDWORD
);
1524 INTERNETAPI HANDLE WINAPI
FindFirstUrlCacheEntryW(LPCWSTR
,LPINTERNET_CACHE_ENTRY_INFOW
,LPDWORD
);
1525 #define FindFirstUrlCacheEntry WINELIB_NAME_AW(FindFirstUrlCacheEntry)
1527 BOOLAPI
FindNextUrlCacheEntryA(HANDLE
,LPINTERNET_CACHE_ENTRY_INFOA
,LPDWORD
);
1528 BOOLAPI
FindNextUrlCacheEntryW(HANDLE
,LPINTERNET_CACHE_ENTRY_INFOW
,LPDWORD
);
1529 #define FindNextUrlCacheEntry WINELIB_NAME_AW(FindNextUrlCacheEntry)
1531 BOOLAPI
FindCloseUrlCache(HANDLE
);
1533 BOOLAPI
DeleteUrlCacheEntryA(LPCSTR
);
1534 BOOLAPI
DeleteUrlCacheEntryW(LPCWSTR
);
1535 #define DeleteUrlCacheEntry WINELIB_NAME_AW(DeleteUrlCacheEntry)
1537 INTERNETAPI DWORD WINAPI
InternetDialA(HWND
,LPSTR
,DWORD
,LPDWORD
,DWORD
);
1538 INTERNETAPI DWORD WINAPI
InternetDialW(HWND
,LPWSTR
,DWORD
,LPDWORD
,DWORD
);
1539 #define InternetDial WINELIB_NAME_AW(InternetDial)
1542 #define INTERNET_DIAL_UNATTENDED 0x8000
1544 INTERNETAPI DWORD WINAPI
InternetHangUp(DWORD
,DWORD
);
1545 BOOLAPI
CreateMD5SSOHash(PWSTR
,PWSTR
,PWSTR
,PBYTE
);
1547 #define INTERENT_GOONLINE_REFRESH 0x00000001
1548 #define INTERENT_GOONLINE_MASK 0x00000001
1549 INTERNETAPI BOOL WINAPI
InternetGoOnlineA(LPSTR
,HWND
,DWORD
);
1550 INTERNETAPI BOOL WINAPI
InternetGoOnlineW(LPWSTR
,HWND
,DWORD
);
1551 #define InternetGoOnline WINELIB_NAME_AW(InternetGoOnline)
1552 INTERNETAPI BOOL WINAPI
InternetAutodial(DWORD
,HWND
);
1554 #define INTERNET_AUTODIAL_FORCE_ONLINE 1
1555 #define INTERNET_AUTODIAL_FORCE_UNATTENDED 2
1556 #define INTERNET_AUTODIAL_FAILIFSECURITYCHECK 4
1558 #define INTERNET_AUTODIAL_FLAGS_MASK (INTERNET_AUTODIAL_FORCE_ONLINE | INTERNET_AUTODIAL_FORCE_UNATTENDED | INTERNET_AUTODIAL_FAILIFSECURITYCHECK)
1559 INTERNETAPI BOOL WINAPI
InternetAutodialHangup(DWORD
);
1560 INTERNETAPI BOOL WINAPI
InternetGetConnectedState(LPDWORD
,DWORD
);
1562 #define INTERNET_CONNECTION_MODEM 1
1563 #define INTERNET_CONNECTION_LAN 2
1564 #define INTERNET_CONNECTION_PROXY 4
1565 #define INTERNET_CONNECTION_MODEM_BUSY 8
1567 typedef DWORD (CALLBACK
*PFN_DIAL_HANDLER
) (HWND
,LPCSTR
,DWORD
,LPDWORD
);
1569 #define INTERNET_CUSTOMDIAL_CONNECT 0
1570 #define INTERNET_CUSTOMDIAL_UNATTENDED 1
1571 #define INTERNET_CUSTOMDIAL_DISCONNECT 2
1572 #define INTERNET_CUSTOMDIAL_SHOWOFFLINE 4
1573 #define INTERNET_CUSTOMDIAL_SAFE_FOR_UNATTENDED 1
1574 #define INTERNET_CUSTOMDIAL_WILL_SUPPLY_STATE 2
1575 #define INTERNET_CUSTOMDIAL_CAN_HANGUP 4
1577 INTERNETAPI BOOL WINAPI
InternetSetDialStateA(LPCSTR
,DWORD
,DWORD
);
1578 INTERNETAPI BOOL WINAPI
InternetSetDialStateW(LPCWSTR
,DWORD
,DWORD
);
1579 #define InternetSetDialState WINELIB_NAME_AW(InternetSetDialState)
1580 #define INTERNET_DIALSTATE_DISCONNECTED 1
1582 BOOL WINAPI
InternetGetConnectedStateExA(LPDWORD
, LPSTR
, DWORD
, DWORD
);
1583 BOOL WINAPI
InternetGetConnectedStateExW(LPDWORD
, LPWSTR
, DWORD
, DWORD
);
1584 #define InternetGetConnectedStateEx WINELIB_NAME_AW(InternetGetConnectedStateEx)
1586 BOOL WINAPI
InternetInitializeAutoProxyDll(DWORD
);
1587 BOOL WINAPI
DetectAutoProxyUrl(LPSTR
, DWORD
, DWORD
);