VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/wininet.h@ 20636

Last change on this file since 20636 was 20612, checked in by vboxsync, 16 years ago

crOpenGL: update wine to 1.1.23

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

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette