1 #ifndef _WINE_WININET_H_
2 #define _WINE_WININET_H_
4 #if defined(__cplusplus)
9 #define BOOLAPI INTERNETAPI BOOL WINAPI
11 typedef LPVOID HINTERNET;
12 typedef HINTERNET * LPHINTERNET;
14 typedef WORD INTERNET_PORT;
15 typedef INTERNET_PORT * LPINTERNET_PORT;
18 #define INTERNET_INVALID_PORT_NUMBER 0
20 #define INTERNET_DEFAULT_FTP_PORT 21
21 #define INTERNET_DEFAULT_GOPHER_PORT 70
22 #define INTERNET_DEFAULT_HTTP_PORT 80
23 #define INTERNET_DEFAULT_HTTPS_PORT 443
24 #define INTERNET_DEFAULT_SOCKS_PORT 1080
26 #define INTERNET_MAX_HOST_NAME_LENGTH 256
27 #define INTERNET_MAX_USER_NAME_LENGTH 128
28 #define INTERNET_MAX_PASSWORD_LENGTH 128
29 #define INTERNET_MAX_PORT_NUMBER_LENGTH 5
30 #define INTERNET_MAX_PORT_NUMBER_VALUE 65535
31 #define INTERNET_MAX_PATH_LENGTH 2048
32 #define INTERNET_MAX_SCHEME_LENGTH 32
33 #define INTERNET_MAX_URL_LENGTH (INTERNET_MAX_SCHEME_LENGTH + sizeof("://")+ INTERNET_MAX_PATH_LENGTH)
34 #define INTERNET_KEEP_ALIVE_UNKNOWN ((DWORD)-1)
35 #define INTERNET_KEEP_ALIVE_ENABLED 1
36 #define INTERNET_KEEP_ALIVE_DISABLED 0
37 #define INTERNET_REQFLAG_FROM_CACHE 0x00000001
38 #define INTERNET_REQFLAG_ASYNC 0x00000002
39 #define INTERNET_REQFLAG_VIA_PROXY 0x00000004
40 #define INTERNET_REQFLAG_NO_HEADERS 0x00000008
41 #define INTERNET_REQFLAG_PASSIVE 0x00000010
42 #define INTERNET_REQFLAG_CACHE_WRITE_DISABLED 0x00000040
43 #define INTERNET_FLAG_RELOAD 0x80000000
44 #define INTERNET_FLAG_RAW_DATA 0x40000000
45 #define INTERNET_FLAG_EXISTING_CONNECT 0x20000000
46 #define INTERNET_FLAG_ASYNC 0x10000000
47 #define INTERNET_FLAG_PASSIVE 0x08000000
48 #define INTERNET_FLAG_NO_CACHE_WRITE 0x04000000
49 #define INTERNET_FLAG_DONT_CACHE INTERNET_FLAG_NO_CACHE_WRITE
50 #define INTERNET_FLAG_MAKE_PERSISTENT 0x02000000
51 #define INTERNET_FLAG_FROM_CACHE 0x01000000
52 #define INTERNET_FLAG_OFFLINE INTERNET_FLAG_FROM_CACHE
53 #define INTERNET_FLAG_SECURE 0x00800000
54 #define INTERNET_FLAG_KEEP_CONNECTION 0x00400000
55 #define INTERNET_FLAG_NO_AUTO_REDIRECT 0x00200000
56 #define INTERNET_FLAG_READ_PREFETCH 0x00100000
57 #define INTERNET_FLAG_NO_COOKIES 0x00080000
58 #define INTERNET_FLAG_NO_AUTH 0x00040000
59 #define INTERNET_FLAG_CACHE_IF_NET_FAIL 0x00010000
60 #define INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTP 0x00008000
61 #define INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTPS 0x00004000
62 #define INTERNET_FLAG_IGNORE_CERT_DATE_INVALID 0x00002000
63 #define INTERNET_FLAG_IGNORE_CERT_CN_INVALID 0x00001000
64 #define INTERNET_FLAG_RESYNCHRONIZE 0x00000800
65 #define INTERNET_FLAG_HYPERLINK 0x00000400
66 #define INTERNET_FLAG_NO_UI 0x00000200
67 #define INTERNET_FLAG_PRAGMA_NOCACHE 0x00000100
68 #define INTERNET_FLAG_CACHE_ASYNC 0x00000080
69 #define INTERNET_FLAG_FORMS_SUBMIT 0x00000040
70 #define INTERNET_FLAG_NEED_FILE 0x00000010
71 #define INTERNET_FLAG_MUST_CACHE_REQUEST INTERNET_FLAG_NEED_FILE
72 #define INTERNET_FLAG_TRANSFER_ASCII FTP_TRANSFER_TYPE_ASCII
73 #define INTERNET_FLAG_TRANSFER_BINARY FTP_TRANSFER_TYPE_BINARY
74 #define SECURITY_INTERNET_MASK (INTERNET_FLAG_IGNORE_CERT_CN_INVALID|\
75 INTERNET_FLAG_IGNORE_CERT_DATE_INVALID|\
76 INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTPS|\
77 INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTP)
79 #define INTERNET_FLAGS_MASK (INTERNET_FLAG_RELOAD \
80 | INTERNET_FLAG_RAW_DATA \
81 | INTERNET_FLAG_EXISTING_CONNECT \
82 | INTERNET_FLAG_ASYNC \
83 | INTERNET_FLAG_PASSIVE \
84 | INTERNET_FLAG_NO_CACHE_WRITE \
85 | INTERNET_FLAG_MAKE_PERSISTENT \
86 | INTERNET_FLAG_FROM_CACHE \
87 | INTERNET_FLAG_SECURE \
88 | INTERNET_FLAG_KEEP_CONNECTION \
89 | INTERNET_FLAG_NO_AUTO_REDIRECT \
90 | INTERNET_FLAG_READ_PREFETCH \
91 | INTERNET_FLAG_NO_COOKIES \
92 | INTERNET_FLAG_NO_AUTH \
93 | INTERNET_FLAG_CACHE_IF_NET_FAIL \
94 | SECURITY_INTERNET_MASK \
95 | INTERNET_FLAG_RESYNCHRONIZE \
96 | INTERNET_FLAG_HYPERLINK \
97 | INTERNET_FLAG_NO_UI \
98 | INTERNET_FLAG_PRAGMA_NOCACHE \
99 | INTERNET_FLAG_CACHE_ASYNC \
100 | INTERNET_FLAG_FORMS_SUBMIT \
101 | INTERNET_FLAG_NEED_FILE \
102 | INTERNET_FLAG_TRANSFER_BINARY \
103 | INTERNET_FLAG_TRANSFER_ASCII \
106 #define INTERNET_ERROR_MASK_INSERT_CDROM 0x1
108 #define INTERNET_OPTIONS_MASK (~INTERNET_FLAGS_MASK)
109 #define WININET_API_FLAG_ASYNC 0x00000001
110 #define WININET_API_FLAG_SYNC 0x00000004
111 #define WININET_API_FLAG_USE_CONTEXT 0x00000008
112 #define INTERNET_NO_CALLBACK 0
115 INTERNET_SCHEME_PARTIAL = -2,
116 INTERNET_SCHEME_UNKNOWN = -1,
117 INTERNET_SCHEME_DEFAULT = 0,
119 INTERNET_SCHEME_GOPHER,
120 INTERNET_SCHEME_HTTP,
121 INTERNET_SCHEME_HTTPS,
122 INTERNET_SCHEME_FILE,
123 INTERNET_SCHEME_NEWS,
124 INTERNET_SCHEME_MAILTO,
125 INTERNET_SCHEME_SOCKS,
126 INTERNET_SCHEME_FIRST = INTERNET_SCHEME_FTP,
127 INTERNET_SCHEME_LAST = INTERNET_SCHEME_SOCKS
128 } INTERNET_SCHEME,* LPINTERNET_SCHEME;
133 } INTERNET_ASYNC_RESULT,* LPINTERNET_ASYNC_RESULT;
138 LPCSTR lpszProxyBypass;
139 } INTERNET_PROXY_INFOA,* LPINTERNET_PROXY_INFOA;
144 LPCWSTR lpszProxyBypass;
145 } INTERNET_PROXY_INFOW,* LPINTERNET_PROXY_INFOW;
148 DECL_WINELIB_TYPE_AW(INTERNET_PROXY_INFO)
149 DECL_WINELIB_TYPE_AW(LPINTERNET_PROXY_INFO)
152 DWORD dwMajorVersion;
153 DWORD dwMinorVersion;
154 } INTERNET_VERSION_INFO,* LPINTERNET_VERSION_INFO;
157 DWORD dwMajorVersion;
158 DWORD dwMinorVersion;
159 } HTTP_VERSION_INFO,* LPHTTP_VERSION_INFO;
162 DWORD dwConnectedState;
164 } INTERNET_CONNECTED_INFO,* LPINTERNET_CONNECTED_INFO;
166 #define ISO_FORCE_DISCONNECTED 0x00000001
171 DWORD dwSchemeLength;
172 INTERNET_SCHEME nScheme;
174 DWORD dwHostNameLength;
177 DWORD dwUserNameLength;
179 DWORD dwPasswordLength;
181 DWORD dwUrlPathLength;
183 DWORD dwExtraInfoLength;
184 } URL_COMPONENTSA,* LPURL_COMPONENTSA;
189 DWORD dwSchemeLength;
190 INTERNET_SCHEME nScheme;
192 DWORD dwHostNameLength;
195 DWORD dwUserNameLength;
197 DWORD dwPasswordLength;
199 DWORD dwUrlPathLength;
200 LPWSTR lpszExtraInfo;
201 DWORD dwExtraInfoLength;
202 } URL_COMPONENTSW,* LPURL_COMPONENTSW;
204 DECL_WINELIB_TYPE_AW(URL_COMPONENTS)
205 DECL_WINELIB_TYPE_AW(LPURL_COMPONENTS)
210 LPSTR lpszSubjectInfo;
211 LPSTR lpszIssuerInfo;
212 LPSTR lpszProtocolName;
213 LPSTR lpszSignatureAlgName;
214 LPSTR lpszEncryptionAlgName;
217 } INTERNET_CERTIFICATE_INFOA,* LPINTERNET_CERTIFICATE_INFOA;
222 LPWSTR lpszSubjectInfo;
223 LPWSTR lpszIssuerInfo;
224 LPWSTR lpszProtocolName;
225 LPWSTR lpszSignatureAlgName;
226 LPWSTR lpszEncryptionAlgName;
229 } INTERNET_CERTIFICATE_INFOW,* LPINTERNET_CERTIFICATE_INFOW;
231 DECL_WINELIB_TYPE_AW(INTERNET_CERTIFICATE_INFO)
232 DECL_WINELIB_TYPE_AW(LPINTERNET_CERTIFICATE_INFO)
234 typedef struct _INTERNET_BUFFERSA {
236 struct _INTERNET_BUFFERSA * Next;
238 DWORD dwHeadersLength;
239 DWORD dwHeadersTotal;
241 DWORD dwBufferLength;
245 } INTERNET_BUFFERSA,* LPINTERNET_BUFFERSA;
247 typedef struct _INTERNET_BUFFERSW {
249 struct _INTERNET_BUFFERSW * Next;
251 DWORD dwHeadersLength;
252 DWORD dwHeadersTotal;
254 DWORD dwBufferLength;
258 } INTERNET_BUFFERSW,* LPINTERNET_BUFFERSW;
260 DECL_WINELIB_TYPE_AW(INTERNET_BUFFERS)
261 DECL_WINELIB_TYPE_AW(LPINTERNET_BUFFERS)
263 BOOLAPI InternetTimeFromSystemTimeA(CONST SYSTEMTIME *,DWORD ,LPSTR ,DWORD);
264 BOOLAPI InternetTimeFromSystemTimeW(CONST SYSTEMTIME *,DWORD ,LPWSTR ,DWORD);
265 #define InternetTimeFromSystemTime WINELIB_NAME_AW(InternetTimeFromSystemTime)
267 #define INTERNET_RFC1123_BUFSIZE 30
269 BOOLAPI InternetTimeToSystemTimeA(LPCSTR ,SYSTEMTIME *,DWORD);
270 BOOLAPI InternetTimeToSystemTimeW(LPCWSTR ,SYSTEMTIME *,DWORD);
271 #define InternetTimeToSystemTime WINELIB_NAME_AW(InternetTimeToSystemTime)
273 BOOLAPI InternetCrackUrlA(LPCSTR ,DWORD ,DWORD ,LPURL_COMPONENTSA);
274 BOOLAPI InternetCrackUrlW(LPCWSTR ,DWORD ,DWORD ,LPURL_COMPONENTSW);
275 #define InternetCrackUrl WINELIB_NAME_AW(InternetCrackUrl)
277 BOOLAPI InternetCreateUrlA(LPURL_COMPONENTSA ,DWORD ,LPSTR ,LPDWORD);
278 BOOLAPI InternetCreateUrlW(LPURL_COMPONENTSW ,DWORD ,LPWSTR ,LPDWORD);
279 #define InternetCreateUrl WINELIB_NAME_AW(InternetCreateUrl)
281 BOOLAPI InternetCanonicalizeUrlA(LPCSTR ,LPSTR ,LPDWORD ,DWORD);
282 BOOLAPI InternetCanonicalizeUrlW(LPCWSTR ,LPWSTR ,LPDWORD ,DWORD);
283 #define InternetCanonicalizeUrl WINELIB_NAME_AW(InternetCanonicalizeUrl)
285 BOOLAPI InternetCombineUrlA(LPCSTR ,LPCSTR ,LPSTR ,LPDWORD ,DWORD);
286 BOOLAPI InternetCombineUrlW(LPCWSTR ,LPCWSTR ,LPWSTR ,LPDWORD ,DWORD);
287 #define InternetCombineUrl WINELIB_NAME_AW(InternetCombineUrl)
289 #define ICU_ESCAPE 0x80000000
290 #define ICU_USERNAME 0x40000000
291 #define ICU_NO_ENCODE 0x20000000
292 #define ICU_DECODE 0x10000000
293 #define ICU_NO_META 0x08000000
294 #define ICU_ENCODE_SPACES_ONLY 0x04000000
295 #define ICU_BROWSER_MODE 0x02000000
297 INTERNETAPI HINTERNET WINAPI InternetOpenA(LPCSTR ,DWORD ,LPCSTR lpszProxy ,LPCSTR lpszProxyBypass ,DWORD);
298 INTERNETAPI HINTERNET WINAPI InternetOpenW(LPCWSTR ,DWORD ,LPCWSTR lpszProxy ,LPCWSTR lpszProxyBypass ,DWORD);
299 #define InternetOpen WINELIB_NAME_AW(InternetOpen);
301 #define INTERNET_OPEN_TYPE_PRECONFIG 0
302 #define INTERNET_OPEN_TYPE_DIRECT 1
303 #define INTERNET_OPEN_TYPE_PROXY 3
304 #define INTERNET_OPEN_TYPE_PRECONFIG_WITH_NO_AUTOPROXY 4
305 #define PRE_CONFIG_INTERNET_ACCESS INTERNET_OPEN_TYPE_PRECONFIG
306 #define LOCAL_INTERNET_ACCESS INTERNET_OPEN_TYPE_DIRECT
307 #define CERN_PROXY_INTERNET_ACCESS INTERNET_OPEN_TYPE_PROXY
309 BOOLAPI InternetCloseHandle(HINTERNET);
311 INTERNETAPI HINTERNET WINAPI InternetConnectA(HINTERNET ,LPCSTR ,INTERNET_PORT ,
312 LPCSTR lpszUserName ,LPCSTR lpszPassword ,DWORD ,DWORD ,DWORD );
313 INTERNETAPI HINTERNET WINAPI InternetConnectW(HINTERNET ,LPCWSTR ,INTERNET_PORT ,
314 LPCWSTR lpszUserName ,LPCWSTR lpszPassword ,DWORD ,DWORD ,DWORD );
315 #define InternetConnect WINELIB_NAME_AW(InternetConnect);
317 #define INTERNET_SERVICE_URL 0
318 #define INTERNET_SERVICE_FTP 1
319 #define INTERNET_SERVICE_GOPHER 2
320 #define INTERNET_SERVICE_HTTP 3
322 #define InternetConnectUrl(hInternet,lpszUrl,dwFlags,dwContext) \
323 InternetConnect(hInternet,\
325 INTERNET_INVALID_PORT_NUMBER,\
328 INTERNET_SERVICE_URL,\
333 INTERNETAPI HINTERNET WINAPI InternetOpenUrlA(HINTERNET ,LPCSTR ,LPCSTR lpszHeaders ,DWORD ,DWORD ,DWORD);
334 INTERNETAPI HINTERNET WINAPI InternetOpenUrlW(HINTERNET ,LPCWSTR ,LPCWSTR lpszHeaders ,DWORD ,DWORD ,DWORD);
335 #define InternetOpenUrl WINELIB_NAME_AW(InternetOpenUrl);
337 BOOLAPI InternetReadFile( HINTERNET ,LPVOID ,DWORD ,LPDWORD );
338 INTERNETAPI BOOL WINAPI InternetReadFileExA( HINTERNET ,LPINTERNET_BUFFERSA ,DWORD ,DWORD );
339 INTERNETAPI BOOL WINAPI InternetReadFileExW( HINTERNET ,LPINTERNET_BUFFERSW ,DWORD ,DWORD );
340 #define InternetReadFileEx WINELIB_NAME_AW(InternetReadFileEx);
342 #define IRF_ASYNC WININET_API_FLAG_ASYNC
343 #define IRF_SYNC WININET_API_FLAG_SYNC
344 #define IRF_USE_CONTEXT WININET_API_FLAG_USE_CONTEXT
345 #define IRF_NO_WAIT 0x00000008
347 INTERNETAPI DWORD WINAPI InternetSetFilePointer(HINTERNET ,LONG ,PVOID ,DWORD ,DWORD);
348 BOOLAPI InternetWriteFile(HINTERNET ,LPCVOID ,DWORD ,LPDWORD);
349 BOOLAPI InternetQueryDataAvailable(HINTERNET ,LPDWORD lpdwNumberOfBytesAvailable ,DWORD ,DWORD);
350 BOOLAPI InternetFindNextFileA(HINTERNET ,LPVOID);
351 BOOLAPI InternetFindNextFileW(HINTERNET ,LPVOID);
352 #define InternetFindNextFile WINELIB_NAME_AW*(InternetFindNextFile);
354 BOOLAPI InternetQueryOptionA(HINTERNET hInternet ,DWORD ,LPVOID lpBuffer ,LPDWORD);
355 BOOLAPI InternetQueryOptionW(HINTERNET hInternet ,DWORD ,LPVOID lpBuffer ,LPDWORD);
356 #define InternetQueryOption WINELIB_NAME_AW(InternetQueryOption);
358 BOOLAPI InternetSetOptionA(HINTERNET hInternet ,DWORD ,LPVOID ,DWORD);
359 BOOLAPI InternetSetOptionW(HINTERNET hInternet ,DWORD ,LPVOID ,DWORD);
360 #define InternetSetOption WINELIB_NAME_AW(InternetSetOption);
362 BOOLAPI InternetSetOptionExA(HINTERNET hInternet ,DWORD ,LPVOID ,DWORD ,DWORD);
363 BOOLAPI InternetSetOptionExW(HINTERNET hInternet ,DWORD ,LPVOID ,DWORD ,DWORD);
364 #define InternetSetOptionEx WINELIB_NAME_AW(InternetSetOptionEx);
366 BOOLAPI InternetLockRequestFile(HINTERNET ,HANDLE *);
367 BOOLAPI InternetUnlockRequestFile(HANDLE);
369 #define ISO_GLOBAL 0x00000001
370 #define ISO_REGISTRY 0x00000002
372 #define ISO_VALID_FLAGS (ISO_GLOBAL | ISO_REGISTRY)
373 #define INTERNET_OPTION_CALLBACK 1
374 #define INTERNET_OPTION_CONNECT_TIMEOUT 2
375 #define INTERNET_OPTION_CONNECT_RETRIES 3
376 #define INTERNET_OPTION_CONNECT_BACKOFF 4
377 #define INTERNET_OPTION_SEND_TIMEOUT 5
378 #define INTERNET_OPTION_CONTROL_SEND_TIMEOUT INTERNET_OPTION_SEND_TIMEOUT
379 #define INTERNET_OPTION_RECEIVE_TIMEOUT 6
380 #define INTERNET_OPTION_CONTROL_RECEIVE_TIMEOUT INTERNET_OPTION_RECEIVE_TIMEOUT
381 #define INTERNET_OPTION_DATA_SEND_TIMEOUT 7
382 #define INTERNET_OPTION_DATA_RECEIVE_TIMEOUT 8
383 #define INTERNET_OPTION_HANDLE_TYPE 9
384 #define INTERNET_OPTION_LISTEN_TIMEOUT 11
385 #define INTERNET_OPTION_READ_BUFFER_SIZE 12
386 #define INTERNET_OPTION_WRITE_BUFFER_SIZE 13
387 #define INTERNET_OPTION_ASYNC_ID 15
388 #define INTERNET_OPTION_ASYNC_PRIORITY 16
389 #define INTERNET_OPTION_PARENT_HANDLE 21
390 #define INTERNET_OPTION_KEEP_CONNECTION 22
391 #define INTERNET_OPTION_REQUEST_FLAGS 23
392 #define INTERNET_OPTION_EXTENDED_ERROR 24
393 #define INTERNET_OPTION_OFFLINE_MODE 26
394 #define INTERNET_OPTION_CACHE_STREAM_HANDLE 27
395 #define INTERNET_OPTION_USERNAME 28
396 #define INTERNET_OPTION_PASSWORD 29
397 #define INTERNET_OPTION_ASYNC 30
398 #define INTERNET_OPTION_SECURITY_FLAGS 31
399 #define INTERNET_OPTION_SECURITY_CERTIFICATE_STRUCT 32
400 #define INTERNET_OPTION_DATAFILE_NAME 33
401 #define INTERNET_OPTION_URL 34
402 #define INTERNET_OPTION_SECURITY_CERTIFICATE 35
403 #define INTERNET_OPTION_SECURITY_KEY_BITNESS 36
404 #define INTERNET_OPTION_REFRESH 37
405 #define INTERNET_OPTION_PROXY 38
406 #define INTERNET_OPTION_SETTINGS_CHANGED 39
407 #define INTERNET_OPTION_VERSION 40
408 #define INTERNET_OPTION_USER_AGENT 41
409 #define INTERNET_OPTION_END_BROWSER_SESSION 42
410 #define INTERNET_OPTION_PROXY_USERNAME 43
411 #define INTERNET_OPTION_PROXY_PASSWORD 44
412 #define INTERNET_OPTION_CONTEXT_VALUE 45
413 #define INTERNET_OPTION_CONNECT_LIMIT 46
414 #define INTERNET_OPTION_SECURITY_SELECT_CLIENT_CERT 47
415 #define INTERNET_OPTION_POLICY 48
416 #define INTERNET_OPTION_DISCONNECTED_TIMEOUT 49
417 #define INTERNET_OPTION_CONNECTED_STATE 50
418 #define INTERNET_OPTION_IDLE_STATE 51
419 #define INTERNET_OPTION_OFFLINE_SEMANTICS 52
420 #define INTERNET_OPTION_SECONDARY_CACHE_KEY 53
421 #define INTERNET_OPTION_CALLBACK_FILTER 54
422 #define INTERNET_OPTION_CONNECT_TIME 55
423 #define INTERNET_OPTION_SEND_THROUGHPUT 56
424 #define INTERNET_OPTION_RECEIVE_THROUGHPUT 57
425 #define INTERNET_OPTION_REQUEST_PRIORITY 58
426 #define INTERNET_OPTION_HTTP_VERSION 59
427 #define INTERNET_OPTION_RESET_URLCACHE_SESSION 60
428 #define INTERNET_OPTION_ERROR_MASK 62
429 #define INTERNET_FIRST_OPTION INTERNET_OPTION_CALLBACK
430 #define INTERNET_LAST_OPTION INTERNET_OPTION_ERROR_MASK
431 #define INTERNET_PRIORITY_FOREGROUND 1000
432 #define INTERNET_HANDLE_TYPE_INTERNET 1
433 #define INTERNET_HANDLE_TYPE_CONNECT_FTP 2
434 #define INTERNET_HANDLE_TYPE_CONNECT_GOPHER 3
435 #define INTERNET_HANDLE_TYPE_CONNECT_HTTP 4
436 #define INTERNET_HANDLE_TYPE_FTP_FIND 5
437 #define INTERNET_HANDLE_TYPE_FTP_FIND_HTML 6
438 #define INTERNET_HANDLE_TYPE_FTP_FILE 7
439 #define INTERNET_HANDLE_TYPE_FTP_FILE_HTML 8
440 #define INTERNET_HANDLE_TYPE_GOPHER_FIND 9
441 #define INTERNET_HANDLE_TYPE_GOPHER_FIND_HTML 10
442 #define INTERNET_HANDLE_TYPE_GOPHER_FILE 11
443 #define INTERNET_HANDLE_TYPE_GOPHER_FILE_HTML 12
444 #define INTERNET_HANDLE_TYPE_HTTP_REQUEST 13
445 #define SECURITY_FLAG_SECURE 0x00000001
446 #define SECURITY_FLAG_STRENGTH_WEAK 0x10000000
447 #define SECURITY_FLAG_STRENGTH_MEDIUM 0x40000000
448 #define SECURITY_FLAG_STRENGTH_STRONG 0x20000000
449 #define SECURITY_FLAG_UNKNOWNBIT 0x80000000
450 #define SECURITY_FLAG_NORMALBITNESS SECURITY_FLAG_STRENGTH_WEAK
451 #define SECURITY_FLAG_SSL 0x00000002
452 #define SECURITY_FLAG_SSL3 0x00000004
453 #define SECURITY_FLAG_PCT 0x00000008
454 #define SECURITY_FLAG_PCT4 0x00000010
455 #define SECURITY_FLAG_IETFSSL4 0x00000020
456 #define SECURITY_FLAG_40BIT SECURITY_FLAG_STRENGTH_WEAK
457 #define SECURITY_FLAG_128BIT SECURITY_FLAG_STRENGTH_STRONG
458 #define SECURITY_FLAG_56BIT SECURITY_FLAG_STRENGTH_MEDIUM
459 #define SECURITY_FLAG_IGNORE_REVOCATION 0x00000080
460 #define SECURITY_FLAG_IGNORE_UNKNOWN_CA 0x00000100
461 #define SECURITY_FLAG_IGNORE_WRONG_USAGE 0x00000200
462 #define SECURITY_FLAG_IGNORE_CERT_CN_INVALID INTERNET_FLAG_IGNORE_CERT_CN_INVALID
463 #define SECURITY_FLAG_IGNORE_CERT_DATE_INVALID INTERNET_FLAG_IGNORE_CERT_DATE_INVALID
464 #define SECURITY_FLAG_IGNORE_REDIRECT_TO_HTTPS INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTPS
465 #define SECURITY_FLAG_IGNORE_REDIRECT_TO_HTTP INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTP
466 #define SECURITY_SET_MASK (SECURITY_FLAG_IGNORE_REVOCATION |\
467 SECURITY_FLAG_IGNORE_UNKNOWN_CA |\
468 SECURITY_FLAG_IGNORE_CERT_CN_INVALID |\
469 SECURITY_FLAG_IGNORE_CERT_DATE_INVALID |\
470 SECURITY_FLAG_IGNORE_WRONG_USAGE)
474 BOOLAPI InternetGetLastResponseInfoA(LPDWORD ,LPSTR lpszBuffer ,LPDWORD);
475 BOOLAPI InternetGetLastResponseInfoW(LPDWORD ,LPWSTR lpszBuffer ,LPDWORD);
476 #define InternetGetLastResponseInfo WINELIB_NAME_AW(InternetGetLastResponseInfo);
478 typedef VOID CALLBACK (*INTERNET_STATUS_CALLBACK)(HINTERNET ,DWORD ,DWORD ,
479 LPVOID lpvStatusInformation ,DWORD);
481 typedef INTERNET_STATUS_CALLBACK * LPINTERNET_STATUS_CALLBACK;
483 INTERNETAPI INTERNET_STATUS_CALLBACK WINAPI InternetSetStatusCallback(HINTERNET ,INTERNET_STATUS_CALLBACK);
485 #define INTERNET_STATUS_RESOLVING_NAME 10
486 #define INTERNET_STATUS_NAME_RESOLVED 11
487 #define INTERNET_STATUS_CONNECTING_TO_SERVER 20
488 #define INTERNET_STATUS_CONNECTED_TO_SERVER 21
489 #define INTERNET_STATUS_SENDING_REQUEST 30
490 #define INTERNET_STATUS_REQUEST_SENT 31
491 #define INTERNET_STATUS_RECEIVING_RESPONSE 40
492 #define INTERNET_STATUS_RESPONSE_RECEIVED 41
493 #define INTERNET_STATUS_CTL_RESPONSE_RECEIVED 42
494 #define INTERNET_STATUS_PREFETCH 43
495 #define INTERNET_STATUS_CLOSING_CONNECTION 50
496 #define INTERNET_STATUS_CONNECTION_CLOSED 51
497 #define INTERNET_STATUS_HANDLE_CREATED 60
498 #define INTERNET_STATUS_HANDLE_CLOSING 70
499 #define INTERNET_STATUS_REQUEST_COMPLETE 100
500 #define INTERNET_STATUS_REDIRECT 110
501 #define INTERNET_STATUS_INTERMEDIATE_RESPONSE 120
502 #define INTERNET_STATUS_STATE_CHANGE 200
503 #define INTERNET_STATE_CONNECTED 0x00000001
504 #define INTERNET_STATE_DISCONNECTED 0x00000002
505 #define INTERNET_STATE_DISCONNECTED_BY_USER 0x00000010
506 #define INTERNET_STATE_IDLE 0x00000100
507 #define INTERNET_STATE_BUSY 0x00000200
509 #define INTERNET_INVALID_STATUS_CALLBACK ((INTERNET_STATUS_CALLBACK)(-1L))
511 #define FTP_TRANSFER_TYPE_UNKNOWN 0x00000000
512 #define FTP_TRANSFER_TYPE_ASCII 0x00000001
513 #define FTP_TRANSFER_TYPE_BINARY 0x00000002
514 #define FTP_TRANSFER_TYPE_MASK (FTP_TRANSFER_TYPE_ASCII | FTP_TRANSFER_TYPE_BINARY)
517 INTERNETAPI HINTERNET WINAPI FtpFindFirstFileA(HINTERNET ,LPCSTR lpszSearchFile ,
518 LPWIN32_FIND_DATAA lpFindFileData ,DWORD ,DWORD);
519 INTERNETAPI HINTERNET WINAPI FtpFindFirstFileW(HINTERNET ,LPCWSTR lpszSearchFile ,
520 LPWIN32_FIND_DATAW lpFindFileData ,DWORD ,DWORD);
521 #define FtpFindFirstFile WINELIB_NAME_AW(FtpFindFirstFile);
523 BOOLAPI FtpGetFileA(HINTERNET ,LPCSTR ,LPCSTR ,BOOL ,DWORD ,DWORD ,DWORD);
524 BOOLAPI FtpGetFileW(HINTERNET ,LPCWSTR ,LPCWSTR ,BOOL ,DWORD ,DWORD ,DWORD);
525 #define FtpGetFile WINELIB_NAME_AW(FtpGetFileW);
527 BOOLAPI FtpPutFileA(HINTERNET ,LPCSTR ,LPCSTR ,DWORD ,DWORD);
528 BOOLAPI FtpPutFileW(HINTERNET ,LPCWSTR ,LPCWSTR ,DWORD ,DWORD);
529 #define FtpPutFile WINELIB_NAME_AW(FtpPutFile);
531 BOOLAPI FtpDeleteFileA(HINTERNET ,LPCSTR);
532 BOOLAPI FtpDeleteFileW(HINTERNET ,LPCWSTR);
533 #define FtpDeleteFile WINELIB_NAME_AW(FtpDeleteFile);
535 BOOLAPI FtpRenameFileA(HINTERNET ,LPCSTR ,LPCSTR);
536 BOOLAPI FtpRenameFileW(HINTERNET ,LPCWSTR ,LPCWSTR);
537 #define FtpRenameFile WINELIB_NAME_AW(FtpRenameFile);
539 INTERNETAPI HINTERNET WINAPI FtpOpenFileA(HINTERNET ,LPCSTR ,DWORD ,DWORD ,DWORD);
540 INTERNETAPI HINTERNET WINAPI FtpOpenFileW(HINTERNET ,LPCWSTR ,DWORD ,DWORD ,DWORD);
541 #define FtpOpenFile WINELIB_NAME_AW(FtpOpenFile);
543 BOOLAPI FtpCreateDirectoryA(HINTERNET ,LPCSTR);
544 BOOLAPI FtpCreateDirectoryW(HINTERNET ,LPCWSTR);
545 #define FtpCreateDirectory WINELIB_NAME_AW(FtpCreateDirectory);
547 BOOLAPI FtpRemoveDirectoryA(HINTERNET ,LPCSTR);
548 BOOLAPI FtpRemoveDirectoryW(HINTERNET ,LPCWSTR);
549 #define FtpRemoveDirectory WINELIB_NAME_AW(FtpRemoveDirectory);
551 BOOLAPI FtpSetCurrentDirectoryA(HINTERNET ,LPCSTR);
552 BOOLAPI FtpSetCurrentDirectoryW(HINTERNET ,LPCWSTR);
553 #define FtpSetCurrentDirectory WINELIB_NAME_AW(FtpSetCurrentDirectory);
555 BOOLAPI FtpGetCurrentDirectoryA(HINTERNET ,LPSTR ,LPDWORD);
556 BOOLAPI FtpGetCurrentDirectoryW(HINTERNET ,LPWSTR ,LPDWORD);
557 #define FtpGetCurrentDirectory WINELIB_NAME_AW(FtpGetCurrentDirectory);
559 #define MAX_GOPHER_DISPLAY_TEXT 128
560 #define MAX_GOPHER_SELECTOR_TEXT 256
561 #define MAX_GOPHER_HOST_NAME INTERNET_MAX_HOST_NAME_LENGTH
562 #define MAX_GOPHER_LOCATOR_LENGTH (1 \
563 + MAX_GOPHER_DISPLAY_TEXT \
565 + MAX_GOPHER_SELECTOR_TEXT \
567 + MAX_GOPHER_HOST_NAME \
569 + INTERNET_MAX_PORT_NUMBER_LENGTH \
577 CHAR DisplayString[MAX_GOPHER_DISPLAY_TEXT + 1];
581 FILETIME LastModificationTime;
582 CHAR Locator[MAX_GOPHER_LOCATOR_LENGTH + 1];
583 } GOPHER_FIND_DATAA,* LPGOPHER_FIND_DATAA;
586 WCHAR DisplayString[MAX_GOPHER_DISPLAY_TEXT + 1];
590 FILETIME LastModificationTime;
591 WCHAR Locator[MAX_GOPHER_LOCATOR_LENGTH + 1];
592 } GOPHER_FIND_DATAW,* LPGOPHER_FIND_DATAW;
594 DECL_WINELIB_TYPE_AW(GOPHER_FIND_DATA);
595 DECL_WINELIB_TYPE_AW(LPGOPHER_FIND_DATA);
597 #define GOPHER_TYPE_TEXT_FILE 0x00000001
598 #define GOPHER_TYPE_DIRECTORY 0x00000002
599 #define GOPHER_TYPE_CSO 0x00000004
600 #define GOPHER_TYPE_ERROR 0x00000008
601 #define GOPHER_TYPE_MAC_BINHEX 0x00000010
602 #define GOPHER_TYPE_DOS_ARCHIVE 0x00000020
603 #define GOPHER_TYPE_UNIX_UUENCODED 0x00000040
604 #define GOPHER_TYPE_INDEX_SERVER 0x00000080
605 #define GOPHER_TYPE_TELNET 0x00000100
606 #define GOPHER_TYPE_BINARY 0x00000200
607 #define GOPHER_TYPE_REDUNDANT 0x00000400
608 #define GOPHER_TYPE_TN3270 0x00000800
609 #define GOPHER_TYPE_GIF 0x00001000
610 #define GOPHER_TYPE_IMAGE 0x00002000
611 #define GOPHER_TYPE_BITMAP 0x00004000
612 #define GOPHER_TYPE_MOVIE 0x00008000
613 #define GOPHER_TYPE_SOUND 0x00010000
614 #define GOPHER_TYPE_HTML 0x00020000
615 #define GOPHER_TYPE_PDF 0x00040000
616 #define GOPHER_TYPE_CALENDAR 0x00080000
617 #define GOPHER_TYPE_INLINE 0x00100000
618 #define GOPHER_TYPE_UNKNOWN 0x20000000
619 #define GOPHER_TYPE_ASK 0x40000000
620 #define GOPHER_TYPE_GOPHER_PLUS 0x80000000
622 #define IS_GOPHER_FILE(type) (BOOL)(((type) & GOPHER_TYPE_FILE_MASK) ? TRUE : FALSE)
623 #define IS_GOPHER_DIRECTORY(type) (BOOL)(((type) & GOPHER_TYPE_DIRECTORY) ? TRUE : FALSE)
624 #define IS_GOPHER_PHONE_SERVER(type) (BOOL)(((type) & GOPHER_TYPE_CSO) ? TRUE : FALSE)
625 #define IS_GOPHER_ERROR(type) (BOOL)(((type) & GOPHER_TYPE_ERROR) ? TRUE : FALSE)
626 #define IS_GOPHER_INDEX_SERVER(type) (BOOL)(((type) & GOPHER_TYPE_INDEX_SERVER) ? TRUE : FALSE)
627 #define IS_GOPHER_TELNET_SESSION(type) (BOOL)(((type) & GOPHER_TYPE_TELNET) ? TRUE : FALSE)
628 #define IS_GOPHER_BACKUP_SERVER(type) (BOOL)(((type) & GOPHER_TYPE_REDUNDANT) ? TRUE : FALSE)
629 #define IS_GOPHER_TN3270_SESSION(type) (BOOL)(((type) & GOPHER_TYPE_TN3270) ? TRUE : FALSE)
630 #define IS_GOPHER_ASK(type) (BOOL)(((type) & GOPHER_TYPE_ASK) ? TRUE : FALSE)
631 #define IS_GOPHER_PLUS(type) (BOOL)(((type) & GOPHER_TYPE_GOPHER_PLUS) ? TRUE : FALSE)
632 #define IS_GOPHER_TYPE_KNOWN(type) (BOOL)(((type) & GOPHER_TYPE_UNKNOWN) ? FALSE : TRUE)
633 #define GOPHER_TYPE_FILE_MASK (GOPHER_TYPE_TEXT_FILE \
634 | GOPHER_TYPE_MAC_BINHEX \
635 | GOPHER_TYPE_DOS_ARCHIVE \
636 | GOPHER_TYPE_UNIX_UUENCODED \
637 | GOPHER_TYPE_BINARY \
639 | GOPHER_TYPE_IMAGE \
640 | GOPHER_TYPE_BITMAP \
641 | GOPHER_TYPE_MOVIE \
642 | GOPHER_TYPE_SOUND \
645 | GOPHER_TYPE_CALENDAR \
646 | GOPHER_TYPE_INLINE \
653 } GOPHER_ADMIN_ATTRIBUTE_TYPEA,* LPGOPHER_ADMIN_ATTRIBUTE_TYPEA;
657 LPCWSTR EmailAddress;
658 } GOPHER_ADMIN_ATTRIBUTE_TYPEW,* LPGOPHER_ADMIN_ATTRIBUTE_TYPEW;
660 DECL_WINELIB_TYPE_AW(GOPHER_ADMIN_ATTRIBUTE_TYPE)
661 DECL_WINELIB_TYPE_AW(LPGOPHER_ADMIN_ATTRIBUTE_TYPE)
664 FILETIME DateAndTime;
665 } GOPHER_MOD_DATE_ATTRIBUTE_TYPE,* LPGOPHER_MOD_DATE_ATTRIBUTE_TYPE;
669 } GOPHER_TTL_ATTRIBUTE_TYPE,* LPGOPHER_TTL_ATTRIBUTE_TYPE;
673 } GOPHER_SCORE_ATTRIBUTE_TYPE,* LPGOPHER_SCORE_ATTRIBUTE_TYPE;
678 } GOPHER_SCORE_RANGE_ATTRIBUTE_TYPE,* LPGOPHER_SCORE_RANGE_ATTRIBUTE_TYPE;
682 } GOPHER_SITE_ATTRIBUTE_TYPEA,* LPGOPHER_SITE_ATTRIBUTE_TYPEA;
686 } GOPHER_SITE_ATTRIBUTE_TYPEW,* LPGOPHER_SITE_ATTRIBUTE_TYPEW;
688 DECL_WINELIB_TYPE_AW(GOPHER_SITE_ATTRIBUTE_TYPE)
689 DECL_WINELIB_TYPE_AW(LPGOPHER_SITE_ATTRIBUTE_TYPE)
693 } GOPHER_ORGANIZATION_ATTRIBUTE_TYPEA,* LPGOPHER_ORGANIZATION_ATTRIBUTE_TYPEA;
696 LPCWSTR Organization;
697 } GOPHER_ORGANIZATION_ATTRIBUTE_TYPEW,* LPGOPHER_ORGANIZATION_ATTRIBUTE_TYPEW;
699 DECL_WINELIB_TYPE_AW(GOPHER_ORGANIZATION_ATTRIBUTE_TYPE)
700 DECL_WINELIB_TYPE_AW(LPGOPHER_ORGANIZATION_ATTRIBUTE_TYPE)
704 } GOPHER_LOCATION_ATTRIBUTE_TYPEA,* LPGOPHER_LOCATION_ATTRIBUTE_TYPEA;
708 } GOPHER_LOCATION_ATTRIBUTE_TYPEW,* LPGOPHER_LOCATION_ATTRIBUTE_TYPEW;
710 DECL_WINELIB_TYPE_AW(GOPHER_LOCATION_ATTRIBUTE_TYPE)
711 DECL_WINELIB_TYPE_AW(LPGOPHER_LOCATION_ATTRIBUTE_TYPE)
720 } GOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE,* LPGOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE;
724 } GOPHER_TIMEZONE_ATTRIBUTE_TYPE,* LPGOPHER_TIMEZONE_ATTRIBUTE_TYPE;
728 } GOPHER_PROVIDER_ATTRIBUTE_TYPEA,* LPGOPHER_PROVIDER_ATTRIBUTE_TYPEA;
732 } GOPHER_PROVIDER_ATTRIBUTE_TYPEW,* LPGOPHER_PROVIDER_ATTRIBUTE_TYPEW;
734 DECL_WINELIB_TYPE_AW(GOPHER_PROVIDER_ATTRIBUTE_TYPE)
735 DECL_WINELIB_TYPE_AW(LPGOPHER_PROVIDER_ATTRIBUTE_TYPE)
739 } GOPHER_VERSION_ATTRIBUTE_TYPEA,* LPGOPHER_VERSION_ATTRIBUTE_TYPEA;
743 } GOPHER_VERSION_ATTRIBUTE_TYPEW,* LPGOPHER_VERSION_ATTRIBUTE_TYPEW;
745 DECL_WINELIB_TYPE_AW(GOPHER_VERSION_ATTRIBUTE_TYPE)
746 DECL_WINELIB_TYPE_AW(LPGOPHER_VERSION_ATTRIBUTE_TYPE)
749 LPCSTR ShortAbstract;
751 } GOPHER_ABSTRACT_ATTRIBUTE_TYPEA,* LPGOPHER_ABSTRACT_ATTRIBUTE_TYPEA;
754 LPCWSTR ShortAbstract;
755 LPCWSTR AbstractFile;
756 } GOPHER_ABSTRACT_ATTRIBUTE_TYPEW,* LPGOPHER_ABSTRACT_ATTRIBUTE_TYPEW;
758 DECL_WINELIB_TYPE_AW(GOPHER_ABSTRACT_ATTRIBUTE_TYPE)
759 DECL_WINELIB_TYPE_AW(LPGOPHER_ABSTRACT_ATTRIBUTE_TYPE)
765 } GOPHER_VIEW_ATTRIBUTE_TYPEA,* LPGOPHER_VIEW_ATTRIBUTE_TYPEA;
771 } GOPHER_VIEW_ATTRIBUTE_TYPEW,* LPGOPHER_VIEW_ATTRIBUTE_TYPEW;
773 DECL_WINELIB_TYPE_AW(GOPHER_VIEW_ATTRIBUTE_TYPE)
774 DECL_WINELIB_TYPE_AW(LPGOPHER_VIEW_ATTRIBUTE_TYPE)
778 } GOPHER_VERONICA_ATTRIBUTE_TYPE,* LPGOPHER_VERONICA_ATTRIBUTE_TYPE;
783 } GOPHER_ASK_ATTRIBUTE_TYPEA,* LPGOPHER_ASK_ATTRIBUTE_TYPEA;
786 LPCWSTR QuestionType;
787 LPCWSTR QuestionText;
788 } GOPHER_ASK_ATTRIBUTE_TYPEW,* LPGOPHER_ASK_ATTRIBUTE_TYPEW;
790 DECL_WINELIB_TYPE_AW(GOPHER_ASK_ATTRIBUTE_TYPE)
791 DECL_WINELIB_TYPE_AW(LPGOPHER_ASK_ATTRIBUTE_TYPE)
795 } GOPHER_UNKNOWN_ATTRIBUTE_TYPEA,* LPGOPHER_UNKNOWN_ATTRIBUTE_TYPEA;
799 } GOPHER_UNKNOWN_ATTRIBUTE_TYPEW,* LPGOPHER_UNKNOWN_ATTRIBUTE_TYPEW;
801 DECL_WINELIB_TYPE_AW(GOPHER_UNKNOWN_ATTRIBUTE_TYPE)
802 DECL_WINELIB_TYPE_AW(LPGOPHER_UNKNOWN_ATTRIBUTE_TYPE)
809 GOPHER_ADMIN_ATTRIBUTE_TYPE Admin;
810 GOPHER_MOD_DATE_ATTRIBUTE_TYPE ModDate;
811 GOPHER_TTL_ATTRIBUTE_TYPE Ttl;
812 GOPHER_SCORE_ATTRIBUTE_TYPE Score;
813 GOPHER_SCORE_RANGE_ATTRIBUTE_TYPE ScoreRange;
814 GOPHER_SITE_ATTRIBUTE_TYPE Site;
815 GOPHER_ORGANIZATION_ATTRIBUTE_TYPE Organization;
816 GOPHER_LOCATION_ATTRIBUTE_TYPE Location;
817 GOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE GeographicalLocation;
818 GOPHER_TIMEZONE_ATTRIBUTE_TYPE TimeZone;
819 GOPHER_PROVIDER_ATTRIBUTE_TYPE Provider;
820 GOPHER_VERSION_ATTRIBUTE_TYPE Version;
821 GOPHER_ABSTRACT_ATTRIBUTE_TYPE Abstract;
822 GOPHER_VIEW_ATTRIBUTE_TYPE View;
823 GOPHER_VERONICA_ATTRIBUTE_TYPE Veronica;
824 GOPHER_ASK_ATTRIBUTE_TYPE Ask;
825 GOPHER_UNKNOWN_ATTRIBUTE_TYPE Unknown;
827 } GOPHER_ATTRIBUTE_TYPE,* LPGOPHER_ATTRIBUTE_TYPE;
830 #define MAX_GOPHER_CATEGORY_NAME 128
831 #define MAX_GOPHER_ATTRIBUTE_NAME 128
832 #define MIN_GOPHER_ATTRIBUTE_LENGTH 256
834 #define GOPHER_INFO_CATEGORY TEXT("+INFO")
835 #define GOPHER_ADMIN_CATEGORY TEXT("+ADMIN")
836 #define GOPHER_VIEWS_CATEGORY TEXT("+VIEWS")
837 #define GOPHER_ABSTRACT_CATEGORY TEXT("+ABSTRACT")
838 #define GOPHER_VERONICA_CATEGORY TEXT("+VERONICA")
839 #define GOPHER_ADMIN_ATTRIBUTE TEXT("Admin")
840 #define GOPHER_MOD_DATE_ATTRIBUTE TEXT("Mod-Date")
841 #define GOPHER_TTL_ATTRIBUTE TEXT("TTL")
842 #define GOPHER_SCORE_ATTRIBUTE TEXT("Score")
843 #define GOPHER_RANGE_ATTRIBUTE TEXT("Score-range")
844 #define GOPHER_SITE_ATTRIBUTE TEXT("Site")
845 #define GOPHER_ORG_ATTRIBUTE TEXT("Org")
846 #define GOPHER_LOCATION_ATTRIBUTE TEXT("Loc")
847 #define GOPHER_GEOG_ATTRIBUTE TEXT("Geog")
848 #define GOPHER_TIMEZONE_ATTRIBUTE TEXT("TZ")
849 #define GOPHER_PROVIDER_ATTRIBUTE TEXT("Provider")
850 #define GOPHER_VERSION_ATTRIBUTE TEXT("Version")
851 #define GOPHER_ABSTRACT_ATTRIBUTE TEXT("Abstract")
852 #define GOPHER_VIEW_ATTRIBUTE TEXT("View")
853 #define GOPHER_TREEWALK_ATTRIBUTE TEXT("treewalk")
855 #define GOPHER_ATTRIBUTE_ID_BASE 0xabcccc00
857 #define GOPHER_CATEGORY_ID_ALL (GOPHER_ATTRIBUTE_ID_BASE + 1)
858 #define GOPHER_CATEGORY_ID_INFO (GOPHER_ATTRIBUTE_ID_BASE + 2)
859 #define GOPHER_CATEGORY_ID_ADMIN (GOPHER_ATTRIBUTE_ID_BASE + 3)
860 #define GOPHER_CATEGORY_ID_VIEWS (GOPHER_ATTRIBUTE_ID_BASE + 4)
861 #define GOPHER_CATEGORY_ID_ABSTRACT (GOPHER_ATTRIBUTE_ID_BASE + 5)
862 #define GOPHER_CATEGORY_ID_VERONICA (GOPHER_ATTRIBUTE_ID_BASE + 6)
863 #define GOPHER_CATEGORY_ID_ASK (GOPHER_ATTRIBUTE_ID_BASE + 7)
864 #define GOPHER_CATEGORY_ID_UNKNOWN (GOPHER_ATTRIBUTE_ID_BASE + 8)
866 #define GOPHER_ATTRIBUTE_ID_ALL (GOPHER_ATTRIBUTE_ID_BASE + 9)
867 #define GOPHER_ATTRIBUTE_ID_ADMIN (GOPHER_ATTRIBUTE_ID_BASE + 10)
868 #define GOPHER_ATTRIBUTE_ID_MOD_DATE (GOPHER_ATTRIBUTE_ID_BASE + 11)
869 #define GOPHER_ATTRIBUTE_ID_TTL (GOPHER_ATTRIBUTE_ID_BASE + 12)
870 #define GOPHER_ATTRIBUTE_ID_SCORE (GOPHER_ATTRIBUTE_ID_BASE + 13)
871 #define GOPHER_ATTRIBUTE_ID_RANGE (GOPHER_ATTRIBUTE_ID_BASE + 14)
872 #define GOPHER_ATTRIBUTE_ID_SITE (GOPHER_ATTRIBUTE_ID_BASE + 15)
873 #define GOPHER_ATTRIBUTE_ID_ORG (GOPHER_ATTRIBUTE_ID_BASE + 16)
874 #define GOPHER_ATTRIBUTE_ID_LOCATION (GOPHER_ATTRIBUTE_ID_BASE + 17)
875 #define GOPHER_ATTRIBUTE_ID_GEOG (GOPHER_ATTRIBUTE_ID_BASE + 18)
876 #define GOPHER_ATTRIBUTE_ID_TIMEZONE (GOPHER_ATTRIBUTE_ID_BASE + 19)
877 #define GOPHER_ATTRIBUTE_ID_PROVIDER (GOPHER_ATTRIBUTE_ID_BASE + 20)
878 #define GOPHER_ATTRIBUTE_ID_VERSION (GOPHER_ATTRIBUTE_ID_BASE + 21)
879 #define GOPHER_ATTRIBUTE_ID_ABSTRACT (GOPHER_ATTRIBUTE_ID_BASE + 22)
880 #define GOPHER_ATTRIBUTE_ID_VIEW (GOPHER_ATTRIBUTE_ID_BASE + 23)
881 #define GOPHER_ATTRIBUTE_ID_TREEWALK (GOPHER_ATTRIBUTE_ID_BASE + 24)
882 #define GOPHER_ATTRIBUTE_ID_UNKNOWN (GOPHER_ATTRIBUTE_ID_BASE + 25)
884 BOOLAPI GopherCreateLocatorA(LPCSTR ,INTERNET_PORT ,LPCSTR lpszDisplayString ,
885 LPCSTR lpszSelectorString ,DWORD ,LPSTR lpszLocator ,LPDWORD);
886 BOOLAPI GopherCreateLocatorW(LPCWSTR ,INTERNET_PORT ,LPCWSTR lpszDisplayString ,
887 LPCWSTR lpszSelectorString ,DWORD ,LPWSTR lpszLocator ,LPDWORD);
888 #define GopherCreateLocator WINELIB_NAME_AW(GopherCreateLocator)
890 BOOLAPI GopherGetLocatorTypeA(LPCSTR ,LPDWORD);
891 BOOLAPI GopherGetLocatorTypeW(LPCWSTR ,LPDWORD);
892 #define GopherGetLocatorType WINELIB_NAME_AW(GopherGetLocatorType)
894 INTERNETAPI HINTERNET WINAPI GopherFindFirstFileA(HINTERNET ,LPCSTR lpszLocator ,
895 LPCSTR lpszSearchString ,LPGOPHER_FIND_DATAA lpFindData ,DWORD ,DWORD);
896 INTERNETAPI HINTERNET WINAPI GopherFindFirstFileW(HINTERNET ,LPCWSTR lpszLocator ,
897 LPCWSTR lpszSearchString ,LPGOPHER_FIND_DATAW lpFindData ,DWORD ,DWORD);
898 #define GopherFindFirstFile WINELIB_NAME_AW(GopherFindFirstFile)
900 INTERNETAPI HINTERNET WINAPI GopherOpenFileA(HINTERNET ,LPCSTR ,LPCSTR lpszView ,DWORD ,DWORD);
901 INTERNETAPI HINTERNET WINAPI GopherOpenFileW(HINTERNET ,LPCWSTR ,LPCWSTR lpszView ,DWORD ,DWORD);
902 #define GopherOpenFile WINELIB_NAME_AW(GopherOpenFile)
905 typedef BOOL CALLBACK (*GOPHER_ATTRIBUTE_ENUMERATOR)(LPGOPHER_ATTRIBUTE_TYPE ,DWORD);
907 BOOLAPI GopherGetAttributeA(HINTERNET ,LPCSTR ,LPCSTR lpszAttributeName ,LPBYTE ,
908 DWORD ,LPDWORD ,GOPHER_ATTRIBUTE_ENUMERATOR lpfnEnumerator ,DWORD);
909 BOOLAPI GopherGetAttributeW(HINTERNET ,LPCWSTR ,LPCWSTR lpszAttributeName ,LPBYTE ,
910 DWORD ,LPDWORD ,GOPHER_ATTRIBUTE_ENUMERATOR lpfnEnumerator ,DWORD);
911 #define GopherGetAttribute WINELIB_NAME_AW(GopherGetAttribute)
913 #define HTTP_MAJOR_VERSION 1
914 #define HTTP_MINOR_VERSION 0
915 #define HTTP_VERSION TEXT("HTTP/1.0")
916 #define HTTP_QUERY_MIME_VERSION 0
917 #define HTTP_QUERY_CONTENT_TYPE 1
918 #define HTTP_QUERY_CONTENT_TRANSFER_ENCODING 2
919 #define HTTP_QUERY_CONTENT_ID 3
920 #define HTTP_QUERY_CONTENT_DESCRIPTION 4
921 #define HTTP_QUERY_CONTENT_LENGTH 5
922 #define HTTP_QUERY_CONTENT_LANGUAGE 6
923 #define HTTP_QUERY_ALLOW 7
924 #define HTTP_QUERY_PUBLIC 8
925 #define HTTP_QUERY_DATE 9
926 #define HTTP_QUERY_EXPIRES 10
927 #define HTTP_QUERY_LAST_MODIFIED 11
928 #define HTTP_QUERY_MESSAGE_ID 12
929 #define HTTP_QUERY_URI 13
930 #define HTTP_QUERY_DERIVED_FROM 14
931 #define HTTP_QUERY_COST 15
932 #define HTTP_QUERY_LINK 16
933 #define HTTP_QUERY_PRAGMA 17
934 #define HTTP_QUERY_VERSION 18
935 #define HTTP_QUERY_STATUS_CODE 19
936 #define HTTP_QUERY_STATUS_TEXT 20
937 #define HTTP_QUERY_RAW_HEADERS 21
938 #define HTTP_QUERY_RAW_HEADERS_CRLF 22
939 #define HTTP_QUERY_CONNECTION 23
940 #define HTTP_QUERY_ACCEPT 24
941 #define HTTP_QUERY_ACCEPT_CHARSET 25
942 #define HTTP_QUERY_ACCEPT_ENCODING 26
943 #define HTTP_QUERY_ACCEPT_LANGUAGE 27
944 #define HTTP_QUERY_AUTHORIZATION 28
945 #define HTTP_QUERY_CONTENT_ENCODING 29
946 #define HTTP_QUERY_FORWARDED 30
947 #define HTTP_QUERY_FROM 31
948 #define HTTP_QUERY_IF_MODIFIED_SINCE 32
949 #define HTTP_QUERY_LOCATION 33
950 #define HTTP_QUERY_ORIG_URI 34
951 #define HTTP_QUERY_REFERER 35
952 #define HTTP_QUERY_RETRY_AFTER 36
953 #define HTTP_QUERY_SERVER 37
954 #define HTTP_QUERY_TITLE 38
955 #define HTTP_QUERY_USER_AGENT 39
956 #define HTTP_QUERY_WWW_AUTHENTICATE 40
957 #define HTTP_QUERY_PROXY_AUTHENTICATE 41
958 #define HTTP_QUERY_ACCEPT_RANGES 42
959 #define HTTP_QUERY_SET_COOKIE 43
960 #define HTTP_QUERY_COOKIE 44
961 #define HTTP_QUERY_REQUEST_METHOD 45
962 #define HTTP_QUERY_REFRESH 46
963 #define HTTP_QUERY_CONTENT_DISPOSITION 47
964 #define HTTP_QUERY_AGE 48
965 #define HTTP_QUERY_CACHE_CONTROL 49
966 #define HTTP_QUERY_CONTENT_BASE 50
967 #define HTTP_QUERY_CONTENT_LOCATION 51
968 #define HTTP_QUERY_CONTENT_MD5 52
969 #define HTTP_QUERY_CONTENT_RANGE 53
970 #define HTTP_QUERY_ETAG 54
971 #define HTTP_QUERY_HOST 55
972 #define HTTP_QUERY_IF_MATCH 56
973 #define HTTP_QUERY_IF_NONE_MATCH 57
974 #define HTTP_QUERY_IF_RANGE 58
975 #define HTTP_QUERY_IF_UNMODIFIED_SINCE 59
976 #define HTTP_QUERY_MAX_FORWARDS 60
977 #define HTTP_QUERY_PROXY_AUTHORIZATION 61
978 #define HTTP_QUERY_RANGE 62
979 #define HTTP_QUERY_TRANSFER_ENCODING 63
980 #define HTTP_QUERY_UPGRADE 64
981 #define HTTP_QUERY_VARY 65
982 #define HTTP_QUERY_VIA 66
983 #define HTTP_QUERY_WARNING 67
984 #define HTTP_QUERY_MAX 67
985 #define HTTP_QUERY_CUSTOM 65535
986 #define HTTP_QUERY_FLAG_REQUEST_HEADERS 0x80000000
987 #define HTTP_QUERY_FLAG_SYSTEMTIME 0x40000000
988 #define HTTP_QUERY_FLAG_NUMBER 0x20000000
989 #define HTTP_QUERY_FLAG_COALESCE 0x10000000
990 #define HTTP_QUERY_MODIFIER_FLAGS_MASK (HTTP_QUERY_FLAG_REQUEST_HEADERS \
991 | HTTP_QUERY_FLAG_SYSTEMTIME \
992 | HTTP_QUERY_FLAG_NUMBER \
993 | HTTP_QUERY_FLAG_COALESCE \
995 #define HTTP_QUERY_HEADER_MASK (~HTTP_QUERY_MODIFIER_FLAGS_MASK)
997 #define HTTP_STATUS_CONTINUE 100
998 #define HTTP_STATUS_SWITCH_PROTOCOLS 101
999 #define HTTP_STATUS_OK 200
1000 #define HTTP_STATUS_CREATED 201
1001 #define HTTP_STATUS_ACCEPTED 202
1002 #define HTTP_STATUS_PARTIAL 203
1003 #define HTTP_STATUS_NO_CONTENT 204
1004 #define HTTP_STATUS_RESET_CONTENT 205
1005 #define HTTP_STATUS_PARTIAL_CONTENT 206
1006 #define HTTP_STATUS_AMBIGUOUS 300
1007 #define HTTP_STATUS_MOVED 301
1008 #define HTTP_STATUS_REDIRECT 302
1009 #define HTTP_STATUS_REDIRECT_METHOD 303
1010 #define HTTP_STATUS_NOT_MODIFIED 304
1011 #define HTTP_STATUS_USE_PROXY 305
1012 #define HTTP_STATUS_REDIRECT_KEEP_VERB 307
1013 #define HTTP_STATUS_BAD_REQUEST 400
1014 #define HTTP_STATUS_DENIED 401
1015 #define HTTP_STATUS_PAYMENT_REQ 402
1016 #define HTTP_STATUS_FORBIDDEN 403
1017 #define HTTP_STATUS_NOT_FOUND 404
1018 #define HTTP_STATUS_BAD_METHOD 405
1019 #define HTTP_STATUS_NONE_ACCEPTABLE 406
1020 #define HTTP_STATUS_PROXY_AUTH_REQ 407
1021 #define HTTP_STATUS_REQUEST_TIMEOUT 408
1022 #define HTTP_STATUS_CONFLICT 409
1023 #define HTTP_STATUS_GONE 410
1024 #define HTTP_STATUS_LENGTH_REQUIRED 411
1025 #define HTTP_STATUS_PRECOND_FAILED 412
1026 #define HTTP_STATUS_REQUEST_TOO_LARGE 413
1027 #define HTTP_STATUS_URI_TOO_LONG 414
1028 #define HTTP_STATUS_UNSUPPORTED_MEDIA 415
1029 #define HTTP_STATUS_SERVER_ERROR 500
1030 #define HTTP_STATUS_NOT_SUPPORTED 501
1031 #define HTTP_STATUS_BAD_GATEWAY 502
1032 #define HTTP_STATUS_SERVICE_UNAVAIL 503
1033 #define HTTP_STATUS_GATEWAY_TIMEOUT 504
1034 #define HTTP_STATUS_VERSION_NOT_SUP 505
1035 #define HTTP_STATUS_FIRST HTTP_STATUS_CONTINUE
1036 #define HTTP_STATUS_LAST HTTP_STATUS_VERSION_NOT_SUP
1039 INTERNETAPI HINTERNET WINAPI HttpOpenRequestA(HINTERNET ,LPCSTR ,LPCSTR ,LPCSTR ,
1040 LPCSTR lpszReferrer ,LPCSTR * ,DWORD ,DWORD);
1041 INTERNETAPI HINTERNET WINAPI HttpOpenRequestW(HINTERNET ,LPCWSTR ,LPCWSTR ,LPCWSTR ,
1042 LPCWSTR lpszReferrer ,LPCWSTR * ,DWORD ,DWORD);
1043 #define HttpOpenRequest WINELIB_NAME_AW(HttpOpenRequest)
1045 BOOLAPI HttpAddRequestHeadersA(HINTERNET ,LPCSTR ,DWORD ,DWORD);
1046 BOOLAPI HttpAddRequestHeadersW(HINTERNET ,LPCWSTR ,DWORD ,DWORD);
1047 #define HttpAddRequestHeaders WINELIB_NAME_AW(HttpAddRequestHeaders)
1049 #define HTTP_ADDREQ_INDEX_MASK 0x0000FFFF
1050 #define HTTP_ADDREQ_FLAGS_MASK 0xFFFF0000
1051 #define HTTP_ADDREQ_FLAG_ADD_IF_NEW 0x10000000
1052 #define HTTP_ADDREQ_FLAG_ADD 0x20000000
1053 #define HTTP_ADDREQ_FLAG_COALESCE_WITH_COMMA 0x40000000
1054 #define HTTP_ADDREQ_FLAG_COALESCE_WITH_SEMICOLON 0x01000000
1055 #define HTTP_ADDREQ_FLAG_COALESCE HTTP_ADDREQ_FLAG_COALESCE_WITH_COMMA
1056 #define HTTP_ADDREQ_FLAG_REPLACE 0x80000000
1058 BOOLAPI HttpSendRequestA(HINTERNET ,LPCSTR lpszHeaders ,DWORD ,LPVOID lpOptional ,DWORD);
1059 BOOLAPI HttpSendRequestW(HINTERNET ,LPCWSTR lpszHeaders ,DWORD ,LPVOID lpOptional ,DWORD);
1060 #define HttpSendRequest WINELIB_NAME_AW(HttpSendRequest)
1062 INTERNETAPI BOOL WINAPI HttpSendRequestExA(HINTERNET ,LPINTERNET_BUFFERSA lpBuffersIn ,
1063 LPINTERNET_BUFFERSA lpBuffersOut ,DWORD ,DWORD);
1064 INTERNETAPI BOOL WINAPI HttpSendRequestExW(HINTERNET ,LPINTERNET_BUFFERSW lpBuffersIn ,
1065 LPINTERNET_BUFFERSW lpBuffersOut ,DWORD ,DWORD);
1066 #define HttpSendRequestEx WINELIB_NAME_AW(HttpSendRequestEx)
1068 #define HSR_ASYNC WININET_API_FLAG_ASYNC
1069 #define HSR_SYNC WININET_API_FLAG_SYNC
1070 #define HSR_USE_CONTEXT WININET_API_FLAG_USE_CONTEXT
1071 #define HSR_INITIATE 0x00000008
1072 #define HSR_DOWNLOAD 0x00000010
1073 #define HSR_CHUNKED 0x00000020
1075 INTERNETAPI BOOL WINAPI HttpEndRequestA(HINTERNET ,LPINTERNET_BUFFERSA lpBuffersOut ,DWORD ,DWORD);
1076 INTERNETAPI BOOL WINAPI HttpEndRequestW(HINTERNET ,LPINTERNET_BUFFERSW lpBuffersOut ,DWORD ,DWORD);
1077 #define HttpEndRequest WINELIB_NAME_AW(HttpEndRequest)
1079 BOOLAPI HttpQueryInfoA(HINTERNET ,DWORD ,LPVOID lpBuffer ,LPDWORD ,LPDWORD lpdwIndex);
1080 BOOLAPI HttpQueryInfoW(HINTERNET ,DWORD ,LPVOID lpBuffer ,LPDWORD ,LPDWORD lpdwIndex);
1081 #define HttpQueryInfo WINELIB_NAME_AW(HttpQueryInfo)
1083 BOOLAPI InternetSetCookieA(LPCSTR ,LPCSTR ,LPCSTR);
1084 BOOLAPI InternetSetCookieW(LPCSTR ,LPCWSTR ,LPCWSTR);
1085 #define InternetSetCookie WINELIB_NAME_AW(InternetSetCookie)
1087 BOOLAPI InternetGetCookieA(LPCSTR ,LPCSTR ,LPSTR ,LPDWORD);
1088 BOOLAPI InternetGetCookieW(LPCSTR ,LPCWSTR ,LPWSTR ,LPDWORD);
1089 #define InternetGetCookie WINELIB_NAME_AW(InternetGetCookie)
1091 INTERNETAPI DWORD WINAPI InternetAttemptConnect(DWORD);
1092 BOOLAPI InternetCheckConnectionA(LPCSTR ,DWORD ,DWORD);
1093 BOOLAPI InternetCheckConnectionW(LPCWSTR ,DWORD ,DWORD);
1094 #define InternetCheckConnection WINELIB_NAME_AW(InternetCheckConnection)
1096 #define FLAG_ICC_FORCE_CONNECTION 0x00000001
1098 #define FLAGS_ERROR_UI_FILTER_FOR_ERRORS 0x01
1099 #define FLAGS_ERROR_UI_FLAGS_CHANGE_OPTIONS 0x02
1100 #define FLAGS_ERROR_UI_FLAGS_GENERATE_DATA 0x04
1101 #define FLAGS_ERROR_UI_FLAGS_NO_UI 0x08
1102 #define FLAGS_ERROR_UI_SERIALIZE_DIALOGS 0x10
1104 DWORD InternetAuthNotifyCallback ( DWORD ,DWORD ,LPVOID );
1105 typedef DWORD CALLBACK (*PFN_AUTH_NOTIFY) (DWORD,DWORD,LPVOID);
1111 PFN_AUTH_NOTIFY pfnNotify;
1114 INTERNET_AUTH_NOTIFY_DATA;
1117 INTERNETAPI DWORD WINAPI InternetErrorDlg(HWND ,HINTERNET ,DWORD ,DWORD ,LPVOID *);
1118 INTERNETAPI DWORD WINAPI InternetConfirmZoneCrossingA(HWND ,LPSTR ,LPSTR ,BOOL);
1119 INTERNETAPI DWORD WINAPI InternetConfirmZoneCrossingW(HWND ,LPWSTR ,LPWSTR ,BOOL);
1120 #define InternetConfirmZoneCrossing WINELIB_NAME_AW(InternetConfirmZoneCrossing)
1122 #define INTERNET_ERROR_BASE 12000
1124 #define ERROR_INTERNET_OUT_OF_HANDLES (INTERNET_ERROR_BASE + 1)
1125 #define ERROR_INTERNET_TIMEOUT (INTERNET_ERROR_BASE + 2)
1126 #define ERROR_INTERNET_EXTENDED_ERROR (INTERNET_ERROR_BASE + 3)
1127 #define ERROR_INTERNET_INTERNAL_ERROR (INTERNET_ERROR_BASE + 4)
1128 #define ERROR_INTERNET_INVALID_URL (INTERNET_ERROR_BASE + 5)
1129 #define ERROR_INTERNET_UNRECOGNIZED_SCHEME (INTERNET_ERROR_BASE + 6)
1130 #define ERROR_INTERNET_NAME_NOT_RESOLVED (INTERNET_ERROR_BASE + 7)
1131 #define ERROR_INTERNET_PROTOCOL_NOT_FOUND (INTERNET_ERROR_BASE + 8)
1132 #define ERROR_INTERNET_INVALID_OPTION (INTERNET_ERROR_BASE + 9)
1133 #define ERROR_INTERNET_BAD_OPTION_LENGTH (INTERNET_ERROR_BASE + 10)
1134 #define ERROR_INTERNET_OPTION_NOT_SETTABLE (INTERNET_ERROR_BASE + 11)
1135 #define ERROR_INTERNET_SHUTDOWN (INTERNET_ERROR_BASE + 12)
1136 #define ERROR_INTERNET_INCORRECT_USER_NAME (INTERNET_ERROR_BASE + 13)
1137 #define ERROR_INTERNET_INCORRECT_PASSWORD (INTERNET_ERROR_BASE + 14)
1138 #define ERROR_INTERNET_LOGIN_FAILURE (INTERNET_ERROR_BASE + 15)
1139 #define ERROR_INTERNET_INVALID_OPERATION (INTERNET_ERROR_BASE + 16)
1140 #define ERROR_INTERNET_OPERATION_CANCELLED (INTERNET_ERROR_BASE + 17)
1141 #define ERROR_INTERNET_INCORRECT_HANDLE_TYPE (INTERNET_ERROR_BASE + 18)
1142 #define ERROR_INTERNET_INCORRECT_HANDLE_STATE (INTERNET_ERROR_BASE + 19)
1143 #define ERROR_INTERNET_NOT_PROXY_REQUEST (INTERNET_ERROR_BASE + 20)
1144 #define ERROR_INTERNET_REGISTRY_VALUE_NOT_FOUND (INTERNET_ERROR_BASE + 21)
1145 #define ERROR_INTERNET_BAD_REGISTRY_PARAMETER (INTERNET_ERROR_BASE + 22)
1146 #define ERROR_INTERNET_NO_DIRECT_ACCESS (INTERNET_ERROR_BASE + 23)
1147 #define ERROR_INTERNET_NO_CONTEXT (INTERNET_ERROR_BASE + 24)
1148 #define ERROR_INTERNET_NO_CALLBACK (INTERNET_ERROR_BASE + 25)
1149 #define ERROR_INTERNET_REQUEST_PENDING (INTERNET_ERROR_BASE + 26)
1150 #define ERROR_INTERNET_INCORRECT_FORMAT (INTERNET_ERROR_BASE + 27)
1151 #define ERROR_INTERNET_ITEM_NOT_FOUND (INTERNET_ERROR_BASE + 28)
1152 #define ERROR_INTERNET_CANNOT_CONNECT (INTERNET_ERROR_BASE + 29)
1153 #define ERROR_INTERNET_CONNECTION_ABORTED (INTERNET_ERROR_BASE + 30)
1154 #define ERROR_INTERNET_CONNECTION_RESET (INTERNET_ERROR_BASE + 31)
1155 #define ERROR_INTERNET_FORCE_RETRY (INTERNET_ERROR_BASE + 32)
1156 #define ERROR_INTERNET_INVALID_PROXY_REQUEST (INTERNET_ERROR_BASE + 33)
1157 #define ERROR_INTERNET_NEED_UI (INTERNET_ERROR_BASE + 34)
1158 #define ERROR_INTERNET_HANDLE_EXISTS (INTERNET_ERROR_BASE + 36)
1159 #define ERROR_INTERNET_SEC_CERT_DATE_INVALID (INTERNET_ERROR_BASE + 37)
1160 #define ERROR_INTERNET_SEC_CERT_CN_INVALID (INTERNET_ERROR_BASE + 38)
1161 #define ERROR_INTERNET_HTTP_TO_HTTPS_ON_REDIR (INTERNET_ERROR_BASE + 39)
1162 #define ERROR_INTERNET_HTTPS_TO_HTTP_ON_REDIR (INTERNET_ERROR_BASE + 40)
1163 #define ERROR_INTERNET_MIXED_SECURITY (INTERNET_ERROR_BASE + 41)
1164 #define ERROR_INTERNET_CHG_POST_IS_NON_SECURE (INTERNET_ERROR_BASE + 42)
1165 #define ERROR_INTERNET_POST_IS_NON_SECURE (INTERNET_ERROR_BASE + 43)
1166 #define ERROR_INTERNET_CLIENT_AUTH_CERT_NEEDED (INTERNET_ERROR_BASE + 44)
1167 #define ERROR_INTERNET_INVALID_CA (INTERNET_ERROR_BASE + 45)
1168 #define ERROR_INTERNET_CLIENT_AUTH_NOT_SETUP (INTERNET_ERROR_BASE + 46)
1169 #define ERROR_INTERNET_ASYNC_THREAD_FAILED (INTERNET_ERROR_BASE + 47)
1170 #define ERROR_INTERNET_REDIRECT_SCHEME_CHANGE (INTERNET_ERROR_BASE + 48)
1171 #define ERROR_INTERNET_DIALOG_PENDING (INTERNET_ERROR_BASE + 49)
1172 #define ERROR_INTERNET_RETRY_DIALOG (INTERNET_ERROR_BASE + 50)
1173 #define ERROR_INTERNET_HTTPS_HTTP_SUBMIT_REDIR (INTERNET_ERROR_BASE + 52)
1174 #define ERROR_INTERNET_INSERT_CDROM (INTERNET_ERROR_BASE + 53)
1175 #define ERROR_FTP_TRANSFER_IN_PROGRESS (INTERNET_ERROR_BASE + 110)
1176 #define ERROR_FTP_DROPPED (INTERNET_ERROR_BASE + 111)
1177 #define ERROR_FTP_NO_PASSIVE_MODE (INTERNET_ERROR_BASE + 112)
1178 #define ERROR_GOPHER_PROTOCOL_ERROR (INTERNET_ERROR_BASE + 130)
1179 #define ERROR_GOPHER_NOT_FILE (INTERNET_ERROR_BASE + 131)
1180 #define ERROR_GOPHER_DATA_ERROR (INTERNET_ERROR_BASE + 132)
1181 #define ERROR_GOPHER_END_OF_DATA (INTERNET_ERROR_BASE + 133)
1182 #define ERROR_GOPHER_INVALID_LOCATOR (INTERNET_ERROR_BASE + 134)
1183 #define ERROR_GOPHER_INCORRECT_LOCATOR_TYPE (INTERNET_ERROR_BASE + 135)
1184 #define ERROR_GOPHER_NOT_GOPHER_PLUS (INTERNET_ERROR_BASE + 136)
1185 #define ERROR_GOPHER_ATTRIBUTE_NOT_FOUND (INTERNET_ERROR_BASE + 137)
1186 #define ERROR_GOPHER_UNKNOWN_LOCATOR (INTERNET_ERROR_BASE + 138)
1187 #define ERROR_HTTP_HEADER_NOT_FOUND (INTERNET_ERROR_BASE + 150)
1188 #define ERROR_HTTP_DOWNLEVEL_SERVER (INTERNET_ERROR_BASE + 151)
1189 #define ERROR_HTTP_INVALID_SERVER_RESPONSE (INTERNET_ERROR_BASE + 152)
1190 #define ERROR_HTTP_INVALID_HEADER (INTERNET_ERROR_BASE + 153)
1191 #define ERROR_HTTP_INVALID_QUERY_REQUEST (INTERNET_ERROR_BASE + 154)
1192 #define ERROR_HTTP_HEADER_ALREADY_EXISTS (INTERNET_ERROR_BASE + 155)
1193 #define ERROR_HTTP_REDIRECT_FAILED (INTERNET_ERROR_BASE + 156)
1194 #define ERROR_HTTP_NOT_REDIRECTED (INTERNET_ERROR_BASE + 160)
1195 #define ERROR_HTTP_COOKIE_NEEDS_CONFIRMATION (INTERNET_ERROR_BASE + 161)
1196 #define ERROR_HTTP_COOKIE_DECLINED (INTERNET_ERROR_BASE + 162)
1197 #define ERROR_HTTP_REDIRECT_NEEDS_CONFIRMATION (INTERNET_ERROR_BASE + 168)
1198 #define ERROR_INTERNET_SECURITY_CHANNEL_ERROR (INTERNET_ERROR_BASE + 157)
1199 #define ERROR_INTERNET_UNABLE_TO_CACHE_FILE (INTERNET_ERROR_BASE + 158)
1200 #define ERROR_INTERNET_TCPIP_NOT_INSTALLED (INTERNET_ERROR_BASE + 159)
1201 #define ERROR_INTERNET_DISCONNECTED (INTERNET_ERROR_BASE + 163)
1202 #define ERROR_INTERNET_SERVER_UNREACHABLE (INTERNET_ERROR_BASE + 164)
1203 #define ERROR_INTERNET_PROXY_SERVER_UNREACHABLE (INTERNET_ERROR_BASE + 165)
1204 #define ERROR_INTERNET_BAD_AUTO_PROXY_SCRIPT (INTERNET_ERROR_BASE + 166)
1205 #define ERROR_INTERNET_UNABLE_TO_DOWNLOAD_SCRIPT (INTERNET_ERROR_BASE + 167)
1206 #define ERROR_INTERNET_SEC_INVALID_CERT (INTERNET_ERROR_BASE + 169)
1207 #define ERROR_INTERNET_SEC_CERT_REVOKED (INTERNET_ERROR_BASE + 170)
1208 #define ERROR_INTERNET_FAILED_DUETOSECURITYCHECK (INTERNET_ERROR_BASE + 171)
1209 #define INTERNET_ERROR_LAST ERROR_INTERNET_FAILED_DUETOSECURITYCHECK
1212 #define NORMAL_CACHE_ENTRY 0x00000001
1213 #define COOKIE_CACHE_ENTRY 0x00100000
1214 #define URLHISTORY_CACHE_ENTRY 0x00200000
1215 #define TRACK_OFFLINE_CACHE_ENTRY 0x00000010
1216 #define TRACK_ONLINE_CACHE_ENTRY 0x00000020
1217 #define STICKY_CACHE_ENTRY 0x00000004
1218 #define SPARSE_CACHE_ENTRY 0x00010000
1220 #define URLCACHE_FIND_DEFAULT_FILTER NORMAL_CACHE_ENTRY \
1221 | COOKIE_CACHE_ENTRY \
1222 | URLHISTORY_CACHE_ENTRY \
1223 | TRACK_OFFLINE_CACHE_ENTRY \
1224 | TRACK_ONLINE_CACHE_ENTRY \
1225 | STICKY_CACHE_ENTRY
1228 typedef struct _INTERNET_CACHE_ENTRY_INFOA {
1230 LPSTR lpszSourceUrlName;
1231 LPSTR lpszLocalFileName;
1232 DWORD CacheEntryType;
1237 FILETIME LastModifiedTime;
1238 FILETIME ExpireTime;
1239 FILETIME LastAccessTime;
1240 FILETIME LastSyncTime;
1242 LPBYTE lpHeaderInfo;
1243 DWORD dwHeaderInfoSize;
1244 LPSTR lpszFileExtension;
1247 DWORD dwExemptDelta;
1249 } INTERNET_CACHE_ENTRY_INFOA,* LPINTERNET_CACHE_ENTRY_INFOA;
1251 typedef struct _INTERNET_CACHE_ENTRY_INFOW {
1253 LPWSTR lpszSourceUrlName;
1254 LPWSTR lpszLocalFileName;
1255 DWORD CacheEntryType;
1260 FILETIME LastModifiedTime;
1261 FILETIME ExpireTime;
1262 FILETIME LastAccessTime;
1263 FILETIME LastSyncTime;
1265 LPBYTE lpHeaderInfo;
1266 DWORD dwHeaderInfoSize;
1267 LPWSTR lpszFileExtension;
1270 DWORD dwExemptDelta;
1272 } INTERNET_CACHE_ENTRY_INFOW,* LPINTERNET_CACHE_ENTRY_INFOW;
1274 DECL_WINELIB_TYPE_AW(INTERNET_CACHE_ENTRY_INFO)
1275 DECL_WINELIB_TYPE_AW(LPINTERNET_CACHE_ENTRY_INFO)
1277 BOOLAPI CreateUrlCacheEntryA(LPCSTR ,DWORD ,LPCSTR ,LPSTR ,DWORD);
1278 BOOLAPI CreateUrlCacheEntryW(LPCSTR ,DWORD ,LPCSTR ,LPWSTR ,DWORD);
1279 #define CreateUrlCacheEntry WINELIB_NAME_AW(CreateUrlCacheEntry)
1281 BOOLAPI CommitUrlCacheEntryA(LPCSTR ,LPCSTR ,FILETIME ,FILETIME ,DWORD ,LPBYTE ,DWORD ,LPCSTR ,DWORD);
1282 BOOLAPI CommitUrlCacheEntryW(LPCSTR ,LPCWSTR ,FILETIME ,FILETIME ,DWORD ,LPBYTE ,DWORD ,LPCWSTR ,DWORD);
1283 #define CommitUrlCacheEntry WINELIB_NAME_AW(CommitUrlCacheEntry)
1285 BOOLAPI RetrieveUrlCacheEntryFileA(LPCSTR ,LPINTERNET_CACHE_ENTRY_INFOA ,LPDWORD ,DWORD);
1286 BOOLAPI RetrieveUrlCacheEntryFileW(LPCSTR ,LPINTERNET_CACHE_ENTRY_INFOW ,LPDWORD ,DWORD);
1287 #define RetrieveUrlCacheEntryFile WINELIB_NAME_AW(RetrieveUrlCacheEntryFile)
1289 BOOLAPI UnlockUrlCacheEntryFile(LPCSTR ,DWORD);
1291 INTERNETAPI HANDLE WINAPI RetrieveUrlCacheEntryStreamA(LPCSTR ,
1292 LPINTERNET_CACHE_ENTRY_INFOA , LPDWORD ,BOOL ,DWORD);
1293 INTERNETAPI HANDLE WINAPI RetrieveUrlCacheEntryStreamW(LPCSTR ,LPINTERNET_CACHE_ENTRY_INFOW ,
1294 LPDWORD ,BOOL ,DWORD);
1295 #define RetrieveUrlCacheEntryStream WINELIB_NAME_AW(RetrieveUrlCacheEntryStream)
1297 BOOLAPI ReadUrlCacheEntryStream( HANDLE ,DWORD ,LPVOID ,LPDWORD ,DWORD );
1298 BOOLAPI UnlockUrlCacheEntryStream( HANDLE ,DWORD );
1299 BOOLAPI GetUrlCacheEntryInfoA(LPCSTR ,LPINTERNET_CACHE_ENTRY_INFOA ,LPDWORD);
1300 BOOLAPI GetUrlCacheEntryInfoW(LPCSTR ,LPINTERNET_CACHE_ENTRY_INFOW ,LPDWORD);
1301 #define GetUrlCacheEntryInfo WINELIB_NAME_AW(GetUrlCacheEntryInfo)
1303 BOOLAPI GetUrlCacheEntryInfoExA(
1304 LPCSTR ,LPINTERNET_CACHE_ENTRY_INFOA ,LPDWORD ,LPSTR ,LPDWORD ,LPVOID ,DWORD);
1305 BOOLAPI GetUrlCacheEntryInfoExW(
1306 LPCSTR ,LPINTERNET_CACHE_ENTRY_INFOW ,LPDWORD ,LPWSTR ,LPDWORD ,LPVOID ,DWORD);
1307 #define GetUrlCacheEntryInfoEx WINELIB_NAME_AW(GetUrlCacheEntryInfoEx)
1309 #define CACHE_ENTRY_ATTRIBUTE_FC 0x00000004
1310 #define CACHE_ENTRY_HITRATE_FC 0x00000010
1311 #define CACHE_ENTRY_MODTIME_FC 0x00000040
1312 #define CACHE_ENTRY_EXPTIME_FC 0x00000080
1313 #define CACHE_ENTRY_ACCTIME_FC 0x00000100
1314 #define CACHE_ENTRY_SYNCTIME_FC 0x00000200
1315 #define CACHE_ENTRY_HEADERINFO_FC 0x00000400
1316 #define CACHE_ENTRY_EXEMPT_DELTA_FC 0x00000800
1319 BOOLAPI SetUrlCacheEntryInfoA(LPCSTR ,LPINTERNET_CACHE_ENTRY_INFOA ,DWORD);
1320 BOOLAPI SetUrlCacheEntryInfoW(LPCSTR ,LPINTERNET_CACHE_ENTRY_INFOW ,DWORD);
1321 #define SetUrlCacheEntryInfo WINELIB_NAME_AW(SetUrlCacheEntryInfo)
1323 typedef LONGLONG GROUPID;
1324 INTERNETAPI GROUPID WINAPI CreateUrlCacheGroup(DWORD ,LPVOID);
1325 BOOLAPI DeleteUrlCacheGroup(GROUPID ,DWORD ,LPVOID);
1327 #define INTERNET_CACHE_GROUP_ADD 0
1328 #define INTERNET_CACHE_GROUP_REMOVE 1
1330 BOOLAPI SetUrlCacheEntryGroup(LPCSTR ,DWORD ,GROUPID ,LPBYTE ,DWORD ,LPVOID);
1332 INTERNETAPI HANDLE WINAPI FindFirstUrlCacheEntryExA(
1333 LPCSTR ,DWORD ,DWORD ,GROUPID ,LPINTERNET_CACHE_ENTRY_INFOA ,LPDWORD ,LPVOID ,LPDWORD ,LPVOID );
1334 INTERNETAPI HANDLE WINAPI FindFirstUrlCacheEntryExW(
1335 LPCSTR ,DWORD ,DWORD ,GROUPID ,LPINTERNET_CACHE_ENTRY_INFOW ,LPDWORD ,LPVOID ,LPDWORD ,LPVOID );
1336 #define FindFirstUrlCacheEntryEx WINELIB_NAME_AW(FindFirstUrlCacheEntryEx)
1338 BOOLAPI FindNextUrlCacheEntryExA(HANDLE ,LPINTERNET_CACHE_ENTRY_INFOA ,LPDWORD ,LPVOID ,LPDWORD ,LPVOID);
1339 BOOLAPI FindNextUrlCacheEntryExW(HANDLE ,LPINTERNET_CACHE_ENTRY_INFOW ,LPDWORD ,LPVOID ,LPDWORD ,LPVOID);
1340 #define FindNextUrlCacheEntryEx WINELIB_NAME_AW(FindNextUrlCacheEntryEx)
1342 INTERNETAPI HANDLE WINAPI FindFirstUrlCacheEntryA(LPCSTR ,LPINTERNET_CACHE_ENTRY_INFOA ,LPDWORD);
1343 INTERNETAPI HANDLE WINAPI FindFirstUrlCacheEntryW(LPCSTR ,LPINTERNET_CACHE_ENTRY_INFOW ,LPDWORD);
1344 #define FindFirstUrlCacheEntry WINELIB_NAME_AW(FindFirstUrlCacheEntry)
1346 BOOLAPI FindNextUrlCacheEntryA(HANDLE ,LPINTERNET_CACHE_ENTRY_INFOA ,LPDWORD);
1347 BOOLAPI FindNextUrlCacheEntryW(HANDLE ,LPINTERNET_CACHE_ENTRY_INFOW ,LPDWORD);
1348 #define FindNextUrlCacheEntry WINELIB_NAME_AW(FindNextUrlCacheEntry)
1351 BOOLAPI FindCloseUrlCache(HANDLE);
1352 BOOLAPI DeleteUrlCacheEntry(LPCSTR);
1354 INTERNETAPI DWORD WINAPI InternetDialA(HWND ,LPSTR ,DWORD ,LPDWORD ,DWORD);
1355 INTERNETAPI DWORD WINAPI InternetDialW(HWND ,LPWSTR ,DWORD ,LPDWORD ,DWORD);
1356 #define InternetDial WINELIB_NAME_AW(InternetDial)
1359 #define INTERNET_DIAL_UNATTENDED 0x8000
1361 INTERNETAPI DWORD WINAPI InternetHangUp(DWORD ,DWORD);
1363 #define INTERENT_GOONLINE_REFRESH 0x00000001
1364 #define INTERENT_GOONLINE_MASK 0x00000001
1365 INTERNETAPI BOOL WINAPI InternetGoOnlineA(LPSTR ,HWND ,DWORD);
1366 INTERNETAPI BOOL WINAPI InternetGoOnlineW(LPWSTR ,HWND ,DWORD);
1367 #define InternetGoOnline WINELIB_NAME_AW(InternetGoOnline)
1368 INTERNETAPI BOOL WINAPI InternetAutodial(DWORD ,DWORD);
1370 #define INTERNET_AUTODIAL_FORCE_ONLINE 1
1371 #define INTERNET_AUTODIAL_FORCE_UNATTENDED 2
1372 #define INTERNET_AUTODIAL_FAILIFSECURITYCHECK 4
1374 #define INTERNET_AUTODIAL_FLAGS_MASK (INTERNET_AUTODIAL_FORCE_ONLINE | INTERNET_AUTODIAL_FORCE_UNATTENDED | INTERNET_AUTODIAL_FAILIFSECURITYCHECK)
1375 INTERNETAPI BOOL WINAPI InternetAutodialHangup(DWORD);
1376 INTERNETAPI BOOL WINAPI InternetGetConnectedState(LPDWORD ,DWORD);
1378 #define INTERNET_CONNECTION_MODEM 1
1379 #define INTERNET_CONNECTION_LAN 2
1380 #define INTERNET_CONNECTION_PROXY 4
1381 #define INTERNET_CONNECTION_MODEM_BUSY 8
1383 typedef DWORD CALLBACK (*PFN_DIAL_HANDLER) (HWND,LPCSTR,DWORD,LPDWORD);
1385 #define INTERNET_CUSTOMDIAL_CONNECT 0
1386 #define INTERNET_CUSTOMDIAL_UNATTENDED 1
1387 #define INTERNET_CUSTOMDIAL_DISCONNECT 2
1388 #define INTERNET_CUSTOMDIAL_SHOWOFFLINE 4
1389 #define INTERNET_CUSTOMDIAL_SAFE_FOR_UNATTENDED 1
1390 #define INTERNET_CUSTOMDIAL_WILL_SUPPLY_STATE 2
1391 #define INTERNET_CUSTOMDIAL_CAN_HANGUP 4
1393 INTERNETAPI BOOL WINAPI InternetSetDialStateA(LPCSTR ,DWORD ,DWORD);
1394 INTERNETAPI BOOL WINAPI InternetSetDialStateW(LPCWSTR ,DWORD ,DWORD);
1395 #define InternetSetDialState WINELIB_NAME_AW(InternetSetDialState)
1396 #define INTERNET_DIALSTATE_DISCONNECTED 1
1398 BOOLAPI InternetCheckConnectionA(LPCSTR lpszUrl,DWORD dwFlags,DWORD dwReserved);
1399 BOOLAPI InternetCheckConnectionW(LPCWSTR lpszUrl,DWORD dwFlags,DWORD dwReserved);
1400 #define InternetCheckConnection WINELIB_NAME_AW(InternetCheckConnection)
1402 #if defined(__cplusplus)