[PSDK]
[reactos.git] / reactos / include / psdk / wininet.h
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 #ifndef _WINE_WININET_H_
20 #define _WINE_WININET_H_
21
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25
26 #define INTERNETAPI
27 #define BOOLAPI _Success_(return != 0) INTERNETAPI BOOL WINAPI
28
29 typedef LPVOID HINTERNET;
30 typedef HINTERNET * LPHINTERNET;
31
32 typedef WORD INTERNET_PORT;
33 typedef INTERNET_PORT * LPINTERNET_PORT;
34
35
36 #define INTERNET_INVALID_PORT_NUMBER 0
37
38 #define INTERNET_DEFAULT_FTP_PORT 21
39 #define INTERNET_DEFAULT_GOPHER_PORT 70
40 #define INTERNET_DEFAULT_HTTP_PORT 80
41 #define INTERNET_DEFAULT_HTTPS_PORT 443
42 #define INTERNET_DEFAULT_SOCKS_PORT 1080
43
44 #define INTERNET_MAX_HOST_NAME_LENGTH 256
45 #define INTERNET_MAX_USER_NAME_LENGTH 128
46 #define INTERNET_MAX_PASSWORD_LENGTH 128
47 #define INTERNET_MAX_PORT_NUMBER_LENGTH 5
48 #define INTERNET_MAX_PORT_NUMBER_VALUE 65535
49 #define INTERNET_MAX_PATH_LENGTH 2048
50 #define INTERNET_MAX_SCHEME_LENGTH 32
51 #define INTERNET_MAX_URL_LENGTH (INTERNET_MAX_SCHEME_LENGTH + sizeof("://")+ INTERNET_MAX_PATH_LENGTH)
52 #define INTERNET_KEEP_ALIVE_UNKNOWN ((DWORD)-1)
53 #define INTERNET_KEEP_ALIVE_ENABLED 1
54 #define INTERNET_KEEP_ALIVE_DISABLED 0
55 #define INTERNET_REQFLAG_FROM_CACHE 0x00000001
56 #define INTERNET_REQFLAG_ASYNC 0x00000002
57 #define INTERNET_REQFLAG_VIA_PROXY 0x00000004
58 #define INTERNET_REQFLAG_NO_HEADERS 0x00000008
59 #define INTERNET_REQFLAG_PASSIVE 0x00000010
60 #define INTERNET_REQFLAG_CACHE_WRITE_DISABLED 0x00000040
61 #define INTERNET_FLAG_RELOAD 0x80000000
62 #define INTERNET_FLAG_RAW_DATA 0x40000000
63 #define INTERNET_FLAG_EXISTING_CONNECT 0x20000000
64 #define INTERNET_FLAG_ASYNC 0x10000000
65 #define INTERNET_FLAG_PASSIVE 0x08000000
66 #define INTERNET_FLAG_NO_CACHE_WRITE 0x04000000
67 #define INTERNET_FLAG_DONT_CACHE INTERNET_FLAG_NO_CACHE_WRITE
68 #define INTERNET_FLAG_MAKE_PERSISTENT 0x02000000
69 #define INTERNET_FLAG_FROM_CACHE 0x01000000
70 #define INTERNET_FLAG_OFFLINE INTERNET_FLAG_FROM_CACHE
71 #define INTERNET_FLAG_SECURE 0x00800000
72 #define INTERNET_FLAG_KEEP_CONNECTION 0x00400000
73 #define INTERNET_FLAG_NO_AUTO_REDIRECT 0x00200000
74 #define INTERNET_FLAG_READ_PREFETCH 0x00100000
75 #define INTERNET_FLAG_NO_COOKIES 0x00080000
76 #define INTERNET_FLAG_NO_AUTH 0x00040000
77 #define INTERNET_FLAG_CACHE_IF_NET_FAIL 0x00010000
78 #define INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTP 0x00008000
79 #define INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTPS 0x00004000
80 #define INTERNET_FLAG_IGNORE_CERT_DATE_INVALID 0x00002000
81 #define INTERNET_FLAG_IGNORE_CERT_CN_INVALID 0x00001000
82 #define INTERNET_FLAG_RESYNCHRONIZE 0x00000800
83 #define INTERNET_FLAG_HYPERLINK 0x00000400
84 #define INTERNET_FLAG_NO_UI 0x00000200
85 #define INTERNET_FLAG_PRAGMA_NOCACHE 0x00000100
86 #define INTERNET_FLAG_CACHE_ASYNC 0x00000080
87 #define INTERNET_FLAG_FORMS_SUBMIT 0x00000040
88 #define INTERNET_FLAG_NEED_FILE 0x00000010
89 #define INTERNET_FLAG_MUST_CACHE_REQUEST INTERNET_FLAG_NEED_FILE
90 #define INTERNET_FLAG_TRANSFER_ASCII FTP_TRANSFER_TYPE_ASCII
91 #define INTERNET_FLAG_TRANSFER_BINARY FTP_TRANSFER_TYPE_BINARY
92 #define SECURITY_INTERNET_MASK (INTERNET_FLAG_IGNORE_CERT_CN_INVALID|\
93 INTERNET_FLAG_IGNORE_CERT_DATE_INVALID|\
94 INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTPS|\
95 INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTP)
96
97 #define INTERNET_FLAGS_MASK (INTERNET_FLAG_RELOAD \
98 | INTERNET_FLAG_RAW_DATA \
99 | INTERNET_FLAG_EXISTING_CONNECT \
100 | INTERNET_FLAG_ASYNC \
101 | INTERNET_FLAG_PASSIVE \
102 | INTERNET_FLAG_NO_CACHE_WRITE \
103 | INTERNET_FLAG_MAKE_PERSISTENT \
104 | INTERNET_FLAG_FROM_CACHE \
105 | INTERNET_FLAG_SECURE \
106 | INTERNET_FLAG_KEEP_CONNECTION \
107 | INTERNET_FLAG_NO_AUTO_REDIRECT \
108 | INTERNET_FLAG_READ_PREFETCH \
109 | INTERNET_FLAG_NO_COOKIES \
110 | INTERNET_FLAG_NO_AUTH \
111 | INTERNET_FLAG_CACHE_IF_NET_FAIL \
112 | SECURITY_INTERNET_MASK \
113 | INTERNET_FLAG_RESYNCHRONIZE \
114 | INTERNET_FLAG_HYPERLINK \
115 | INTERNET_FLAG_NO_UI \
116 | INTERNET_FLAG_PRAGMA_NOCACHE \
117 | INTERNET_FLAG_CACHE_ASYNC \
118 | INTERNET_FLAG_FORMS_SUBMIT \
119 | INTERNET_FLAG_NEED_FILE \
120 | INTERNET_FLAG_TRANSFER_BINARY \
121 | INTERNET_FLAG_TRANSFER_ASCII \
122 )
123
124 #define INTERNET_ERROR_MASK_INSERT_CDROM 0x1
125 #define INTERNET_ERROR_MASK_COMBINED_SEC_CERT 0x2
126 #define INTERNET_ERROR_MASK_NEED_MSN_SSPI_PKG 0x4
127 #define INTERNET_ERROR_MASK_LOGIN_FAILURE_DISPLAY_ENTITY_BODY 0x8
128
129 #define INTERNET_OPTIONS_MASK (~INTERNET_FLAGS_MASK)
130 #define WININET_API_FLAG_ASYNC 0x00000001
131 #define WININET_API_FLAG_SYNC 0x00000004
132 #define WININET_API_FLAG_USE_CONTEXT 0x00000008
133 #define INTERNET_NO_CALLBACK 0
134
135 typedef enum {
136 INTERNET_SCHEME_PARTIAL = -2,
137 INTERNET_SCHEME_UNKNOWN = -1,
138 INTERNET_SCHEME_DEFAULT = 0,
139 INTERNET_SCHEME_FTP,
140 INTERNET_SCHEME_GOPHER,
141 INTERNET_SCHEME_HTTP,
142 INTERNET_SCHEME_HTTPS,
143 INTERNET_SCHEME_FILE,
144 INTERNET_SCHEME_NEWS,
145 INTERNET_SCHEME_MAILTO,
146 INTERNET_SCHEME_SOCKS,
147 INTERNET_SCHEME_JAVASCRIPT,
148 INTERNET_SCHEME_VBSCRIPT,
149 INTERNET_SCHEME_RES,
150 INTERNET_SCHEME_FIRST = INTERNET_SCHEME_FTP,
151 INTERNET_SCHEME_LAST = INTERNET_SCHEME_RES
152 } INTERNET_SCHEME,* LPINTERNET_SCHEME;
153
154 typedef struct {
155 DWORD_PTR dwResult;
156 DWORD dwError;
157 } INTERNET_ASYNC_RESULT,* LPINTERNET_ASYNC_RESULT;
158
159 typedef struct {
160 DWORD dwAccessType;
161 LPCSTR lpszProxy;
162 LPCSTR lpszProxyBypass;
163 } INTERNET_PROXY_INFOA,* LPINTERNET_PROXY_INFOA;
164
165 typedef struct {
166 DWORD dwAccessType;
167 LPCWSTR lpszProxy;
168 LPCWSTR lpszProxyBypass;
169 } INTERNET_PROXY_INFOW,* LPINTERNET_PROXY_INFOW;
170
171
172 DECL_WINELIB_TYPE_AW(INTERNET_PROXY_INFO)
173 DECL_WINELIB_TYPE_AW(LPINTERNET_PROXY_INFO)
174
175 typedef struct {
176 DWORD dwMajorVersion;
177 DWORD dwMinorVersion;
178 } INTERNET_VERSION_INFO,* LPINTERNET_VERSION_INFO;
179
180 typedef struct {
181 DWORD dwMajorVersion;
182 DWORD dwMinorVersion;
183 } HTTP_VERSION_INFO,* LPHTTP_VERSION_INFO;
184
185 typedef struct {
186 DWORD dwConnectedState;
187 DWORD dwFlags;
188 } INTERNET_CONNECTED_INFO,* LPINTERNET_CONNECTED_INFO;
189
190 #define ISO_FORCE_DISCONNECTED 0x00000001
191
192 typedef struct {
193 DWORD dwStructSize;
194 LPSTR lpszScheme;
195 DWORD dwSchemeLength;
196 INTERNET_SCHEME nScheme;
197 LPSTR lpszHostName;
198 DWORD dwHostNameLength;
199 INTERNET_PORT nPort;
200 LPSTR lpszUserName;
201 DWORD dwUserNameLength;
202 LPSTR lpszPassword;
203 DWORD dwPasswordLength;
204 LPSTR lpszUrlPath;
205 DWORD dwUrlPathLength;
206 LPSTR lpszExtraInfo;
207 DWORD dwExtraInfoLength;
208 } URL_COMPONENTSA,* LPURL_COMPONENTSA;
209
210 typedef struct {
211 DWORD dwStructSize;
212 LPWSTR lpszScheme;
213 DWORD dwSchemeLength;
214 INTERNET_SCHEME nScheme;
215 LPWSTR lpszHostName;
216 DWORD dwHostNameLength;
217 INTERNET_PORT nPort;
218 LPWSTR lpszUserName;
219 DWORD dwUserNameLength;
220 LPWSTR lpszPassword;
221 DWORD dwPasswordLength;
222 LPWSTR lpszUrlPath;
223 DWORD dwUrlPathLength;
224 LPWSTR lpszExtraInfo;
225 DWORD dwExtraInfoLength;
226 } URL_COMPONENTSW,* LPURL_COMPONENTSW;
227
228 DECL_WINELIB_TYPE_AW(URL_COMPONENTS)
229 DECL_WINELIB_TYPE_AW(LPURL_COMPONENTS)
230
231 typedef struct {
232 FILETIME ftExpiry;
233 FILETIME ftStart;
234 LPSTR lpszSubjectInfo;
235 LPSTR lpszIssuerInfo;
236 LPSTR lpszProtocolName;
237 LPSTR lpszSignatureAlgName;
238 LPSTR lpszEncryptionAlgName;
239 DWORD dwKeySize;
240
241 } INTERNET_CERTIFICATE_INFOA,* LPINTERNET_CERTIFICATE_INFOA;
242
243 typedef struct {
244 FILETIME ftExpiry;
245 FILETIME ftStart;
246 LPWSTR lpszSubjectInfo;
247 LPWSTR lpszIssuerInfo;
248 LPWSTR lpszProtocolName;
249 LPWSTR lpszSignatureAlgName;
250 LPWSTR lpszEncryptionAlgName;
251 DWORD dwKeySize;
252
253 } INTERNET_CERTIFICATE_INFOW,* LPINTERNET_CERTIFICATE_INFOW;
254
255 DECL_WINELIB_TYPE_AW(INTERNET_CERTIFICATE_INFO)
256 DECL_WINELIB_TYPE_AW(LPINTERNET_CERTIFICATE_INFO)
257
258 typedef struct _INTERNET_BUFFERSA {
259 DWORD dwStructSize;
260 struct _INTERNET_BUFFERSA * Next;
261 LPCSTR lpcszHeader;
262 DWORD dwHeadersLength;
263 DWORD dwHeadersTotal;
264 LPVOID lpvBuffer;
265 DWORD dwBufferLength;
266 DWORD dwBufferTotal;
267 DWORD dwOffsetLow;
268 DWORD dwOffsetHigh;
269 } INTERNET_BUFFERSA,* LPINTERNET_BUFFERSA;
270
271 typedef struct _INTERNET_BUFFERSW {
272 DWORD dwStructSize;
273 struct _INTERNET_BUFFERSW * Next;
274 LPCWSTR lpcszHeader;
275 DWORD dwHeadersLength;
276 DWORD dwHeadersTotal;
277 LPVOID lpvBuffer;
278 DWORD dwBufferLength;
279 DWORD dwBufferTotal;
280 DWORD dwOffsetLow;
281 DWORD dwOffsetHigh;
282 } INTERNET_BUFFERSW,* LPINTERNET_BUFFERSW;
283
284 DECL_WINELIB_TYPE_AW(INTERNET_BUFFERS)
285 DECL_WINELIB_TYPE_AW(LPINTERNET_BUFFERS)
286
287 #define GROUP_OWNER_STORAGE_SIZE 4
288 #define GROUPNAME_MAX_LENGTH 120
289
290 typedef struct _INTERNET_CACHE_GROUP_INFOA {
291 DWORD dwGroupSize;
292 DWORD dwGroupFlags;
293 DWORD dwGroupType;
294 DWORD dwDiskUsage;
295 DWORD dwDiskQuota;
296 DWORD dwOwnerStorage[GROUP_OWNER_STORAGE_SIZE];
297 CHAR szGroupName[GROUPNAME_MAX_LENGTH];
298 } INTERNET_CACHE_GROUP_INFOA, * LPINTERNET_CACHE_GROUP_INFOA;
299
300 typedef struct _INTERNET_CACHE_GROUP_INFOW {
301 DWORD dwGroupSize;
302 DWORD dwGroupFlags;
303 DWORD dwGroupType;
304 DWORD dwDiskUsage;
305 DWORD dwDiskQuota;
306 DWORD dwOwnerStorage[GROUP_OWNER_STORAGE_SIZE];
307 WCHAR szGroupName[GROUPNAME_MAX_LENGTH];
308 } INTERNET_CACHE_GROUP_INFOW, *LPINTERNET_CACHE_GROUP_INFOW;
309
310 DECL_WINELIB_TYPE_AW(INTERNET_CACHE_GROUP_INFO)
311 DECL_WINELIB_TYPE_AW(LPINTERNET_CACHE_GROUP_INFO)
312
313 typedef struct _INTERNET_PER_CONN_OPTIONA {
314 DWORD dwOption;
315 union {
316 DWORD dwValue;
317 LPSTR pszValue;
318 FILETIME ftValue;
319 } Value;
320 } INTERNET_PER_CONN_OPTIONA, *LPINTERNET_PER_CONN_OPTIONA;
321
322 typedef struct _INTERNET_PER_CONN_OPTIONW {
323 DWORD dwOption;
324 union {
325 DWORD dwValue;
326 LPWSTR pszValue;
327 FILETIME ftValue;
328 } Value;
329 } INTERNET_PER_CONN_OPTIONW, *LPINTERNET_PER_CONN_OPTIONW;
330
331 DECL_WINELIB_TYPE_AW(INTERNET_PER_CONN_OPTION)
332 DECL_WINELIB_TYPE_AW(LPINTERNET_PER_CONN_OPTION)
333
334 #define INTERNET_PER_CONN_FLAGS 1
335 #define INTERNET_PER_CONN_PROXY_SERVER 2
336 #define INTERNET_PER_CONN_PROXY_BYPASS 3
337 #define INTERNET_PER_CONN_AUTOCONFIG_URL 4
338 #define INTERNET_PER_CONN_AUTODISCOVERY_FLAGS 5
339 #define INTERNET_PER_CONN_AUTOCONFIG_SECONDARY_URL 6
340 #define INTERNET_PER_CONN_AUTOCONFIG_RELOAD_DELAY_MINS 7
341 #define INTERNET_PER_CONN_AUTOCONFIG_LAST_DETECT_TIME 8
342 #define INTERNET_PER_CONN_AUTOCONFIG_LAST_DETECT_URL 9
343
344 /* Values for INTERNET_PER_CONN_FLAGS */
345 #define PROXY_TYPE_DIRECT 0x00000001
346 #define PROXY_TYPE_PROXY 0x00000002
347 #define PROXY_TYPE_AUTO_PROXY_URL 0x00000004
348 #define PROXY_TYPE_AUTO_DETECT 0x00000008
349 /* Values for INTERNET_PER_CONN_AUTODISCOVERY_FLAGS */
350 #define AUTO_PROXY_FLAG_USER_SET 0x00000001
351 #define AUTO_PROXY_FLAG_ALWAYS_DETECT 0x00000002
352 #define AUTO_PROXY_FLAG_DETECTION_RUN 0x00000004
353 #define AUTO_PROXY_FLAG_MIGRATED 0x00000008
354 #define AUTO_PROXY_FLAG_DONT_CACHE_PROXY_RESULT 0x00000010
355 #define AUTO_PROXY_FLAG_CACHE_INIT_RUN 0x00000020
356 #define AUTO_PROXY_FLAG_DETECTION_SUSPECT 0x00000040
357
358 typedef struct _INTERNET_PER_CONN_OPTION_LISTA {
359 DWORD dwSize;
360 LPSTR pszConnection;
361 DWORD dwOptionCount;
362 DWORD dwOptionError;
363 LPINTERNET_PER_CONN_OPTIONA pOptions;
364 } INTERNET_PER_CONN_OPTION_LISTA, *LPINTERNET_PER_CONN_OPTION_LISTA;
365
366 typedef struct _INTERNET_PER_CONN_OPTION_LISTW {
367 DWORD dwSize;
368 LPWSTR pszConnection;
369 DWORD dwOptionCount;
370 DWORD dwOptionError;
371 LPINTERNET_PER_CONN_OPTIONW pOptions;
372 } INTERNET_PER_CONN_OPTION_LISTW, *LPINTERNET_PER_CONN_OPTION_LISTW;
373
374 DECL_WINELIB_TYPE_AW(INTERNET_PER_CONN_OPTION_LIST)
375 DECL_WINELIB_TYPE_AW(LPINTERNET_PER_CONN_OPTION_LIST)
376
377 typedef struct _INTERNET_DIAGNOSTIC_SOCKET_INFO
378 {
379 DWORD_PTR Socket;
380 DWORD SourcePort;
381 DWORD DestPort;
382 DWORD Flags;
383 } INTERNET_DIAGNOSTIC_SOCKET_INFO, *LPINTERNET_DIAGNOSTIC_SOCKET_INFO;
384
385 #define IDSI_FLAG_KEEP_ALIVE 0x00000001
386 #define IDSI_FLAG_SECURE 0x00000002
387 #define IDSI_FLAG_PROXY 0x00000004
388 #define IDSI_FLAG_TUNNEL 0x00000008
389
390 BOOLAPI
391 InternetTimeFromSystemTimeA(
392 _In_ CONST SYSTEMTIME *pst,
393 _In_ DWORD dwRFC,
394 _Out_writes_bytes_(cbTime) LPSTR lpszTime,
395 _In_ DWORD cbTime);
396
397 BOOLAPI
398 InternetTimeFromSystemTimeW(
399 _In_ CONST SYSTEMTIME *pst,
400 _In_ DWORD dwRFC,
401 _Out_writes_bytes_(cbTime) LPWSTR lpszTime,
402 _In_ DWORD cbTime);
403
404 #define InternetTimeFromSystemTime WINELIB_NAME_AW(InternetTimeFromSystemTime)
405
406 #define INTERNET_RFC1123_FORMAT 0
407 #define INTERNET_RFC1123_BUFSIZE 30
408
409 BOOLAPI
410 InternetTimeToSystemTimeA(
411 _In_ LPCSTR,
412 _Out_ SYSTEMTIME *,
413 _Reserved_ DWORD);
414
415 BOOLAPI
416 InternetTimeToSystemTimeW(
417 _In_ LPCWSTR,
418 _Out_ SYSTEMTIME *,
419 _Reserved_ DWORD);
420
421 #define InternetTimeToSystemTime WINELIB_NAME_AW(InternetTimeToSystemTime)
422
423 BOOLAPI
424 InternetCrackUrlA(
425 _In_reads_(dwUrlLength) LPCSTR lpszUrl,
426 _In_ DWORD dwUrlLength,
427 _In_ DWORD dwFlags,
428 _Inout_ LPURL_COMPONENTSA lpUrlComponents);
429
430 BOOLAPI
431 InternetCrackUrlW(
432 _In_reads_(dwUrlLength) LPCWSTR lpszUrl,
433 _In_ DWORD dwUrlLength,
434 _In_ DWORD dwFlags,
435 _Inout_ LPURL_COMPONENTSW lpUrlComponents);
436
437 #define InternetCrackUrl WINELIB_NAME_AW(InternetCrackUrl)
438
439 BOOLAPI
440 InternetCreateUrlA(
441 _In_ LPURL_COMPONENTSA lpUrlComponents,
442 _In_ DWORD dwFlags,
443 _Out_writes_opt_(*lpdwUrlLength) LPSTR lpszUrl,
444 _Inout_ LPDWORD lpdwUrlLength);
445
446 BOOLAPI
447 InternetCreateUrlW(
448 _In_ LPURL_COMPONENTSW lpUrlComponents,
449 _In_ DWORD dwFlags,
450 _Out_writes_opt_(*lpdwUrlLength) LPWSTR lpszUrl,
451 _Inout_ LPDWORD lpdwUrlLength);
452
453 #define InternetCreateUrl WINELIB_NAME_AW(InternetCreateUrl)
454
455 BOOLAPI
456 InternetCanonicalizeUrlA(
457 _In_ LPCSTR lpszUrl,
458 _Out_writes_(*lpdwBufferLength) LPSTR lpszBuffer,
459 _Inout_ LPDWORD lpdwBufferLength,
460 _In_ DWORD dwFlags);
461
462 BOOLAPI
463 InternetCanonicalizeUrlW(
464 _In_ LPCWSTR lpszUrl,
465 _Out_writes_(*lpdwBufferLength) LPWSTR lpszBuffer,
466 _Inout_ LPDWORD lpdwBufferLength,
467 _In_ DWORD dwFlags);
468
469 #define InternetCanonicalizeUrl WINELIB_NAME_AW(InternetCanonicalizeUrl)
470
471 BOOLAPI
472 InternetCombineUrlA(
473 _In_ LPCSTR lpszBaseUrl,
474 _In_ LPCSTR lpszRelativeUrl,
475 _Out_writes_(*lpdwBufferLength) LPSTR lpszBuffer,
476 _Inout_ LPDWORD lpdwBufferLength,
477 _In_ DWORD dwFlags);
478
479 BOOLAPI
480 InternetCombineUrlW(
481 _In_ LPCWSTR lpszBaseUrl,
482 _In_ LPCWSTR lpszRelativeUrl,
483 _Out_writes_(*lpdwBufferLength) LPWSTR lpszBuffer,
484 _Inout_ LPDWORD lpdwBufferLength,
485 _In_ DWORD dwFlags);
486
487 #define InternetCombineUrl WINELIB_NAME_AW(InternetCombineUrl)
488
489 #define ICU_ESCAPE 0x80000000
490 #define ICU_USERNAME 0x40000000
491 #define ICU_NO_ENCODE 0x20000000
492 #define ICU_DECODE 0x10000000
493 #define ICU_NO_META 0x08000000
494 #define ICU_ENCODE_SPACES_ONLY 0x04000000
495 #define ICU_BROWSER_MODE 0x02000000
496 #define ICU_ENCODE_PERCENT 0x00001000
497
498 INTERNETAPI
499 HINTERNET
500 WINAPI
501 InternetOpenA(
502 _In_opt_ LPCSTR,
503 _In_ DWORD,
504 _In_opt_ LPCSTR,
505 _In_opt_ LPCSTR,
506 _In_ DWORD);
507
508 INTERNETAPI
509 HINTERNET
510 WINAPI
511 InternetOpenW(
512 _In_opt_ LPCWSTR,
513 _In_ DWORD,
514 _In_opt_ LPCWSTR,
515 _In_opt_ LPCWSTR,
516 _In_ DWORD);
517
518 #define InternetOpen WINELIB_NAME_AW(InternetOpen)
519
520 #define INTERNET_OPEN_TYPE_PRECONFIG 0
521 #define INTERNET_OPEN_TYPE_DIRECT 1
522 #define INTERNET_OPEN_TYPE_PROXY 3
523 #define INTERNET_OPEN_TYPE_PRECONFIG_WITH_NO_AUTOPROXY 4
524 #define PRE_CONFIG_INTERNET_ACCESS INTERNET_OPEN_TYPE_PRECONFIG
525 #define LOCAL_INTERNET_ACCESS INTERNET_OPEN_TYPE_DIRECT
526 #define CERN_PROXY_INTERNET_ACCESS INTERNET_OPEN_TYPE_PROXY
527
528 BOOLAPI InternetCloseHandle(_In_ HINTERNET);
529
530 INTERNETAPI
531 HINTERNET
532 WINAPI
533 InternetConnectA(
534 _In_ HINTERNET,
535 _In_ LPCSTR,
536 _In_ INTERNET_PORT,
537 _In_opt_ LPCSTR,
538 _In_opt_ LPCSTR,
539 _In_ DWORD,
540 _In_ DWORD,
541 _In_opt_ DWORD_PTR);
542
543 INTERNETAPI
544 HINTERNET
545 WINAPI
546 InternetConnectW(
547 _In_ HINTERNET,
548 _In_ LPCWSTR,
549 _In_ INTERNET_PORT,
550 _In_opt_ LPCWSTR,
551 _In_opt_ LPCWSTR,
552 _In_ DWORD,
553 _In_ DWORD,
554 _In_opt_ DWORD_PTR);
555
556 #define InternetConnect WINELIB_NAME_AW(InternetConnect)
557
558 #define INTERNET_SERVICE_URL 0
559 #define INTERNET_SERVICE_FTP 1
560 #define INTERNET_SERVICE_GOPHER 2
561 #define INTERNET_SERVICE_HTTP 3
562
563 #define InternetConnectUrl(hInternet,lpszUrl,dwFlags,dwContext) \
564 InternetConnect(hInternet,\
565 lpszUrl,\
566 INTERNET_INVALID_PORT_NUMBER,\
567 NULL,\
568 NULL,\
569 INTERNET_SERVICE_URL,\
570 dwFlags,\
571 dwContext \
572 )
573
574 INTERNETAPI
575 HINTERNET
576 WINAPI
577 InternetOpenUrlA(
578 _In_ HINTERNET hInternet,
579 _In_ LPCSTR lpszUrl,
580 _In_reads_opt_(dwHeadersLength) LPCSTR lpszHeaders,
581 _In_ DWORD dwHeadersLength,
582 _In_ DWORD dwFlags,
583 _In_opt_ DWORD_PTR dwContext);
584
585 INTERNETAPI
586 HINTERNET
587 WINAPI
588 InternetOpenUrlW(
589 _In_ HINTERNET hInternet,
590 _In_ LPCWSTR lpszUrl,
591 _In_reads_opt_(dwHeadersLength) LPCWSTR lpszHeaders,
592 _In_ DWORD dwHeadersLength,
593 _In_ DWORD dwFlags,
594 _In_opt_ DWORD_PTR dwContext);
595
596 #define InternetOpenUrl WINELIB_NAME_AW(InternetOpenUrl)
597
598 BOOLAPI
599 InternetReadFile(
600 _In_ HINTERNET hFile,
601 _Out_writes_bytes_(dwNumberOfBytesToRead) __out_data_source(NETWORK) LPVOID lpBuffer,
602 _In_ DWORD dwNumberOfBytesToRead,
603 _Out_ LPDWORD lpdwNumberOfBytesRead);
604
605 BOOLAPI
606 InternetReadFileExA(
607 _In_ HINTERNET hFile,
608 _Out_ __out_data_source(NETWORK) LPINTERNET_BUFFERSA lpBuffersOut,
609 _In_ DWORD dwFlags,
610 _In_opt_ DWORD_PTR dwContext);
611
612 BOOLAPI
613 InternetReadFileExW(
614 _In_ HINTERNET hFile,
615 _Out_ __out_data_source(NETWORK) LPINTERNET_BUFFERSW lpBuffersOut,
616 _In_ DWORD dwFlags,
617 _In_opt_ DWORD_PTR dwContext);
618
619 #define InternetReadFileEx WINELIB_NAME_AW(InternetReadFileEx)
620
621 #define IRF_ASYNC WININET_API_FLAG_ASYNC
622 #define IRF_SYNC WININET_API_FLAG_SYNC
623 #define IRF_USE_CONTEXT WININET_API_FLAG_USE_CONTEXT
624 #define IRF_NO_WAIT 0x00000008
625
626 INTERNETAPI
627 DWORD
628 WINAPI
629 InternetSetFilePointer(
630 _In_ HINTERNET,
631 _In_ LONG,
632 _Inout_opt_ PVOID,
633 _In_ DWORD,
634 _Reserved_ DWORD_PTR);
635
636 BOOLAPI
637 InternetWriteFile(
638 _In_ HINTERNET hFile,
639 _In_reads_bytes_(dwNumberOfBytesToWrite) LPCVOID lpBuffer,
640 _In_ DWORD dwNumberOfBytesToWrite,
641 _Out_ LPDWORD lpdwNumberOfBytesWritten);
642
643 BOOLAPI
644 InternetQueryDataAvailable(
645 _In_ HINTERNET hFile,
646 _Out_opt_ __out_data_source(NETWORK) LPDWORD lpdwNumberOfBytesAvailable,
647 _In_ DWORD dwFlags,
648 _In_opt_ DWORD_PTR dwContext);
649
650 BOOLAPI InternetFindNextFileA(_In_ HINTERNET, _Out_ LPVOID);
651 BOOLAPI InternetFindNextFileW(_In_ HINTERNET, _Out_ LPVOID);
652 #define InternetFindNextFile WINELIB_NAME_AW(InternetFindNextFile)
653
654 BOOLAPI
655 InternetQueryOptionA(
656 _In_opt_ HINTERNET hInternet,
657 _In_ DWORD dwOption,
658 _Out_writes_bytes_to_opt_(*lpdwBufferLength, *lpdwBufferLength) __out_data_source(NETWORK) LPVOID lpBuffer,
659 _Inout_ LPDWORD lpdwBufferLength);
660
661 BOOLAPI
662 InternetQueryOptionW(
663 _In_opt_ HINTERNET hInternet,
664 _In_ DWORD dwOption,
665 _Out_writes_bytes_to_opt_(*lpdwBufferLength, *lpdwBufferLength) __out_data_source(NETWORK) LPVOID lpBuffer,
666 _Inout_ LPDWORD lpdwBufferLength);
667
668 #define InternetQueryOption WINELIB_NAME_AW(InternetQueryOption)
669
670 BOOLAPI InternetSetOptionA(_In_opt_ HINTERNET, _In_ DWORD, _In_opt_ LPVOID, _In_ DWORD);
671 BOOLAPI InternetSetOptionW(_In_opt_ HINTERNET, _In_ DWORD, _In_opt_ LPVOID, _In_ DWORD);
672 #define InternetSetOption WINELIB_NAME_AW(InternetSetOption)
673
674 BOOLAPI
675 InternetSetOptionExA(
676 _In_opt_ HINTERNET,
677 _In_ DWORD,
678 _In_opt_ LPVOID,
679 _In_ DWORD,
680 _In_ DWORD);
681
682 BOOLAPI
683 InternetSetOptionExW(
684 _In_opt_ HINTERNET,
685 _In_ DWORD,
686 _In_opt_ LPVOID,
687 _In_ DWORD,
688 _In_ DWORD);
689
690 #define InternetSetOptionEx WINELIB_NAME_AW(InternetSetOptionEx)
691
692 BOOLAPI InternetLockRequestFile(_In_ HINTERNET, _Out_ HANDLE *);
693 BOOLAPI InternetUnlockRequestFile(_Inout_ HANDLE);
694
695 #define ISO_GLOBAL 0x00000001
696 #define ISO_REGISTRY 0x00000002
697
698 #define ISO_VALID_FLAGS (ISO_GLOBAL | ISO_REGISTRY)
699 #define INTERNET_OPTION_CALLBACK 1
700 #define INTERNET_OPTION_CONNECT_TIMEOUT 2
701 #define INTERNET_OPTION_CONNECT_RETRIES 3
702 #define INTERNET_OPTION_CONNECT_BACKOFF 4
703 #define INTERNET_OPTION_SEND_TIMEOUT 5
704 #define INTERNET_OPTION_CONTROL_SEND_TIMEOUT INTERNET_OPTION_SEND_TIMEOUT
705 #define INTERNET_OPTION_RECEIVE_TIMEOUT 6
706 #define INTERNET_OPTION_CONTROL_RECEIVE_TIMEOUT INTERNET_OPTION_RECEIVE_TIMEOUT
707 #define INTERNET_OPTION_DATA_SEND_TIMEOUT 7
708 #define INTERNET_OPTION_DATA_RECEIVE_TIMEOUT 8
709 #define INTERNET_OPTION_HANDLE_TYPE 9
710 #define INTERNET_OPTION_LISTEN_TIMEOUT 11
711 #define INTERNET_OPTION_READ_BUFFER_SIZE 12
712 #define INTERNET_OPTION_WRITE_BUFFER_SIZE 13
713 #define INTERNET_OPTION_ASYNC_ID 15
714 #define INTERNET_OPTION_ASYNC_PRIORITY 16
715 #define INTERNET_OPTION_PARENT_HANDLE 21
716 #define INTERNET_OPTION_KEEP_CONNECTION 22
717 #define INTERNET_OPTION_REQUEST_FLAGS 23
718 #define INTERNET_OPTION_EXTENDED_ERROR 24
719 #define INTERNET_OPTION_OFFLINE_MODE 26
720 #define INTERNET_OPTION_CACHE_STREAM_HANDLE 27
721 #define INTERNET_OPTION_USERNAME 28
722 #define INTERNET_OPTION_PASSWORD 29
723 #define INTERNET_OPTION_ASYNC 30
724 #define INTERNET_OPTION_SECURITY_FLAGS 31
725 #define INTERNET_OPTION_SECURITY_CERTIFICATE_STRUCT 32
726 #define INTERNET_OPTION_DATAFILE_NAME 33
727 #define INTERNET_OPTION_URL 34
728 #define INTERNET_OPTION_SECURITY_CERTIFICATE 35
729 #define INTERNET_OPTION_SECURITY_KEY_BITNESS 36
730 #define INTERNET_OPTION_REFRESH 37
731 #define INTERNET_OPTION_PROXY 38
732 #define INTERNET_OPTION_SETTINGS_CHANGED 39
733 #define INTERNET_OPTION_VERSION 40
734 #define INTERNET_OPTION_USER_AGENT 41
735 #define INTERNET_OPTION_END_BROWSER_SESSION 42
736 #define INTERNET_OPTION_PROXY_USERNAME 43
737 #define INTERNET_OPTION_PROXY_PASSWORD 44
738 #define INTERNET_OPTION_CONTEXT_VALUE 45
739 #define INTERNET_OPTION_CONNECT_LIMIT 46
740 #define INTERNET_OPTION_SECURITY_SELECT_CLIENT_CERT 47
741 #define INTERNET_OPTION_POLICY 48
742 #define INTERNET_OPTION_DISCONNECTED_TIMEOUT 49
743 #define INTERNET_OPTION_CONNECTED_STATE 50
744 #define INTERNET_OPTION_IDLE_STATE 51
745 #define INTERNET_OPTION_OFFLINE_SEMANTICS 52
746 #define INTERNET_OPTION_SECONDARY_CACHE_KEY 53
747 #define INTERNET_OPTION_CALLBACK_FILTER 54
748 #define INTERNET_OPTION_CONNECT_TIME 55
749 #define INTERNET_OPTION_SEND_THROUGHPUT 56
750 #define INTERNET_OPTION_RECEIVE_THROUGHPUT 57
751 #define INTERNET_OPTION_REQUEST_PRIORITY 58
752 #define INTERNET_OPTION_HTTP_VERSION 59
753 #define INTERNET_OPTION_RESET_URLCACHE_SESSION 60
754 #define INTERNET_OPTION_ERROR_MASK 62
755 #define INTERNET_OPTION_FROM_CACHE_TIMEOUT 63
756 #define INTERNET_OPTION_BYPASS_EDITED_ENTRY 64
757 #define INTERNET_OPTION_HTTP_DECODING 65
758 #define INTERNET_OPTION_DIAGNOSTIC_SOCKET_INFO 67
759 #define INTERNET_OPTION_CODEPAGE 68
760 #define INTERNET_OPTION_CACHE_TIMESTAMPS 69
761 #define INTERNET_OPTION_DISABLE_AUTODIAL 70
762 #define INTERNET_OPTION_MAX_CONNS_PER_SERVER 73
763 #define INTERNET_OPTION_MAX_CONNS_PER_1_0_SERVER 74
764 #define INTERNET_OPTION_PER_CONNECTION_OPTION 75
765 #define INTERNET_OPTION_DIGEST_AUTH_UNLOAD 76
766 #define INTERNET_OPTION_IGNORE_OFFLINE 77
767 #define INTERNET_OPTION_IDENTITY 78
768 #define INTERNET_OPTION_REMOVE_IDENTITY 79
769 #define INTERNET_OPTION_ALTER_IDENTITY 80
770 #define INTERNET_OPTION_SUPPRESS_BEHAVIOR 81
771 #define INTERNET_OPTION_AUTODIAL_MODE 82
772 #define INTERNET_OPTION_AUTODIAL_CONNECTION 83
773 #define INTERNET_OPTION_CLIENT_CERT_CONTEXT 84
774 #define INTERNET_OPTION_AUTH_FLAGS 85
775 #define INTERNET_OPTION_COOKIES_3RD_PARTY 86
776 #define INTERNET_OPTION_DISABLE_PASSPORT_AUTH 87
777 #define INTERNET_OPTION_SEND_UTF8_SERVERNAME_TO_PROXY 88
778 #define INTERNET_OPTION_EXEMPT_CONNECTION_LIMIT 89
779 #define INTERNET_OPTION_ENABLE_PASSPORT_AUTH 90
780
781 #define INTERNET_OPTION_HIBERNATE_INACTIVE_WORKER_THREADS 91
782 #define INTERNET_OPTION_ACTIVATE_WORKER_THREADS 92
783 #define INTERNET_OPTION_RESTORE_WORKER_THREAD_DEFAULTS 93
784 #define INTERNET_OPTION_SOCKET_SEND_BUFFER_LENGTH 94
785
786 #define INTERNET_OPTION_PROXY_SETTINGS_CHANGED 95
787 #define INTERNET_OPTION_DATAFILE_EXT 96
788
789 #define INTERNET_OPTION_CODEPAGE_PATH 100
790 #define INTERNET_OPTION_CODEPAGE_EXTRA 101
791 #define INTERNET_OPTION_IDN 102
792 #define INTERNET_OPTION_MAX_CONNS_PER_PROXY 103
793 #define INTERNET_OPTION_SUPPRESS_SERVER_AUTH 104
794 #define INTERNET_OPTION_SERVER_CERT_CHAIN_CONTEXT 105
795
796
797 #define INTERNET_FIRST_OPTION INTERNET_OPTION_CALLBACK
798 #define INTERNET_LAST_OPTION INTERNET_OPTION_SERVER_CERT_CHAIN_CONTEXT
799
800 #define INTERNET_PRIORITY_FOREGROUND 1000
801 #define INTERNET_HANDLE_TYPE_INTERNET 1
802 #define INTERNET_HANDLE_TYPE_CONNECT_FTP 2
803 #define INTERNET_HANDLE_TYPE_CONNECT_GOPHER 3
804 #define INTERNET_HANDLE_TYPE_CONNECT_HTTP 4
805 #define INTERNET_HANDLE_TYPE_FTP_FIND 5
806 #define INTERNET_HANDLE_TYPE_FTP_FIND_HTML 6
807 #define INTERNET_HANDLE_TYPE_FTP_FILE 7
808 #define INTERNET_HANDLE_TYPE_FTP_FILE_HTML 8
809 #define INTERNET_HANDLE_TYPE_GOPHER_FIND 9
810 #define INTERNET_HANDLE_TYPE_GOPHER_FIND_HTML 10
811 #define INTERNET_HANDLE_TYPE_GOPHER_FILE 11
812 #define INTERNET_HANDLE_TYPE_GOPHER_FILE_HTML 12
813 #define INTERNET_HANDLE_TYPE_HTTP_REQUEST 13
814 #define SECURITY_FLAG_SECURE 0x00000001
815 #define SECURITY_FLAG_STRENGTH_WEAK 0x10000000
816 #define SECURITY_FLAG_STRENGTH_MEDIUM 0x40000000
817 #define SECURITY_FLAG_STRENGTH_STRONG 0x20000000
818 #define SECURITY_FLAG_UNKNOWNBIT 0x80000000
819 #define SECURITY_FLAG_NORMALBITNESS SECURITY_FLAG_STRENGTH_WEAK
820 #define SECURITY_FLAG_SSL 0x00000002
821 #define SECURITY_FLAG_SSL3 0x00000004
822 #define SECURITY_FLAG_PCT 0x00000008
823 #define SECURITY_FLAG_PCT4 0x00000010
824 #define SECURITY_FLAG_IETFSSL4 0x00000020
825 #define SECURITY_FLAG_40BIT SECURITY_FLAG_STRENGTH_WEAK
826 #define SECURITY_FLAG_128BIT SECURITY_FLAG_STRENGTH_STRONG
827 #define SECURITY_FLAG_56BIT SECURITY_FLAG_STRENGTH_MEDIUM
828 #define SECURITY_FLAG_IGNORE_REVOCATION 0x00000080
829 #define SECURITY_FLAG_IGNORE_UNKNOWN_CA 0x00000100
830 #define SECURITY_FLAG_IGNORE_WRONG_USAGE 0x00000200
831 #define SECURITY_FLAG_IGNORE_CERT_CN_INVALID INTERNET_FLAG_IGNORE_CERT_CN_INVALID
832 #define SECURITY_FLAG_IGNORE_CERT_DATE_INVALID INTERNET_FLAG_IGNORE_CERT_DATE_INVALID
833 #define SECURITY_FLAG_IGNORE_REDIRECT_TO_HTTPS INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTPS
834 #define SECURITY_FLAG_IGNORE_REDIRECT_TO_HTTP INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTP
835 #define SECURITY_SET_MASK (SECURITY_FLAG_IGNORE_REVOCATION |\
836 SECURITY_FLAG_IGNORE_UNKNOWN_CA |\
837 SECURITY_FLAG_IGNORE_CERT_CN_INVALID |\
838 SECURITY_FLAG_IGNORE_CERT_DATE_INVALID |\
839 SECURITY_FLAG_IGNORE_WRONG_USAGE)
840
841
842
843 BOOLAPI
844 InternetGetLastResponseInfoA(
845 _Out_ LPDWORD lpdwError,
846 _Out_writes_opt_(*lpdwBufferLength) LPSTR lpszBuffer,
847 _Inout_ LPDWORD lpdwBufferLength);
848
849 BOOLAPI
850 InternetGetLastResponseInfoW(
851 _Out_ LPDWORD lpdwError,
852 _Out_writes_opt_(*lpdwBufferLength) LPWSTR lpszBuffer,
853 _Inout_ LPDWORD lpdwBufferLength);
854
855 #define InternetGetLastResponseInfo WINELIB_NAME_AW(InternetGetLastResponseInfo)
856
857 typedef VOID
858 (CALLBACK *INTERNET_STATUS_CALLBACK)(
859 _In_ HINTERNET,
860 _In_opt_ DWORD_PTR,
861 _In_ DWORD,
862 _In_opt_ LPVOID,
863 _In_ DWORD);
864 typedef INTERNET_STATUS_CALLBACK * LPINTERNET_STATUS_CALLBACK;
865
866 INTERNETAPI
867 INTERNET_STATUS_CALLBACK
868 WINAPI
869 InternetSetStatusCallbackA(
870 _In_ HINTERNET,
871 _In_opt_ INTERNET_STATUS_CALLBACK);
872
873 INTERNETAPI
874 INTERNET_STATUS_CALLBACK
875 WINAPI
876 InternetSetStatusCallbackW(
877 _In_ HINTERNET,
878 _In_opt_ INTERNET_STATUS_CALLBACK);
879
880 #define InternetSetStatusCallback WINELIB_NAME_AW(InternetSetStatusCallback)
881
882 #define INTERNET_STATUS_RESOLVING_NAME 10
883 #define INTERNET_STATUS_NAME_RESOLVED 11
884 #define INTERNET_STATUS_CONNECTING_TO_SERVER 20
885 #define INTERNET_STATUS_CONNECTED_TO_SERVER 21
886 #define INTERNET_STATUS_SENDING_REQUEST 30
887 #define INTERNET_STATUS_REQUEST_SENT 31
888 #define INTERNET_STATUS_RECEIVING_RESPONSE 40
889 #define INTERNET_STATUS_RESPONSE_RECEIVED 41
890 #define INTERNET_STATUS_CTL_RESPONSE_RECEIVED 42
891 #define INTERNET_STATUS_PREFETCH 43
892 #define INTERNET_STATUS_CLOSING_CONNECTION 50
893 #define INTERNET_STATUS_CONNECTION_CLOSED 51
894 #define INTERNET_STATUS_HANDLE_CREATED 60
895 #define INTERNET_STATUS_HANDLE_CLOSING 70
896 #define INTERNET_STATUS_DETECTING_PROXY 80
897 #define INTERNET_STATUS_REQUEST_COMPLETE 100
898 #define INTERNET_STATUS_REDIRECT 110
899 #define INTERNET_STATUS_INTERMEDIATE_RESPONSE 120
900 #define INTERNET_STATUS_USER_INPUT_REQUIRED 140
901 #define INTERNET_STATUS_STATE_CHANGE 200
902 #define INTERNET_STATUS_COOKIE_SENT 320
903 #define INTERNET_STATUS_COOKIE_RECEIVED 321
904 #define INTERNET_STATUS_PRIVACY_IMPACTED 324
905 #define INTERNET_STATUS_P3P_HEADER 325
906 #define INTERNET_STATUS_P3P_POLICYREF 326
907 #define INTERNET_STATUS_COOKIE_HISTORY 327
908 #define INTERNET_STATE_CONNECTED 0x00000001
909 #define INTERNET_STATE_DISCONNECTED 0x00000002
910 #define INTERNET_STATE_DISCONNECTED_BY_USER 0x00000010
911 #define INTERNET_STATE_IDLE 0x00000100
912 #define INTERNET_STATE_BUSY 0x00000200
913
914 #define INTERNET_INVALID_STATUS_CALLBACK ((INTERNET_STATUS_CALLBACK)(-1))
915
916 #define FTP_TRANSFER_TYPE_UNKNOWN 0x00000000
917 #define FTP_TRANSFER_TYPE_ASCII 0x00000001
918 #define FTP_TRANSFER_TYPE_BINARY 0x00000002
919 #define FTP_TRANSFER_TYPE_MASK (FTP_TRANSFER_TYPE_ASCII | FTP_TRANSFER_TYPE_BINARY)
920
921 BOOLAPI
922 FtpCommandA(
923 _In_ HINTERNET,
924 _In_ BOOL,
925 _In_ DWORD,
926 _In_ LPCSTR,
927 _In_opt_ DWORD_PTR,
928 _Out_opt_ HINTERNET *);
929
930 BOOLAPI
931 FtpCommandW(
932 _In_ HINTERNET,
933 _In_ BOOL,
934 _In_ DWORD,
935 _In_ LPCWSTR,
936 _In_opt_ DWORD_PTR,
937 _Out_opt_ HINTERNET *);
938
939 #define FtpCommand WINELIB_NAME_AW(FtpCommand)
940
941 INTERNETAPI
942 HINTERNET
943 WINAPI
944 FtpFindFirstFileA(
945 _In_ HINTERNET,
946 _In_opt_ LPCSTR,
947 _Out_opt_ LPWIN32_FIND_DATAA,
948 _In_ DWORD,
949 _In_opt_ DWORD_PTR);
950
951 INTERNETAPI
952 HINTERNET
953 WINAPI
954 FtpFindFirstFileW(
955 _In_ HINTERNET,
956 _In_opt_ LPCWSTR,
957 _Out_opt_ LPWIN32_FIND_DATAW,
958 _In_ DWORD,
959 _In_opt_ DWORD_PTR);
960
961 #define FtpFindFirstFile WINELIB_NAME_AW(FtpFindFirstFile)
962
963 BOOLAPI
964 FtpGetFileA(
965 _In_ HINTERNET,
966 _In_ LPCSTR,
967 _In_ LPCSTR,
968 _In_ BOOL,
969 _In_ DWORD,
970 _In_ DWORD,
971 _In_opt_ DWORD_PTR);
972
973 BOOLAPI
974 FtpGetFileW(
975 _In_ HINTERNET,
976 _In_ LPCWSTR,
977 _In_ LPCWSTR,
978 _In_ BOOL,
979 _In_ DWORD,
980 _In_ DWORD,
981 _In_opt_ DWORD_PTR);
982
983 #define FtpGetFile WINELIB_NAME_AW(FtpGetFile)
984
985 DWORD WINAPI FtpGetFileSize(_In_ HINTERNET, _Out_opt_ LPDWORD);
986
987 BOOLAPI
988 FtpPutFileA(
989 _In_ HINTERNET,
990 _In_ LPCSTR,
991 _In_ LPCSTR,
992 _In_ DWORD,
993 _In_opt_ DWORD_PTR);
994
995 BOOLAPI
996 FtpPutFileW(
997 _In_ HINTERNET,
998 _In_ LPCWSTR,
999 _In_ LPCWSTR,
1000 _In_ DWORD,
1001 _In_opt_ DWORD_PTR);
1002
1003 #define FtpPutFile WINELIB_NAME_AW(FtpPutFile)
1004
1005 BOOLAPI FtpDeleteFileA(_In_ HINTERNET, _In_ LPCSTR);
1006 BOOLAPI FtpDeleteFileW(_In_ HINTERNET, _In_ LPCWSTR);
1007 #define FtpDeleteFile WINELIB_NAME_AW(FtpDeleteFile)
1008
1009 BOOLAPI FtpRenameFileA(_In_ HINTERNET, _In_ LPCSTR, _In_ LPCSTR);
1010 BOOLAPI FtpRenameFileW(_In_ HINTERNET, _In_ LPCWSTR, _In_ LPCWSTR);
1011 #define FtpRenameFile WINELIB_NAME_AW(FtpRenameFile)
1012
1013 INTERNETAPI
1014 HINTERNET
1015 WINAPI
1016 FtpOpenFileA(
1017 _In_ HINTERNET,
1018 _In_ LPCSTR,
1019 _In_ DWORD,
1020 _In_ DWORD,
1021 _In_opt_ DWORD_PTR);
1022
1023 INTERNETAPI
1024 HINTERNET
1025 WINAPI
1026 FtpOpenFileW(
1027 _In_ HINTERNET,
1028 _In_ LPCWSTR,
1029 _In_ DWORD,
1030 _In_ DWORD,
1031 _In_opt_ DWORD_PTR);
1032
1033 #define FtpOpenFile WINELIB_NAME_AW(FtpOpenFile)
1034
1035 BOOLAPI FtpCreateDirectoryA(_In_ HINTERNET, _In_ LPCSTR);
1036 BOOLAPI FtpCreateDirectoryW(_In_ HINTERNET, _In_ LPCWSTR);
1037 #define FtpCreateDirectory WINELIB_NAME_AW(FtpCreateDirectory)
1038
1039 BOOLAPI FtpRemoveDirectoryA(_In_ HINTERNET, _In_ LPCSTR);
1040 BOOLAPI FtpRemoveDirectoryW(_In_ HINTERNET, _In_ LPCWSTR);
1041 #define FtpRemoveDirectory WINELIB_NAME_AW(FtpRemoveDirectory)
1042
1043 BOOLAPI FtpSetCurrentDirectoryA(_In_ HINTERNET, _In_ LPCSTR);
1044 BOOLAPI FtpSetCurrentDirectoryW(_In_ HINTERNET, _In_ LPCWSTR);
1045 #define FtpSetCurrentDirectory WINELIB_NAME_AW(FtpSetCurrentDirectory)
1046
1047 BOOLAPI
1048 FtpGetCurrentDirectoryA(
1049 _In_ HINTERNET hConnect,
1050 _Out_writes_(*lpdwCurrentDirectory) LPSTR lpszCurrentDirectory,
1051 _Inout_ LPDWORD lpdwCurrentDirectory);
1052
1053 BOOLAPI
1054 FtpGetCurrentDirectoryW(
1055 _In_ HINTERNET hConnect,
1056 _Out_writes_(*lpdwCurrentDirectory) LPWSTR lpszCurrentDirectory,
1057 _Inout_ LPDWORD lpdwCurrentDirectory);
1058
1059 #define FtpGetCurrentDirectory WINELIB_NAME_AW(FtpGetCurrentDirectory)
1060
1061 #define MAX_GOPHER_DISPLAY_TEXT 128
1062 #define MAX_GOPHER_SELECTOR_TEXT 256
1063 #define MAX_GOPHER_HOST_NAME INTERNET_MAX_HOST_NAME_LENGTH
1064 #define MAX_GOPHER_LOCATOR_LENGTH (1 \
1065 + MAX_GOPHER_DISPLAY_TEXT \
1066 + 1 \
1067 + MAX_GOPHER_SELECTOR_TEXT \
1068 + 1 \
1069 + MAX_GOPHER_HOST_NAME \
1070 + 1 \
1071 + INTERNET_MAX_PORT_NUMBER_LENGTH \
1072 + 1 \
1073 + 1 \
1074 + 2 \
1075 )
1076
1077
1078 typedef struct {
1079 CHAR DisplayString[MAX_GOPHER_DISPLAY_TEXT + 1];
1080 DWORD GopherType;
1081 DWORD SizeLow;
1082 DWORD SizeHigh;
1083 FILETIME LastModificationTime;
1084 CHAR Locator[MAX_GOPHER_LOCATOR_LENGTH + 1];
1085 } GOPHER_FIND_DATAA,* LPGOPHER_FIND_DATAA;
1086
1087 typedef struct {
1088 WCHAR DisplayString[MAX_GOPHER_DISPLAY_TEXT + 1];
1089 DWORD GopherType;
1090 DWORD SizeLow;
1091 DWORD SizeHigh;
1092 FILETIME LastModificationTime;
1093 WCHAR Locator[MAX_GOPHER_LOCATOR_LENGTH + 1];
1094 } GOPHER_FIND_DATAW,* LPGOPHER_FIND_DATAW;
1095
1096 DECL_WINELIB_TYPE_AW(GOPHER_FIND_DATA)
1097 DECL_WINELIB_TYPE_AW(LPGOPHER_FIND_DATA)
1098
1099 #define GOPHER_TYPE_TEXT_FILE 0x00000001
1100 #define GOPHER_TYPE_DIRECTORY 0x00000002
1101 #define GOPHER_TYPE_CSO 0x00000004
1102 #define GOPHER_TYPE_ERROR 0x00000008
1103 #define GOPHER_TYPE_MAC_BINHEX 0x00000010
1104 #define GOPHER_TYPE_DOS_ARCHIVE 0x00000020
1105 #define GOPHER_TYPE_UNIX_UUENCODED 0x00000040
1106 #define GOPHER_TYPE_INDEX_SERVER 0x00000080
1107 #define GOPHER_TYPE_TELNET 0x00000100
1108 #define GOPHER_TYPE_BINARY 0x00000200
1109 #define GOPHER_TYPE_REDUNDANT 0x00000400
1110 #define GOPHER_TYPE_TN3270 0x00000800
1111 #define GOPHER_TYPE_GIF 0x00001000
1112 #define GOPHER_TYPE_IMAGE 0x00002000
1113 #define GOPHER_TYPE_BITMAP 0x00004000
1114 #define GOPHER_TYPE_MOVIE 0x00008000
1115 #define GOPHER_TYPE_SOUND 0x00010000
1116 #define GOPHER_TYPE_HTML 0x00020000
1117 #define GOPHER_TYPE_PDF 0x00040000
1118 #define GOPHER_TYPE_CALENDAR 0x00080000
1119 #define GOPHER_TYPE_INLINE 0x00100000
1120 #define GOPHER_TYPE_UNKNOWN 0x20000000
1121 #define GOPHER_TYPE_ASK 0x40000000
1122 #define GOPHER_TYPE_GOPHER_PLUS 0x80000000
1123
1124 #define IS_GOPHER_FILE(type) (BOOL)(((type) & GOPHER_TYPE_FILE_MASK) != 0)
1125 #define IS_GOPHER_DIRECTORY(type) (BOOL)(((type) & GOPHER_TYPE_DIRECTORY) != 0)
1126 #define IS_GOPHER_PHONE_SERVER(type) (BOOL)(((type) & GOPHER_TYPE_CSO) != 0)
1127 #define IS_GOPHER_ERROR(type) (BOOL)(((type) & GOPHER_TYPE_ERROR) != 0)
1128 #define IS_GOPHER_INDEX_SERVER(type) (BOOL)(((type) & GOPHER_TYPE_INDEX_SERVER) != 0)
1129 #define IS_GOPHER_TELNET_SESSION(type) (BOOL)(((type) & GOPHER_TYPE_TELNET) != 0)
1130 #define IS_GOPHER_BACKUP_SERVER(type) (BOOL)(((type) & GOPHER_TYPE_REDUNDANT) != 0)
1131 #define IS_GOPHER_TN3270_SESSION(type) (BOOL)(((type) & GOPHER_TYPE_TN3270) != 0)
1132 #define IS_GOPHER_ASK(type) (BOOL)(((type) & GOPHER_TYPE_ASK) != 0)
1133 #define IS_GOPHER_PLUS(type) (BOOL)(((type) & GOPHER_TYPE_GOPHER_PLUS) != 0)
1134 #define IS_GOPHER_TYPE_KNOWN(type) (BOOL)(!((type) & GOPHER_TYPE_UNKNOWN))
1135 #define GOPHER_TYPE_FILE_MASK (GOPHER_TYPE_TEXT_FILE \
1136 | GOPHER_TYPE_MAC_BINHEX \
1137 | GOPHER_TYPE_DOS_ARCHIVE \
1138 | GOPHER_TYPE_UNIX_UUENCODED \
1139 | GOPHER_TYPE_BINARY \
1140 | GOPHER_TYPE_GIF \
1141 | GOPHER_TYPE_IMAGE \
1142 | GOPHER_TYPE_BITMAP \
1143 | GOPHER_TYPE_MOVIE \
1144 | GOPHER_TYPE_SOUND \
1145 | GOPHER_TYPE_HTML \
1146 | GOPHER_TYPE_PDF \
1147 | GOPHER_TYPE_CALENDAR \
1148 | GOPHER_TYPE_INLINE \
1149 )
1150
1151
1152 typedef struct {
1153 LPCSTR Comment;
1154 LPCSTR EmailAddress;
1155 } GOPHER_ADMIN_ATTRIBUTE_TYPEA,* LPGOPHER_ADMIN_ATTRIBUTE_TYPEA;
1156
1157 typedef struct {
1158 LPCWSTR Comment;
1159 LPCWSTR EmailAddress;
1160 } GOPHER_ADMIN_ATTRIBUTE_TYPEW,* LPGOPHER_ADMIN_ATTRIBUTE_TYPEW;
1161
1162 DECL_WINELIB_TYPE_AW(GOPHER_ADMIN_ATTRIBUTE_TYPE)
1163 DECL_WINELIB_TYPE_AW(LPGOPHER_ADMIN_ATTRIBUTE_TYPE)
1164
1165 typedef struct {
1166 FILETIME DateAndTime;
1167 } GOPHER_MOD_DATE_ATTRIBUTE_TYPE,* LPGOPHER_MOD_DATE_ATTRIBUTE_TYPE;
1168
1169 typedef struct {
1170 DWORD Ttl;
1171 } GOPHER_TTL_ATTRIBUTE_TYPE,* LPGOPHER_TTL_ATTRIBUTE_TYPE;
1172
1173 typedef struct {
1174 INT Score;
1175 } GOPHER_SCORE_ATTRIBUTE_TYPE,* LPGOPHER_SCORE_ATTRIBUTE_TYPE;
1176
1177 typedef struct {
1178 INT LowerBound;
1179 INT UpperBound;
1180 } GOPHER_SCORE_RANGE_ATTRIBUTE_TYPE,* LPGOPHER_SCORE_RANGE_ATTRIBUTE_TYPE;
1181
1182 typedef struct {
1183 LPCSTR Site;
1184 } GOPHER_SITE_ATTRIBUTE_TYPEA,* LPGOPHER_SITE_ATTRIBUTE_TYPEA;
1185
1186 typedef struct {
1187 LPCWSTR Site;
1188 } GOPHER_SITE_ATTRIBUTE_TYPEW,* LPGOPHER_SITE_ATTRIBUTE_TYPEW;
1189
1190 DECL_WINELIB_TYPE_AW(GOPHER_SITE_ATTRIBUTE_TYPE)
1191 DECL_WINELIB_TYPE_AW(LPGOPHER_SITE_ATTRIBUTE_TYPE)
1192
1193 typedef struct {
1194 LPCSTR Organization;
1195 } GOPHER_ORGANIZATION_ATTRIBUTE_TYPEA,* LPGOPHER_ORGANIZATION_ATTRIBUTE_TYPEA;
1196
1197 typedef struct {
1198 LPCWSTR Organization;
1199 } GOPHER_ORGANIZATION_ATTRIBUTE_TYPEW,* LPGOPHER_ORGANIZATION_ATTRIBUTE_TYPEW;
1200
1201 DECL_WINELIB_TYPE_AW(GOPHER_ORGANIZATION_ATTRIBUTE_TYPE)
1202 DECL_WINELIB_TYPE_AW(LPGOPHER_ORGANIZATION_ATTRIBUTE_TYPE)
1203
1204 typedef struct {
1205 LPCSTR Location;
1206 } GOPHER_LOCATION_ATTRIBUTE_TYPEA,* LPGOPHER_LOCATION_ATTRIBUTE_TYPEA;
1207
1208 typedef struct {
1209 LPCWSTR Location;
1210 } GOPHER_LOCATION_ATTRIBUTE_TYPEW,* LPGOPHER_LOCATION_ATTRIBUTE_TYPEW;
1211
1212 DECL_WINELIB_TYPE_AW(GOPHER_LOCATION_ATTRIBUTE_TYPE)
1213 DECL_WINELIB_TYPE_AW(LPGOPHER_LOCATION_ATTRIBUTE_TYPE)
1214
1215 typedef struct {
1216 INT DegreesNorth;
1217 INT MinutesNorth;
1218 INT SecondsNorth;
1219 INT DegreesEast;
1220 INT MinutesEast;
1221 INT SecondsEast;
1222 } GOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE,* LPGOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE;
1223
1224 typedef struct {
1225 INT Zone;
1226 } GOPHER_TIMEZONE_ATTRIBUTE_TYPE,* LPGOPHER_TIMEZONE_ATTRIBUTE_TYPE;
1227
1228 typedef struct {
1229 LPCSTR Provider;
1230 } GOPHER_PROVIDER_ATTRIBUTE_TYPEA,* LPGOPHER_PROVIDER_ATTRIBUTE_TYPEA;
1231
1232 typedef struct {
1233 LPCWSTR Provider;
1234 } GOPHER_PROVIDER_ATTRIBUTE_TYPEW,* LPGOPHER_PROVIDER_ATTRIBUTE_TYPEW;
1235
1236 DECL_WINELIB_TYPE_AW(GOPHER_PROVIDER_ATTRIBUTE_TYPE)
1237 DECL_WINELIB_TYPE_AW(LPGOPHER_PROVIDER_ATTRIBUTE_TYPE)
1238
1239 typedef struct {
1240 LPCSTR Version;
1241 } GOPHER_VERSION_ATTRIBUTE_TYPEA,* LPGOPHER_VERSION_ATTRIBUTE_TYPEA;
1242
1243 typedef struct {
1244 LPCWSTR Version;
1245 } GOPHER_VERSION_ATTRIBUTE_TYPEW,* LPGOPHER_VERSION_ATTRIBUTE_TYPEW;
1246
1247 DECL_WINELIB_TYPE_AW(GOPHER_VERSION_ATTRIBUTE_TYPE)
1248 DECL_WINELIB_TYPE_AW(LPGOPHER_VERSION_ATTRIBUTE_TYPE)
1249
1250 typedef struct {
1251 LPCSTR ShortAbstract;
1252 LPCSTR AbstractFile;
1253 } GOPHER_ABSTRACT_ATTRIBUTE_TYPEA,* LPGOPHER_ABSTRACT_ATTRIBUTE_TYPEA;
1254
1255 typedef struct {
1256 LPCWSTR ShortAbstract;
1257 LPCWSTR AbstractFile;
1258 } GOPHER_ABSTRACT_ATTRIBUTE_TYPEW,* LPGOPHER_ABSTRACT_ATTRIBUTE_TYPEW;
1259
1260 DECL_WINELIB_TYPE_AW(GOPHER_ABSTRACT_ATTRIBUTE_TYPE)
1261 DECL_WINELIB_TYPE_AW(LPGOPHER_ABSTRACT_ATTRIBUTE_TYPE)
1262
1263 typedef struct {
1264 LPCSTR ContentType;
1265 LPCSTR Language;
1266 DWORD Size;
1267 } GOPHER_VIEW_ATTRIBUTE_TYPEA,* LPGOPHER_VIEW_ATTRIBUTE_TYPEA;
1268
1269 typedef struct {
1270 LPCWSTR ContentType;
1271 LPCWSTR Language;
1272 DWORD Size;
1273 } GOPHER_VIEW_ATTRIBUTE_TYPEW,* LPGOPHER_VIEW_ATTRIBUTE_TYPEW;
1274
1275 DECL_WINELIB_TYPE_AW(GOPHER_VIEW_ATTRIBUTE_TYPE)
1276 DECL_WINELIB_TYPE_AW(LPGOPHER_VIEW_ATTRIBUTE_TYPE)
1277
1278 typedef struct {
1279 BOOL TreeWalk;
1280 } GOPHER_VERONICA_ATTRIBUTE_TYPE,* LPGOPHER_VERONICA_ATTRIBUTE_TYPE;
1281
1282 typedef struct {
1283 LPCSTR QuestionType;
1284 LPCSTR QuestionText;
1285 } GOPHER_ASK_ATTRIBUTE_TYPEA,* LPGOPHER_ASK_ATTRIBUTE_TYPEA;
1286
1287 typedef struct {
1288 LPCWSTR QuestionType;
1289 LPCWSTR QuestionText;
1290 } GOPHER_ASK_ATTRIBUTE_TYPEW,* LPGOPHER_ASK_ATTRIBUTE_TYPEW;
1291
1292 DECL_WINELIB_TYPE_AW(GOPHER_ASK_ATTRIBUTE_TYPE)
1293 DECL_WINELIB_TYPE_AW(LPGOPHER_ASK_ATTRIBUTE_TYPE)
1294
1295 typedef struct {
1296 LPCSTR Text;
1297 } GOPHER_UNKNOWN_ATTRIBUTE_TYPEA,* LPGOPHER_UNKNOWN_ATTRIBUTE_TYPEA;
1298
1299 typedef struct {
1300 LPCWSTR Text;
1301 } GOPHER_UNKNOWN_ATTRIBUTE_TYPEW,* LPGOPHER_UNKNOWN_ATTRIBUTE_TYPEW;
1302
1303 DECL_WINELIB_TYPE_AW(GOPHER_UNKNOWN_ATTRIBUTE_TYPE)
1304 DECL_WINELIB_TYPE_AW(LPGOPHER_UNKNOWN_ATTRIBUTE_TYPE)
1305
1306 typedef struct {
1307 DWORD CategoryId;
1308 DWORD AttributeId;
1309 union {
1310 GOPHER_ADMIN_ATTRIBUTE_TYPEA Admin;
1311 GOPHER_MOD_DATE_ATTRIBUTE_TYPE ModDate;
1312 GOPHER_TTL_ATTRIBUTE_TYPE Ttl;
1313 GOPHER_SCORE_ATTRIBUTE_TYPE Score;
1314 GOPHER_SCORE_RANGE_ATTRIBUTE_TYPE ScoreRange;
1315 GOPHER_SITE_ATTRIBUTE_TYPEA Site;
1316 GOPHER_ORGANIZATION_ATTRIBUTE_TYPEA Organization;
1317 GOPHER_LOCATION_ATTRIBUTE_TYPEA Location;
1318 GOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE GeographicalLocation;
1319 GOPHER_TIMEZONE_ATTRIBUTE_TYPE TimeZone;
1320 GOPHER_PROVIDER_ATTRIBUTE_TYPEA Provider;
1321 GOPHER_VERSION_ATTRIBUTE_TYPEA Version;
1322 GOPHER_ABSTRACT_ATTRIBUTE_TYPEA Abstract;
1323 GOPHER_VIEW_ATTRIBUTE_TYPEA View;
1324 GOPHER_VERONICA_ATTRIBUTE_TYPE Veronica;
1325 GOPHER_ASK_ATTRIBUTE_TYPEA Ask;
1326 GOPHER_UNKNOWN_ATTRIBUTE_TYPEA Unknown;
1327 } AttributeType;
1328 } GOPHER_ATTRIBUTE_TYPEA, *LPGOPHER_ATTRIBUTE_TYPEA;
1329
1330 typedef struct {
1331 DWORD CategoryId;
1332 DWORD AttributeId;
1333 union {
1334 GOPHER_ADMIN_ATTRIBUTE_TYPEW Admin;
1335 GOPHER_MOD_DATE_ATTRIBUTE_TYPE ModDate;
1336 GOPHER_TTL_ATTRIBUTE_TYPE Ttl;
1337 GOPHER_SCORE_ATTRIBUTE_TYPE Score;
1338 GOPHER_SCORE_RANGE_ATTRIBUTE_TYPE ScoreRange;
1339 GOPHER_SITE_ATTRIBUTE_TYPEW Site;
1340 GOPHER_ORGANIZATION_ATTRIBUTE_TYPEW Organization;
1341 GOPHER_LOCATION_ATTRIBUTE_TYPEW Location;
1342 GOPHER_GEOGRAPHICAL_LOCATION_ATTRIBUTE_TYPE GeographicalLocation;
1343 GOPHER_TIMEZONE_ATTRIBUTE_TYPE TimeZone;
1344 GOPHER_PROVIDER_ATTRIBUTE_TYPEW Provider;
1345 GOPHER_VERSION_ATTRIBUTE_TYPEW Version;
1346 GOPHER_ABSTRACT_ATTRIBUTE_TYPEW Abstract;
1347 GOPHER_VIEW_ATTRIBUTE_TYPEW View;
1348 GOPHER_VERONICA_ATTRIBUTE_TYPE Veronica;
1349 GOPHER_ASK_ATTRIBUTE_TYPEW Ask;
1350 GOPHER_UNKNOWN_ATTRIBUTE_TYPEW Unknown;
1351 } AttributeType;
1352 } GOPHER_ATTRIBUTE_TYPEW, *LPGOPHER_ATTRIBUTE_TYPEW;
1353
1354 DECL_WINELIB_TYPE_AW(GOPHER_ATTRIBUTE_TYPE)
1355 DECL_WINELIB_TYPE_AW(LPGOPHER_ATTRIBUTE_TYPE)
1356
1357 #define MAX_GOPHER_CATEGORY_NAME 128
1358 #define MAX_GOPHER_ATTRIBUTE_NAME 128
1359 #define MIN_GOPHER_ATTRIBUTE_LENGTH 256
1360
1361 #define GOPHER_INFO_CATEGORY TEXT("+INFO")
1362 #define GOPHER_ADMIN_CATEGORY TEXT("+ADMIN")
1363 #define GOPHER_VIEWS_CATEGORY TEXT("+VIEWS")
1364 #define GOPHER_ABSTRACT_CATEGORY TEXT("+ABSTRACT")
1365 #define GOPHER_VERONICA_CATEGORY TEXT("+VERONICA")
1366 #define GOPHER_ADMIN_ATTRIBUTE TEXT("Admin")
1367 #define GOPHER_MOD_DATE_ATTRIBUTE TEXT("Mod-Date")
1368 #define GOPHER_TTL_ATTRIBUTE TEXT("TTL")
1369 #define GOPHER_SCORE_ATTRIBUTE TEXT("Score")
1370 #define GOPHER_RANGE_ATTRIBUTE TEXT("Score-range")
1371 #define GOPHER_SITE_ATTRIBUTE TEXT("Site")
1372 #define GOPHER_ORG_ATTRIBUTE TEXT("Org")
1373 #define GOPHER_LOCATION_ATTRIBUTE TEXT("Loc")
1374 #define GOPHER_GEOG_ATTRIBUTE TEXT("Geog")
1375 #define GOPHER_TIMEZONE_ATTRIBUTE TEXT("TZ")
1376 #define GOPHER_PROVIDER_ATTRIBUTE TEXT("Provider")
1377 #define GOPHER_VERSION_ATTRIBUTE TEXT("Version")
1378 #define GOPHER_ABSTRACT_ATTRIBUTE TEXT("Abstract")
1379 #define GOPHER_VIEW_ATTRIBUTE TEXT("View")
1380 #define GOPHER_TREEWALK_ATTRIBUTE TEXT("treewalk")
1381
1382 #define GOPHER_ATTRIBUTE_ID_BASE 0xabcccc00
1383
1384 #define GOPHER_CATEGORY_ID_ALL (GOPHER_ATTRIBUTE_ID_BASE + 1)
1385 #define GOPHER_CATEGORY_ID_INFO (GOPHER_ATTRIBUTE_ID_BASE + 2)
1386 #define GOPHER_CATEGORY_ID_ADMIN (GOPHER_ATTRIBUTE_ID_BASE + 3)
1387 #define GOPHER_CATEGORY_ID_VIEWS (GOPHER_ATTRIBUTE_ID_BASE + 4)
1388 #define GOPHER_CATEGORY_ID_ABSTRACT (GOPHER_ATTRIBUTE_ID_BASE + 5)
1389 #define GOPHER_CATEGORY_ID_VERONICA (GOPHER_ATTRIBUTE_ID_BASE + 6)
1390 #define GOPHER_CATEGORY_ID_ASK (GOPHER_ATTRIBUTE_ID_BASE + 7)
1391 #define GOPHER_CATEGORY_ID_UNKNOWN (GOPHER_ATTRIBUTE_ID_BASE + 8)
1392
1393 #define GOPHER_ATTRIBUTE_ID_ALL (GOPHER_ATTRIBUTE_ID_BASE + 9)
1394 #define GOPHER_ATTRIBUTE_ID_ADMIN (GOPHER_ATTRIBUTE_ID_BASE + 10)
1395 #define GOPHER_ATTRIBUTE_ID_MOD_DATE (GOPHER_ATTRIBUTE_ID_BASE + 11)
1396 #define GOPHER_ATTRIBUTE_ID_TTL (GOPHER_ATTRIBUTE_ID_BASE + 12)
1397 #define GOPHER_ATTRIBUTE_ID_SCORE (GOPHER_ATTRIBUTE_ID_BASE + 13)
1398 #define GOPHER_ATTRIBUTE_ID_RANGE (GOPHER_ATTRIBUTE_ID_BASE + 14)
1399 #define GOPHER_ATTRIBUTE_ID_SITE (GOPHER_ATTRIBUTE_ID_BASE + 15)
1400 #define GOPHER_ATTRIBUTE_ID_ORG (GOPHER_ATTRIBUTE_ID_BASE + 16)
1401 #define GOPHER_ATTRIBUTE_ID_LOCATION (GOPHER_ATTRIBUTE_ID_BASE + 17)
1402 #define GOPHER_ATTRIBUTE_ID_GEOG (GOPHER_ATTRIBUTE_ID_BASE + 18)
1403 #define GOPHER_ATTRIBUTE_ID_TIMEZONE (GOPHER_ATTRIBUTE_ID_BASE + 19)
1404 #define GOPHER_ATTRIBUTE_ID_PROVIDER (GOPHER_ATTRIBUTE_ID_BASE + 20)
1405 #define GOPHER_ATTRIBUTE_ID_VERSION (GOPHER_ATTRIBUTE_ID_BASE + 21)
1406 #define GOPHER_ATTRIBUTE_ID_ABSTRACT (GOPHER_ATTRIBUTE_ID_BASE + 22)
1407 #define GOPHER_ATTRIBUTE_ID_VIEW (GOPHER_ATTRIBUTE_ID_BASE + 23)
1408 #define GOPHER_ATTRIBUTE_ID_TREEWALK (GOPHER_ATTRIBUTE_ID_BASE + 24)
1409 #define GOPHER_ATTRIBUTE_ID_UNKNOWN (GOPHER_ATTRIBUTE_ID_BASE + 25)
1410
1411 BOOLAPI
1412 GopherCreateLocatorA(
1413 _In_ LPCSTR lpszHost,
1414 _In_ INTERNET_PORT nServerPort,
1415 _In_opt_ LPCSTR lpszDisplayString,
1416 _In_opt_ LPCSTR lpszSelectorString,
1417 _In_ DWORD dwGopherType,
1418 _Out_writes_opt_(*lpdwBufferLength) LPSTR lpszLocator,
1419 _Inout_ LPDWORD lpdwBufferLength);
1420
1421 BOOLAPI
1422 GopherCreateLocatorW(
1423 _In_ LPCWSTR lpszHost,
1424 _In_ INTERNET_PORT nServerPort,
1425 _In_opt_ LPCWSTR lpszDisplayString,
1426 _In_opt_ LPCWSTR lpszSelectorString,
1427 _In_ DWORD dwGopherType,
1428 _Out_writes_opt_(*lpdwBufferLength) LPWSTR lpszLocator,
1429 _Inout_ LPDWORD lpdwBufferLength);
1430
1431 #define GopherCreateLocator WINELIB_NAME_AW(GopherCreateLocator)
1432
1433 BOOLAPI GopherGetLocatorTypeA(_In_ LPCSTR, _Out_ LPDWORD);
1434 BOOLAPI GopherGetLocatorTypeW(_In_ LPCWSTR, _Out_ LPDWORD);
1435 #define GopherGetLocatorType WINELIB_NAME_AW(GopherGetLocatorType)
1436
1437 INTERNETAPI
1438 HINTERNET
1439 WINAPI
1440 GopherFindFirstFileA(
1441 _In_ HINTERNET hConnect,
1442 _In_opt_ LPCSTR lpszLocator,
1443 _In_opt_ LPCSTR lpszSearchString,
1444 _Out_opt_ LPGOPHER_FIND_DATAA lpFindData,
1445 _In_ DWORD dwFlags,
1446 _In_opt_ DWORD_PTR dwContext);
1447
1448 INTERNETAPI
1449 HINTERNET
1450 WINAPI
1451 GopherFindFirstFileW(
1452 _In_ HINTERNET hConnect,
1453 _In_opt_ LPCWSTR lpszLocator,
1454 _In_opt_ LPCWSTR lpszSearchString,
1455 _Out_opt_ LPGOPHER_FIND_DATAW lpFindData,
1456 _In_ DWORD dwFlags,
1457 _In_opt_ DWORD_PTR dwContext);
1458
1459 #define GopherFindFirstFile WINELIB_NAME_AW(GopherFindFirstFile)
1460
1461 INTERNETAPI
1462 HINTERNET
1463 WINAPI
1464 GopherOpenFileA(
1465 _In_ HINTERNET,
1466 _In_ LPCSTR,
1467 _In_opt_ LPCSTR,
1468 _In_ DWORD,
1469 _In_opt_ DWORD_PTR);
1470
1471 INTERNETAPI
1472 HINTERNET
1473 WINAPI
1474 GopherOpenFileW(
1475 _In_ HINTERNET,
1476 _In_ LPCWSTR,
1477 _In_opt_ LPCWSTR,
1478 _In_ DWORD,
1479 _In_opt_ DWORD_PTR);
1480
1481 #define GopherOpenFile WINELIB_NAME_AW(GopherOpenFile)
1482
1483 typedef BOOL
1484 (CALLBACK *GOPHER_ATTRIBUTE_ENUMERATORA)(
1485 _In_ LPGOPHER_ATTRIBUTE_TYPEA,
1486 _In_ DWORD);
1487
1488 typedef BOOL
1489 (CALLBACK *GOPHER_ATTRIBUTE_ENUMERATORW)(
1490 _In_ LPGOPHER_ATTRIBUTE_TYPEW,
1491 _In_ DWORD);
1492
1493 DECL_WINELIB_TYPE_AW(GOPHER_ATTRIBUTE_ENUMERATOR)
1494
1495 BOOLAPI
1496 GopherGetAttributeA(
1497 _In_ HINTERNET hConnect,
1498 _In_ LPCSTR lpszLocator,
1499 _In_opt_ LPCSTR lpszAttributeName,
1500 _At_((LPSTR) lpBuffer, _Out_writes_(dwBufferLength)) LPBYTE lpBuffer,
1501 _In_ DWORD dwBufferLength,
1502 _Out_ LPDWORD lpdwCharactersReturned,
1503 _In_opt_ GOPHER_ATTRIBUTE_ENUMERATORA lpfnEnumerator,
1504 _In_opt_ DWORD_PTR dwContext);
1505
1506 BOOLAPI
1507 GopherGetAttributeW(
1508 _In_ HINTERNET hConnect,
1509 _In_ LPCWSTR lpszLocator,
1510 _In_opt_ LPCWSTR lpszAttributeName,
1511 _At_((LPWSTR) lpBuffer, _Out_writes_(dwBufferLength)) LPBYTE lpBuffer,
1512 _In_ DWORD dwBufferLength,
1513 _Out_ LPDWORD lpdwCharactersReturned,
1514 _In_opt_ GOPHER_ATTRIBUTE_ENUMERATORW lpfnEnumerator,
1515 _In_opt_ DWORD_PTR dwContext);
1516
1517 #define GopherGetAttribute WINELIB_NAME_AW(GopherGetAttribute)
1518
1519 #define HTTP_MAJOR_VERSION 1
1520 #define HTTP_MINOR_VERSION 0
1521 #define HTTP_VERSION TEXT("HTTP/1.0")
1522 #define HTTP_QUERY_MIME_VERSION 0
1523 #define HTTP_QUERY_CONTENT_TYPE 1
1524 #define HTTP_QUERY_CONTENT_TRANSFER_ENCODING 2
1525 #define HTTP_QUERY_CONTENT_ID 3
1526 #define HTTP_QUERY_CONTENT_DESCRIPTION 4
1527 #define HTTP_QUERY_CONTENT_LENGTH 5
1528 #define HTTP_QUERY_CONTENT_LANGUAGE 6
1529 #define HTTP_QUERY_ALLOW 7
1530 #define HTTP_QUERY_PUBLIC 8
1531 #define HTTP_QUERY_DATE 9
1532 #define HTTP_QUERY_EXPIRES 10
1533 #define HTTP_QUERY_LAST_MODIFIED 11
1534 #define HTTP_QUERY_MESSAGE_ID 12
1535 #define HTTP_QUERY_URI 13
1536 #define HTTP_QUERY_DERIVED_FROM 14
1537 #define HTTP_QUERY_COST 15
1538 #define HTTP_QUERY_LINK 16
1539 #define HTTP_QUERY_PRAGMA 17
1540 #define HTTP_QUERY_VERSION 18
1541 #define HTTP_QUERY_STATUS_CODE 19
1542 #define HTTP_QUERY_STATUS_TEXT 20
1543 #define HTTP_QUERY_RAW_HEADERS 21
1544 #define HTTP_QUERY_RAW_HEADERS_CRLF 22
1545 #define HTTP_QUERY_CONNECTION 23
1546 #define HTTP_QUERY_ACCEPT 24
1547 #define HTTP_QUERY_ACCEPT_CHARSET 25
1548 #define HTTP_QUERY_ACCEPT_ENCODING 26
1549 #define HTTP_QUERY_ACCEPT_LANGUAGE 27
1550 #define HTTP_QUERY_AUTHORIZATION 28
1551 #define HTTP_QUERY_CONTENT_ENCODING 29
1552 #define HTTP_QUERY_FORWARDED 30
1553 #define HTTP_QUERY_FROM 31
1554 #define HTTP_QUERY_IF_MODIFIED_SINCE 32
1555 #define HTTP_QUERY_LOCATION 33
1556 #define HTTP_QUERY_ORIG_URI 34
1557 #define HTTP_QUERY_REFERER 35
1558 #define HTTP_QUERY_RETRY_AFTER 36
1559 #define HTTP_QUERY_SERVER 37
1560 #define HTTP_QUERY_TITLE 38
1561 #define HTTP_QUERY_USER_AGENT 39
1562 #define HTTP_QUERY_WWW_AUTHENTICATE 40
1563 #define HTTP_QUERY_PROXY_AUTHENTICATE 41
1564 #define HTTP_QUERY_ACCEPT_RANGES 42
1565 #define HTTP_QUERY_SET_COOKIE 43
1566 #define HTTP_QUERY_COOKIE 44
1567 #define HTTP_QUERY_REQUEST_METHOD 45
1568 #define HTTP_QUERY_REFRESH 46
1569 #define HTTP_QUERY_CONTENT_DISPOSITION 47
1570 #define HTTP_QUERY_AGE 48
1571 #define HTTP_QUERY_CACHE_CONTROL 49
1572 #define HTTP_QUERY_CONTENT_BASE 50
1573 #define HTTP_QUERY_CONTENT_LOCATION 51
1574 #define HTTP_QUERY_CONTENT_MD5 52
1575 #define HTTP_QUERY_CONTENT_RANGE 53
1576 #define HTTP_QUERY_ETAG 54
1577 #define HTTP_QUERY_HOST 55
1578 #define HTTP_QUERY_IF_MATCH 56
1579 #define HTTP_QUERY_IF_NONE_MATCH 57
1580 #define HTTP_QUERY_IF_RANGE 58
1581 #define HTTP_QUERY_IF_UNMODIFIED_SINCE 59
1582 #define HTTP_QUERY_MAX_FORWARDS 60
1583 #define HTTP_QUERY_PROXY_AUTHORIZATION 61
1584 #define HTTP_QUERY_RANGE 62
1585 #define HTTP_QUERY_TRANSFER_ENCODING 63
1586 #define HTTP_QUERY_UPGRADE 64
1587 #define HTTP_QUERY_VARY 65
1588 #define HTTP_QUERY_VIA 66
1589 #define HTTP_QUERY_WARNING 67
1590 #define HTTP_QUERY_EXPECT 68
1591 #define HTTP_QUERY_PROXY_CONNECTION 69
1592 #define HTTP_QUERY_UNLESS_MODIFIED_SINCE 70
1593 #define HTTP_QUERY_ECHO_REQUEST 71
1594 #define HTTP_QUERY_ECHO_REPLY 72
1595 #define HTTP_QUERY_ECHO_HEADERS 73
1596 #define HTTP_QUERY_ECHO_HEADERS_CRLF 74
1597 #define HTTP_QUERY_PROXY_SUPPORT 75
1598 #define HTTP_QUERY_AUTHENTICATION_INFO 76
1599 #define HTTP_QUERY_PASSPORT_URLS 77
1600 #define HTTP_QUERY_PASSPORT_CONFIG 78
1601 #define HTTP_QUERY_MAX 78
1602 #define HTTP_QUERY_CUSTOM 65535
1603 #define HTTP_QUERY_FLAG_REQUEST_HEADERS 0x80000000
1604 #define HTTP_QUERY_FLAG_SYSTEMTIME 0x40000000
1605 #define HTTP_QUERY_FLAG_NUMBER 0x20000000
1606 #define HTTP_QUERY_FLAG_COALESCE 0x10000000
1607 #define HTTP_QUERY_MODIFIER_FLAGS_MASK (HTTP_QUERY_FLAG_REQUEST_HEADERS \
1608 | HTTP_QUERY_FLAG_SYSTEMTIME \
1609 | HTTP_QUERY_FLAG_NUMBER \
1610 | HTTP_QUERY_FLAG_COALESCE \
1611 )
1612 #define HTTP_QUERY_HEADER_MASK (~HTTP_QUERY_MODIFIER_FLAGS_MASK)
1613
1614 #define HTTP_STATUS_CONTINUE 100
1615 #define HTTP_STATUS_SWITCH_PROTOCOLS 101
1616 #define HTTP_STATUS_OK 200
1617 #define HTTP_STATUS_CREATED 201
1618 #define HTTP_STATUS_ACCEPTED 202
1619 #define HTTP_STATUS_PARTIAL 203
1620 #define HTTP_STATUS_NO_CONTENT 204
1621 #define HTTP_STATUS_RESET_CONTENT 205
1622 #define HTTP_STATUS_PARTIAL_CONTENT 206
1623 #define HTTP_STATUS_AMBIGUOUS 300
1624 #define HTTP_STATUS_MOVED 301
1625 #define HTTP_STATUS_REDIRECT 302
1626 #define HTTP_STATUS_REDIRECT_METHOD 303
1627 #define HTTP_STATUS_NOT_MODIFIED 304
1628 #define HTTP_STATUS_USE_PROXY 305
1629 #define HTTP_STATUS_REDIRECT_KEEP_VERB 307
1630 #define HTTP_STATUS_BAD_REQUEST 400
1631 #define HTTP_STATUS_DENIED 401
1632 #define HTTP_STATUS_PAYMENT_REQ 402
1633 #define HTTP_STATUS_FORBIDDEN 403
1634 #define HTTP_STATUS_NOT_FOUND 404
1635 #define HTTP_STATUS_BAD_METHOD 405
1636 #define HTTP_STATUS_NONE_ACCEPTABLE 406
1637 #define HTTP_STATUS_PROXY_AUTH_REQ 407
1638 #define HTTP_STATUS_REQUEST_TIMEOUT 408
1639 #define HTTP_STATUS_CONFLICT 409
1640 #define HTTP_STATUS_GONE 410
1641 #define HTTP_STATUS_LENGTH_REQUIRED 411
1642 #define HTTP_STATUS_PRECOND_FAILED 412
1643 #define HTTP_STATUS_REQUEST_TOO_LARGE 413
1644 #define HTTP_STATUS_URI_TOO_LONG 414
1645 #define HTTP_STATUS_UNSUPPORTED_MEDIA 415
1646 #define HTTP_STATUS_SERVER_ERROR 500
1647 #define HTTP_STATUS_NOT_SUPPORTED 501
1648 #define HTTP_STATUS_BAD_GATEWAY 502
1649 #define HTTP_STATUS_SERVICE_UNAVAIL 503
1650 #define HTTP_STATUS_GATEWAY_TIMEOUT 504
1651 #define HTTP_STATUS_VERSION_NOT_SUP 505
1652 #define HTTP_STATUS_FIRST HTTP_STATUS_CONTINUE
1653 #define HTTP_STATUS_LAST HTTP_STATUS_VERSION_NOT_SUP
1654
1655
1656 INTERNETAPI
1657 HINTERNET
1658 WINAPI
1659 HttpOpenRequestA(
1660 _In_ HINTERNET hConnect,
1661 _In_opt_ LPCSTR lpszVerb,
1662 _In_opt_ LPCSTR lpszObjectName,
1663 _In_opt_ LPCSTR lpszVersion,
1664 _In_opt_ LPCSTR lpszReferrer,
1665 _In_opt_z_ LPCSTR FAR * lplpszAcceptTypes,
1666 _In_ DWORD dwFlags,
1667 _In_opt_ DWORD_PTR dwContext);
1668
1669 INTERNETAPI
1670 HINTERNET
1671 WINAPI HttpOpenRequestW(
1672 _In_ HINTERNET hConnect,
1673 _In_opt_ LPCWSTR lpszVerb,
1674 _In_opt_ LPCWSTR lpszObjectName,
1675 _In_opt_ LPCWSTR lpszVersion,
1676 _In_opt_ LPCWSTR lpszReferrer,
1677 _In_opt_z_ LPCWSTR FAR * lplpszAcceptTypes,
1678 _In_ DWORD dwFlags,
1679 _In_opt_ DWORD_PTR dwContext);
1680
1681 #define HttpOpenRequest WINELIB_NAME_AW(HttpOpenRequest)
1682
1683 BOOLAPI
1684 HttpAddRequestHeadersA(
1685 _In_ HINTERNET hRequest,
1686 _When_(dwHeadersLength == (DWORD) - 1, _In_z_)
1687 _When_(dwHeadersLength != (DWORD) - 1, _In_reads_(dwHeadersLength))
1688 LPCSTR lpszHeaders,
1689 _In_ DWORD dwHeadersLength,
1690 _In_ DWORD dwModifiers);
1691
1692 BOOLAPI
1693 HttpAddRequestHeadersW(
1694 _In_ HINTERNET hRequest,
1695 _When_(dwHeadersLength == (DWORD) - 1, _In_z_)
1696 _When_(dwHeadersLength != (DWORD) - 1, _In_reads_(dwHeadersLength))
1697 LPCWSTR lpszHeaders,
1698 _In_ DWORD dwHeadersLength,
1699 _In_ DWORD dwModifiers);
1700
1701 #define HttpAddRequestHeaders WINELIB_NAME_AW(HttpAddRequestHeaders)
1702
1703 #define HTTP_ADDREQ_INDEX_MASK 0x0000FFFF
1704 #define HTTP_ADDREQ_FLAGS_MASK 0xFFFF0000
1705 #define HTTP_ADDREQ_FLAG_ADD_IF_NEW 0x10000000
1706 #define HTTP_ADDREQ_FLAG_ADD 0x20000000
1707 #define HTTP_ADDREQ_FLAG_COALESCE_WITH_COMMA 0x40000000
1708 #define HTTP_ADDREQ_FLAG_COALESCE_WITH_SEMICOLON 0x01000000
1709 #define HTTP_ADDREQ_FLAG_COALESCE HTTP_ADDREQ_FLAG_COALESCE_WITH_COMMA
1710 #define HTTP_ADDREQ_FLAG_REPLACE 0x80000000
1711
1712 BOOLAPI
1713 HttpSendRequestA(
1714 _In_ HINTERNET hRequest,
1715 _In_reads_opt_(dwHeadersLength) LPCSTR lpszHeaders,
1716 _In_ DWORD dwHeadersLength,
1717 _In_reads_bytes_opt_(dwOptionalLength) LPVOID lpOptional,
1718 _In_ DWORD dwOptionalLength);
1719
1720 BOOLAPI
1721 HttpSendRequestW(
1722 _In_ HINTERNET hRequest,
1723 _In_reads_opt_(dwHeadersLength) LPCWSTR lpszHeaders,
1724 _In_ DWORD dwHeadersLength,
1725 _In_reads_bytes_opt_(dwOptionalLength) LPVOID lpOptional,
1726 _In_ DWORD dwOptionalLength);
1727
1728 #define HttpSendRequest WINELIB_NAME_AW(HttpSendRequest)
1729
1730 BOOLAPI
1731 HttpSendRequestExA(
1732 _In_ HINTERNET,
1733 _In_opt_ LPINTERNET_BUFFERSA,
1734 _Out_opt_ LPINTERNET_BUFFERSA,
1735 _In_ DWORD,
1736 _In_opt_ DWORD_PTR);
1737
1738 BOOLAPI
1739 HttpSendRequestExW(
1740 _In_ HINTERNET,
1741 _In_opt_ LPINTERNET_BUFFERSW,
1742 _Out_opt_ LPINTERNET_BUFFERSW,
1743 _In_ DWORD,
1744 _In_opt_ DWORD_PTR);
1745
1746 #define HttpSendRequestEx WINELIB_NAME_AW(HttpSendRequestEx)
1747
1748 #define HSR_ASYNC WININET_API_FLAG_ASYNC
1749 #define HSR_SYNC WININET_API_FLAG_SYNC
1750 #define HSR_USE_CONTEXT WININET_API_FLAG_USE_CONTEXT
1751 #define HSR_INITIATE 0x00000008
1752 #define HSR_DOWNLOAD 0x00000010
1753 #define HSR_CHUNKED 0x00000020
1754
1755 BOOLAPI
1756 HttpEndRequestA(
1757 _In_ HINTERNET,
1758 _Out_opt_ LPINTERNET_BUFFERSA,
1759 _In_ DWORD,
1760 _In_opt_ DWORD_PTR);
1761
1762 BOOLAPI
1763 HttpEndRequestW(
1764 _In_ HINTERNET,
1765 _Out_opt_ LPINTERNET_BUFFERSW,
1766 _In_ DWORD,
1767 _In_opt_ DWORD_PTR);
1768
1769 #define HttpEndRequest WINELIB_NAME_AW(HttpEndRequest)
1770
1771 BOOLAPI
1772 HttpQueryInfoA(
1773 _In_ HINTERNET hRequest,
1774 _In_ DWORD dwInfoLevel,
1775 _Inout_updates_bytes_to_opt_(*lpdwBufferLength, *lpdwBufferLength) __out_data_source(NETWORK) LPVOID lpBuffer,
1776 _Inout_ LPDWORD lpdwBufferLength,
1777 _Inout_opt_ LPDWORD lpdwIndex);
1778
1779 BOOLAPI
1780 HttpQueryInfoW(
1781 _In_ HINTERNET hRequest,
1782 _In_ DWORD dwInfoLevel,
1783 _Inout_updates_bytes_to_opt_(*lpdwBufferLength, *lpdwBufferLength) __out_data_source(NETWORK) LPVOID lpBuffer,
1784 _Inout_ LPDWORD lpdwBufferLength,
1785 _Inout_opt_ LPDWORD lpdwIndex);
1786
1787 #define HttpQueryInfo WINELIB_NAME_AW(HttpQueryInfo)
1788
1789 BOOLAPI InternetClearAllPerSiteCookieDecisions(VOID);
1790
1791 BOOLAPI
1792 InternetEnumPerSiteCookieDecisionA(
1793 _Out_writes_to_(*pcSiteNameSize, *pcSiteNameSize) LPSTR pszSiteName,
1794 _Inout_ ULONG *pcSiteNameSize,
1795 _Out_ ULONG *pdwDecision,
1796 _In_ ULONG dwIndex);
1797
1798 BOOLAPI
1799 InternetEnumPerSiteCookieDecisionW(
1800 _Out_writes_to_(*pcSiteNameSize, *pcSiteNameSize) LPWSTR pszSiteName,
1801 _Inout_ ULONG *pcSiteNameSize,
1802 _Out_ ULONG *pdwDecision,
1803 _In_ ULONG dwIndex);
1804
1805 #define InternetEnumPerSiteCookieDecision WINELIB_NAME_AW(InternetEnumPerSiteCookieDecision)
1806
1807 #define INTERNET_COOKIE_IS_SECURE 0x00000001
1808 #define INTERNET_COOKIE_IS_SESSION 0x00000002
1809 #define INTERNET_COOKIE_THIRD_PARTY 0x00000010
1810 #define INTERNET_COOKIE_PROMPT_REQUIRED 0x00000020
1811 #define INTERNET_COOKIE_EVALUATE_P3P 0x00000040
1812 #define INTERNET_COOKIE_APPLY_P3P 0x00000080
1813 #define INTERNET_COOKIE_P3P_ENABLED 0x00000100
1814 #define INTERNET_COOKIE_IS_RESTRICTED 0x00000200
1815 #define INTERNET_COOKIE_IE6 0x00000400
1816 #define INTERNET_COOKIE_IS_LEGACY 0x00000800
1817
1818 BOOLAPI
1819 InternetGetCookieExA(
1820 _In_ LPCSTR lpszUrl,
1821 _In_opt_ LPCSTR lpszCookieName,
1822 _In_reads_opt_(*lpdwSize) LPSTR lpszCookieData,
1823 _Inout_ LPDWORD lpdwSize,
1824 _In_ DWORD dwFlags,
1825 _Reserved_ LPVOID lpReserved);
1826
1827 BOOLAPI
1828 InternetGetCookieExW(
1829 _In_ LPCWSTR lpszUrl,
1830 _In_opt_ LPCWSTR lpszCookieName,
1831 _In_reads_opt_(*lpdwSize) LPWSTR lpszCookieData,
1832 _Inout_ LPDWORD lpdwSize,
1833 _In_ DWORD dwFlags,
1834 _Reserved_ LPVOID lpReserved);
1835
1836 #define InternetGetCookieEx WINELIB_NAME_AW(InternetGetCookieEx)
1837
1838 DWORD
1839 WINAPI
1840 InternetSetCookieExA(
1841 _In_ LPCSTR,
1842 _In_opt_ LPCSTR,
1843 _In_ LPCSTR,
1844 _In_ DWORD,
1845 _In_opt_ DWORD_PTR);
1846
1847 DWORD
1848 WINAPI
1849 InternetSetCookieExW(
1850 _In_ LPCWSTR,
1851 _In_opt_ LPCWSTR,
1852 _In_ LPCWSTR,
1853 _In_ DWORD,
1854 _In_opt_ DWORD_PTR);
1855
1856 #define InternetSetCookieEx WINELIB_NAME_AW(InternetSetCookieEx)
1857
1858 BOOLAPI InternetGetPerSiteCookieDecisionA(_In_ LPCSTR, _Out_ ULONG *);
1859 BOOLAPI InternetGetPerSiteCookieDecisionW(_In_ LPCWSTR, _Out_ ULONG *);
1860 #define InternetGetPerSiteCookieDecision WINELIB_NAME_AW(InternetGetPerSiteCookieDecision)
1861
1862 BOOLAPI InternetSetPerSiteCookieDecisionA(_In_ LPCSTR, _In_ DWORD);
1863 BOOLAPI InternetSetPerSiteCookieDecisionW(_In_ LPCWSTR, _In_ DWORD);
1864 #define InternetSetPerSiteCookieDecision WINELIB_NAME_AW(InternetSetPerSiteCookieDecision)
1865
1866 BOOLAPI InternetSetCookieA(_In_ LPCSTR, _In_opt_ LPCSTR, _In_ LPCSTR);
1867 BOOLAPI InternetSetCookieW(_In_ LPCWSTR, _In_opt_ LPCWSTR, _In_ LPCWSTR);
1868 #define InternetSetCookie WINELIB_NAME_AW(InternetSetCookie)
1869
1870 BOOLAPI
1871 InternetGetCookieA(
1872 _In_ LPCSTR lpszUrl,
1873 _In_opt_ LPCSTR lpszCookieName,
1874 _Out_writes_opt_(*lpdwSize) LPSTR lpszCookieData,
1875 _Inout_ LPDWORD lpdwSize);
1876
1877 BOOLAPI
1878 InternetGetCookieW(
1879 _In_ LPCWSTR lpszUrl,
1880 _In_opt_ LPCWSTR lpszCookieName,
1881 _Out_writes_opt_(*lpdwSize) LPWSTR lpszCookieData,
1882 _Inout_ LPDWORD lpdwSize);
1883
1884 #define InternetGetCookie WINELIB_NAME_AW(InternetGetCookie)
1885
1886 INTERNETAPI DWORD WINAPI InternetAttemptConnect(_In_ DWORD);
1887
1888 BOOLAPI InternetCheckConnectionA(_In_ LPCSTR, _In_ DWORD, _In_ DWORD);
1889 BOOLAPI InternetCheckConnectionW(_In_ LPCWSTR, _In_ DWORD, _In_ DWORD);
1890 #define InternetCheckConnection WINELIB_NAME_AW(InternetCheckConnection)
1891
1892 #define FLAG_ICC_FORCE_CONNECTION 0x00000001
1893
1894 #define FLAGS_ERROR_UI_FILTER_FOR_ERRORS 0x01
1895 #define FLAGS_ERROR_UI_FLAGS_CHANGE_OPTIONS 0x02
1896 #define FLAGS_ERROR_UI_FLAGS_GENERATE_DATA 0x04
1897 #define FLAGS_ERROR_UI_FLAGS_NO_UI 0x08
1898 #define FLAGS_ERROR_UI_SERIALIZE_DIALOGS 0x10
1899
1900 DWORD InternetAuthNotifyCallback ( DWORD_PTR ,DWORD ,LPVOID );
1901 typedef DWORD (CALLBACK *PFN_AUTH_NOTIFY) (DWORD_PTR,DWORD,LPVOID);
1902
1903 typedef struct
1904 {
1905 DWORD cbStruct;
1906 DWORD dwOptions;
1907 PFN_AUTH_NOTIFY pfnNotify;
1908 DWORD_PTR dwContext;
1909 }
1910 INTERNET_AUTH_NOTIFY_DATA;
1911
1912
1913 INTERNETAPI
1914 DWORD
1915 WINAPI
1916 InternetErrorDlg(
1917 _In_ HWND,
1918 _Inout_opt_ HINTERNET,
1919 _In_ DWORD,
1920 _In_ DWORD,
1921 _Inout_opt_ LPVOID *);
1922
1923 INTERNETAPI
1924 DWORD
1925 WINAPI
1926 InternetConfirmZoneCrossingA(
1927 _In_ HWND,
1928 _In_ LPSTR,
1929 _In_ LPSTR,
1930 _In_ BOOL);
1931
1932 INTERNETAPI
1933 DWORD
1934 WINAPI
1935 InternetConfirmZoneCrossingW(
1936 _In_ HWND,
1937 _In_ LPWSTR,
1938 _In_ LPWSTR,
1939 _In_ BOOL);
1940
1941 #define InternetConfirmZoneCrossing WINELIB_NAME_AW(InternetConfirmZoneCrossing)
1942
1943 #define PRIVACY_TEMPLATE_NO_COOKIES 0
1944 #define PRIVACY_TEMPLATE_HIGH 1
1945 #define PRIVACY_TEMPLATE_MEDIUM_HIGH 2
1946 #define PRIVACY_TEMPLATE_MEDIUM 3
1947 #define PRIVACY_TEMPLATE_MEDIUM_LOW 4
1948 #define PRIVACY_TEMPLATE_LOW 5
1949 #define PRIVACY_TEMPLATE_CUSTOM 100
1950 #define PRIVACY_TEMPLATE_ADVANCED 101
1951
1952 #define PRIVACY_TEMPLATE_MAX PRIVACY_TEMPLATE_LOW
1953
1954 #define PRIVACY_TYPE_FIRST_PARTY 0
1955 #define PRIVACY_TYPE_THIRD_PARTY 1
1956
1957 INTERNETAPI
1958 DWORD
1959 WINAPI
1960 PrivacySetZonePreferenceW(
1961 _In_ DWORD,
1962 _In_ DWORD,
1963 _In_ DWORD,
1964 _In_opt_ LPCWSTR);
1965
1966 INTERNETAPI
1967 DWORD
1968 WINAPI
1969 PrivacyGetZonePreferenceW(
1970 _In_ DWORD dwZone,
1971 _In_ DWORD dwType,
1972 _Out_opt_ LPDWORD pdwTemplate,
1973 _Out_writes_opt_(*pdwBufferLength) LPWSTR pszBuffer,
1974 _Inout_opt_ LPDWORD pdwBufferLength);
1975
1976 #define INTERNET_ERROR_BASE 12000
1977
1978 #define ERROR_INTERNET_OUT_OF_HANDLES (INTERNET_ERROR_BASE + 1)
1979 #define ERROR_INTERNET_TIMEOUT (INTERNET_ERROR_BASE + 2)
1980 #define ERROR_INTERNET_EXTENDED_ERROR (INTERNET_ERROR_BASE + 3)
1981 #define ERROR_INTERNET_INTERNAL_ERROR (INTERNET_ERROR_BASE + 4)
1982 #define ERROR_INTERNET_INVALID_URL (INTERNET_ERROR_BASE + 5)
1983 #define ERROR_INTERNET_UNRECOGNIZED_SCHEME (INTERNET_ERROR_BASE + 6)
1984 #define ERROR_INTERNET_NAME_NOT_RESOLVED (INTERNET_ERROR_BASE + 7)
1985 #define ERROR_INTERNET_PROTOCOL_NOT_FOUND (INTERNET_ERROR_BASE + 8)
1986 #define ERROR_INTERNET_INVALID_OPTION (INTERNET_ERROR_BASE + 9)
1987 #define ERROR_INTERNET_BAD_OPTION_LENGTH (INTERNET_ERROR_BASE + 10)
1988 #define ERROR_INTERNET_OPTION_NOT_SETTABLE (INTERNET_ERROR_BASE + 11)
1989 #define ERROR_INTERNET_SHUTDOWN (INTERNET_ERROR_BASE + 12)
1990 #define ERROR_INTERNET_INCORRECT_USER_NAME (INTERNET_ERROR_BASE + 13)
1991 #define ERROR_INTERNET_INCORRECT_PASSWORD (INTERNET_ERROR_BASE + 14)
1992 #define ERROR_INTERNET_LOGIN_FAILURE (INTERNET_ERROR_BASE + 15)
1993 #define ERROR_INTERNET_INVALID_OPERATION (INTERNET_ERROR_BASE + 16)
1994 #define ERROR_INTERNET_OPERATION_CANCELLED (INTERNET_ERROR_BASE + 17)
1995 #define ERROR_INTERNET_INCORRECT_HANDLE_TYPE (INTERNET_ERROR_BASE + 18)
1996 #define ERROR_INTERNET_INCORRECT_HANDLE_STATE (INTERNET_ERROR_BASE + 19)
1997 #define ERROR_INTERNET_NOT_PROXY_REQUEST (INTERNET_ERROR_BASE + 20)
1998 #define ERROR_INTERNET_REGISTRY_VALUE_NOT_FOUND (INTERNET_ERROR_BASE + 21)
1999 #define ERROR_INTERNET_BAD_REGISTRY_PARAMETER (INTERNET_ERROR_BASE + 22)
2000 #define ERROR_INTERNET_NO_DIRECT_ACCESS (INTERNET_ERROR_BASE + 23)
2001 #define ERROR_INTERNET_NO_CONTEXT (INTERNET_ERROR_BASE + 24)
2002 #define ERROR_INTERNET_NO_CALLBACK (INTERNET_ERROR_BASE + 25)
2003 #define ERROR_INTERNET_REQUEST_PENDING (INTERNET_ERROR_BASE + 26)
2004 #define ERROR_INTERNET_INCORRECT_FORMAT (INTERNET_ERROR_BASE + 27)
2005 #define ERROR_INTERNET_ITEM_NOT_FOUND (INTERNET_ERROR_BASE + 28)
2006 #define ERROR_INTERNET_CANNOT_CONNECT (INTERNET_ERROR_BASE + 29)
2007 #define ERROR_INTERNET_CONNECTION_ABORTED (INTERNET_ERROR_BASE + 30)
2008 #define ERROR_INTERNET_CONNECTION_RESET (INTERNET_ERROR_BASE + 31)
2009 #define ERROR_INTERNET_FORCE_RETRY (INTERNET_ERROR_BASE + 32)
2010 #define ERROR_INTERNET_INVALID_PROXY_REQUEST (INTERNET_ERROR_BASE + 33)
2011 #define ERROR_INTERNET_NEED_UI (INTERNET_ERROR_BASE + 34)
2012 #define ERROR_INTERNET_HANDLE_EXISTS (INTERNET_ERROR_BASE + 36)
2013 #define ERROR_INTERNET_SEC_CERT_DATE_INVALID (INTERNET_ERROR_BASE + 37)
2014 #define ERROR_INTERNET_SEC_CERT_CN_INVALID (INTERNET_ERROR_BASE + 38)
2015 #define ERROR_INTERNET_HTTP_TO_HTTPS_ON_REDIR (INTERNET_ERROR_BASE + 39)
2016 #define ERROR_INTERNET_HTTPS_TO_HTTP_ON_REDIR (INTERNET_ERROR_BASE + 40)
2017 #define ERROR_INTERNET_MIXED_SECURITY (INTERNET_ERROR_BASE + 41)
2018 #define ERROR_INTERNET_CHG_POST_IS_NON_SECURE (INTERNET_ERROR_BASE + 42)
2019 #define ERROR_INTERNET_POST_IS_NON_SECURE (INTERNET_ERROR_BASE + 43)
2020 #define ERROR_INTERNET_CLIENT_AUTH_CERT_NEEDED (INTERNET_ERROR_BASE + 44)
2021 #define ERROR_INTERNET_INVALID_CA (INTERNET_ERROR_BASE + 45)
2022 #define ERROR_INTERNET_CLIENT_AUTH_NOT_SETUP (INTERNET_ERROR_BASE + 46)
2023 #define ERROR_INTERNET_ASYNC_THREAD_FAILED (INTERNET_ERROR_BASE + 47)
2024 #define ERROR_INTERNET_REDIRECT_SCHEME_CHANGE (INTERNET_ERROR_BASE + 48)
2025 #define ERROR_INTERNET_DIALOG_PENDING (INTERNET_ERROR_BASE + 49)
2026 #define ERROR_INTERNET_RETRY_DIALOG (INTERNET_ERROR_BASE + 50)
2027 #define ERROR_INTERNET_HTTPS_HTTP_SUBMIT_REDIR (INTERNET_ERROR_BASE + 52)
2028 #define ERROR_INTERNET_INSERT_CDROM (INTERNET_ERROR_BASE + 53)
2029 #define ERROR_INTERNET_FORTEZZA_LOGIN_NEEDED (INTERNET_ERROR_BASE + 54)
2030 #define ERROR_INTERNET_SEC_CERT_ERRORS (INTERNET_ERROR_BASE + 55)
2031 #define ERROR_INTERNET_SEC_CERT_NO_REV (INTERNET_ERROR_BASE + 56)
2032 #define ERROR_INTERNET_SEC_CERT_REV_FAILED (INTERNET_ERROR_BASE + 57)
2033 #define ERROR_FTP_TRANSFER_IN_PROGRESS (INTERNET_ERROR_BASE + 110)
2034 #define ERROR_FTP_DROPPED (INTERNET_ERROR_BASE + 111)
2035 #define ERROR_FTP_NO_PASSIVE_MODE (INTERNET_ERROR_BASE + 112)
2036 #define ERROR_GOPHER_PROTOCOL_ERROR (INTERNET_ERROR_BASE + 130)
2037 #define ERROR_GOPHER_NOT_FILE (INTERNET_ERROR_BASE + 131)
2038 #define ERROR_GOPHER_DATA_ERROR (INTERNET_ERROR_BASE + 132)
2039 #define ERROR_GOPHER_END_OF_DATA (INTERNET_ERROR_BASE + 133)
2040 #define ERROR_GOPHER_INVALID_LOCATOR (INTERNET_ERROR_BASE + 134)
2041 #define ERROR_GOPHER_INCORRECT_LOCATOR_TYPE (INTERNET_ERROR_BASE + 135)
2042 #define ERROR_GOPHER_NOT_GOPHER_PLUS (INTERNET_ERROR_BASE + 136)
2043 #define ERROR_GOPHER_ATTRIBUTE_NOT_FOUND (INTERNET_ERROR_BASE + 137)
2044 #define ERROR_GOPHER_UNKNOWN_LOCATOR (INTERNET_ERROR_BASE + 138)
2045 #define ERROR_HTTP_HEADER_NOT_FOUND (INTERNET_ERROR_BASE + 150)
2046 #define ERROR_HTTP_DOWNLEVEL_SERVER (INTERNET_ERROR_BASE + 151)
2047 #define ERROR_HTTP_INVALID_SERVER_RESPONSE (INTERNET_ERROR_BASE + 152)
2048 #define ERROR_HTTP_INVALID_HEADER (INTERNET_ERROR_BASE + 153)
2049 #define ERROR_HTTP_INVALID_QUERY_REQUEST (INTERNET_ERROR_BASE + 154)
2050 #define ERROR_HTTP_HEADER_ALREADY_EXISTS (INTERNET_ERROR_BASE + 155)
2051 #define ERROR_HTTP_REDIRECT_FAILED (INTERNET_ERROR_BASE + 156)
2052 #define ERROR_HTTP_NOT_REDIRECTED (INTERNET_ERROR_BASE + 160)
2053 #define ERROR_HTTP_COOKIE_NEEDS_CONFIRMATION (INTERNET_ERROR_BASE + 161)
2054 #define ERROR_HTTP_COOKIE_DECLINED (INTERNET_ERROR_BASE + 162)
2055 #define ERROR_HTTP_REDIRECT_NEEDS_CONFIRMATION (INTERNET_ERROR_BASE + 168)
2056 #define ERROR_INTERNET_SECURITY_CHANNEL_ERROR (INTERNET_ERROR_BASE + 157)
2057 #define ERROR_INTERNET_UNABLE_TO_CACHE_FILE (INTERNET_ERROR_BASE + 158)
2058 #define ERROR_INTERNET_TCPIP_NOT_INSTALLED (INTERNET_ERROR_BASE + 159)
2059 #define ERROR_INTERNET_DISCONNECTED (INTERNET_ERROR_BASE + 163)
2060 #define ERROR_INTERNET_SERVER_UNREACHABLE (INTERNET_ERROR_BASE + 164)
2061 #define ERROR_INTERNET_PROXY_SERVER_UNREACHABLE (INTERNET_ERROR_BASE + 165)
2062 #define ERROR_INTERNET_BAD_AUTO_PROXY_SCRIPT (INTERNET_ERROR_BASE + 166)
2063 #define ERROR_INTERNET_UNABLE_TO_DOWNLOAD_SCRIPT (INTERNET_ERROR_BASE + 167)
2064 #define ERROR_INTERNET_SEC_INVALID_CERT (INTERNET_ERROR_BASE + 169)
2065 #define ERROR_INTERNET_SEC_CERT_REVOKED (INTERNET_ERROR_BASE + 170)
2066 #define ERROR_INTERNET_FAILED_DUETOSECURITYCHECK (INTERNET_ERROR_BASE + 171)
2067 #define ERROR_INTERNET_NOT_INITIALIZED (INTERNET_ERROR_BASE + 172)
2068 #define ERROR_INTERNET_NEED_MSN_SSPI_PKG (INTERNET_ERROR_BASE + 173)
2069 #define ERROR_INTERNET_LOGIN_FAILURE_DISPLAY_ENTITY_BODY (INTERNET_ERROR_BASE + 174)
2070 #define ERROR_INTERNET_DECODING_FAILED (INTERNET_ERROR_BASE + 175)
2071 #define INTERNET_ERROR_LAST ERROR_INTERNET_DECODING_FAILED
2072
2073
2074 #define NORMAL_CACHE_ENTRY 0x00000001
2075 #define STICKY_CACHE_ENTRY 0x00000004
2076 #define EDITED_CACHE_ENTRY 0x00000008
2077 #define COOKIE_CACHE_ENTRY 0x00100000
2078 #define URLHISTORY_CACHE_ENTRY 0x00200000
2079 #define TRACK_OFFLINE_CACHE_ENTRY 0x00000010
2080 #define TRACK_ONLINE_CACHE_ENTRY 0x00000020
2081 #define SPARSE_CACHE_ENTRY 0x00010000
2082
2083 #define URLCACHE_FIND_DEFAULT_FILTER NORMAL_CACHE_ENTRY \
2084 | COOKIE_CACHE_ENTRY \
2085 | URLHISTORY_CACHE_ENTRY \
2086 | TRACK_OFFLINE_CACHE_ENTRY \
2087 | TRACK_ONLINE_CACHE_ENTRY \
2088 | STICKY_CACHE_ENTRY
2089
2090
2091 typedef struct _INTERNET_CACHE_ENTRY_INFOA {
2092 DWORD dwStructSize;
2093 LPSTR lpszSourceUrlName;
2094 LPSTR lpszLocalFileName;
2095 DWORD CacheEntryType;
2096 DWORD dwUseCount;
2097 DWORD dwHitRate;
2098 DWORD dwSizeLow;
2099 DWORD dwSizeHigh;
2100 FILETIME LastModifiedTime;
2101 FILETIME ExpireTime;
2102 FILETIME LastAccessTime;
2103 FILETIME LastSyncTime;
2104
2105 LPBYTE lpHeaderInfo;
2106 DWORD dwHeaderInfoSize;
2107 LPSTR lpszFileExtension;
2108 union {
2109 DWORD dwReserved;
2110 DWORD dwExemptDelta;
2111 } DUMMYUNIONNAME;
2112 } INTERNET_CACHE_ENTRY_INFOA,* LPINTERNET_CACHE_ENTRY_INFOA;
2113
2114 typedef struct _INTERNET_CACHE_ENTRY_INFOW {
2115 DWORD dwStructSize;
2116 LPWSTR lpszSourceUrlName;
2117 LPWSTR lpszLocalFileName;
2118 DWORD CacheEntryType;
2119 DWORD dwUseCount;
2120 DWORD dwHitRate;
2121 DWORD dwSizeLow;
2122 DWORD dwSizeHigh;
2123 FILETIME LastModifiedTime;
2124 FILETIME ExpireTime;
2125 FILETIME LastAccessTime;
2126 FILETIME LastSyncTime;
2127
2128 LPBYTE lpHeaderInfo;
2129 DWORD dwHeaderInfoSize;
2130 LPWSTR lpszFileExtension;
2131 union {
2132 DWORD dwReserved;
2133 DWORD dwExemptDelta;
2134 } DUMMYUNIONNAME;
2135 } INTERNET_CACHE_ENTRY_INFOW,* LPINTERNET_CACHE_ENTRY_INFOW;
2136
2137 DECL_WINELIB_TYPE_AW(INTERNET_CACHE_ENTRY_INFO)
2138 DECL_WINELIB_TYPE_AW(LPINTERNET_CACHE_ENTRY_INFO)
2139
2140 typedef struct _INTERNET_CACHE_TIMESTAMPS
2141 {
2142 FILETIME ftExpires;
2143 FILETIME ftLastModified;
2144 } INTERNET_CACHE_TIMESTAMPS, *LPINTERNET_CACHE_TIMESTAMPS;
2145
2146 BOOLAPI
2147 CreateUrlCacheEntryA(
2148 _In_ LPCSTR lpszUrlName,
2149 _In_ DWORD dwExpectedFileSize,
2150 _In_opt_ LPCSTR lpszFileExtension,
2151 _Inout_updates_(MAX_PATH) LPSTR lpszFileName,
2152 _In_ DWORD dwReserved);
2153
2154 BOOLAPI
2155 CreateUrlCacheEntryW(
2156 _In_ LPCWSTR lpszUrlName,
2157 _In_ DWORD dwExpectedFileSize,
2158 _In_opt_ LPCWSTR lpszFileExtension,
2159 _Inout_updates_(MAX_PATH) LPWSTR lpszFileName,
2160 _In_ DWORD dwReserved);
2161
2162 #define CreateUrlCacheEntry WINELIB_NAME_AW(CreateUrlCacheEntry)
2163
2164 BOOLAPI
2165 CommitUrlCacheEntryA(
2166 _In_ LPCSTR lpszUrlName,
2167 _In_opt_ LPCSTR lpszLocalFileName,
2168 _In_ FILETIME ExpireTime,
2169 _In_ FILETIME LastModifiedTime,
2170 _In_ DWORD CacheEntryType,
2171 _In_reads_opt_(cchHeaderInfo) LPBYTE lpHeaderInfo,
2172 _In_ DWORD cchHeaderInfo,
2173 _Reserved_ LPCSTR lpszFileExtension,
2174 _In_opt_ LPCSTR lpszOriginalUrl);
2175
2176 BOOLAPI
2177 CommitUrlCacheEntryW(
2178 _In_ LPCWSTR lpszUrlName,
2179 _In_opt_ LPCWSTR lpszLocalFileName,
2180 _In_ FILETIME ExpireTime,
2181 _In_ FILETIME LastModifiedTime,
2182 _In_ DWORD CacheEntryType,
2183 _In_reads_opt_(cchHeaderInfo) LPWSTR lpszHeaderInfo,
2184 _In_ DWORD cchHeaderInfo,
2185 _Reserved_ LPCWSTR lpszFileExtension,
2186 _In_opt_ LPCWSTR lpszOriginalUrl);
2187
2188 #define CommitUrlCacheEntry WINELIB_NAME_AW(CommitUrlCacheEntry)
2189
2190 BOOLAPI ResumeSuspendedDownload(_In_ HINTERNET, _In_ DWORD);
2191
2192 BOOLAPI
2193 RetrieveUrlCacheEntryFileA(
2194 _In_ LPCSTR lpszUrlName,
2195 _Inout_updates_bytes_opt_(*lpcbCacheEntryInfo) LPINTERNET_CACHE_ENTRY_INFOA lpCacheEntryInfo,
2196 _Inout_ LPDWORD lpcbCacheEntryInfo,
2197 _Reserved_ DWORD dwReserved);
2198
2199 BOOLAPI
2200 RetrieveUrlCacheEntryFileW(
2201 _In_ LPCWSTR lpszUrlName,
2202 _Inout_updates_bytes_opt_(*lpcbCacheEntryInfo) LPINTERNET_CACHE_ENTRY_INFOW lpCacheEntryInfo,
2203 _Inout_ LPDWORD lpcbCacheEntryInfo,
2204 _Reserved_ DWORD dwReserved);
2205
2206 #define RetrieveUrlCacheEntryFile WINELIB_NAME_AW(RetrieveUrlCacheEntryFile)
2207
2208 BOOLAPI UnlockUrlCacheEntryFileA(_In_ LPCSTR, _Reserved_ DWORD);
2209 BOOLAPI UnlockUrlCacheEntryFileW(_In_ LPCWSTR, _Reserved_ DWORD);
2210 #define UnlockUrlCacheEntryFile WINELIB_NAME_AW(UnlockUrlCacheEntryFile)
2211
2212 INTERNETAPI
2213 HANDLE
2214 WINAPI
2215 RetrieveUrlCacheEntryStreamA(
2216 _In_ LPCSTR lpszUrlName,
2217 _Inout_updates_bytes_opt_(*lpcbCacheEntryInfo) LPINTERNET_CACHE_ENTRY_INFOA lpCacheEntryInfo,
2218 _Inout_ LPDWORD lpcbCacheEntryInfo,
2219 _In_ BOOL fRandomRead,
2220 _Reserved_ DWORD dwReserved);
2221
2222 INTERNETAPI
2223 HANDLE
2224 WINAPI
2225 RetrieveUrlCacheEntryStreamW(
2226 _In_ LPCWSTR lpszUrlName,
2227 _Inout_updates_bytes_opt_(*lpcbCacheEntryInfo) LPINTERNET_CACHE_ENTRY_INFOW lpCacheEntryInfo,
2228 _Inout_ LPDWORD lpcbCacheEntryInfo,
2229 _In_ BOOL fRandomRead,
2230 _Reserved_ DWORD dwReserved);
2231
2232 #define RetrieveUrlCacheEntryStream WINELIB_NAME_AW(RetrieveUrlCacheEntryStream)
2233
2234 BOOLAPI
2235 ReadUrlCacheEntryStream(
2236 _In_ HANDLE hUrlCacheStream,
2237 _In_ DWORD dwLocation,
2238 _Out_writes_bytes_(*lpdwLen) __out_data_source(NETWORK) LPVOID lpBuffer,
2239 _Inout_ LPDWORD lpdwLen,
2240 _Reserved_ DWORD Reserved);
2241
2242 BOOLAPI UnlockUrlCacheEntryStream(_In_ HANDLE, _Reserved_ DWORD);
2243
2244 BOOLAPI
2245 GetUrlCacheEntryInfoA(
2246 _In_ LPCSTR lpszUrlName,
2247 _Inout_updates_bytes_opt_(*lpcbCacheEntryInfo) LPINTERNET_CACHE_ENTRY_INFOA lpCacheEntryInfo,
2248 _Inout_opt_ LPDWORD lpcbCacheEntryInfo);
2249
2250 BOOLAPI
2251 GetUrlCacheEntryInfoW(
2252 _In_ LPCWSTR lpszUrlName,
2253 _Inout_updates_bytes_opt_(*lpcbCacheEntryInfo) LPINTERNET_CACHE_ENTRY_INFOW lpCacheEntryInfo,
2254 _Inout_opt_ LPDWORD lpcbCacheEntryInfo);
2255
2256 #define GetUrlCacheEntryInfo WINELIB_NAME_AW(GetUrlCacheEntryInfo)
2257
2258 BOOLAPI
2259 GetUrlCacheEntryInfoExA(
2260 _In_ LPCSTR lpszUrl,
2261 _Inout_updates_bytes_opt_(*lpcbCacheEntryInfo) LPINTERNET_CACHE_ENTRY_INFOA lpCacheEntryInfo,
2262 _Inout_opt_ LPDWORD lpcbCacheEntryInfo,
2263 _Reserved_ LPSTR lpszRedirectUrl,
2264 _Reserved_ LPDWORD lpcbRedirectUrl,
2265 _Reserved_ LPVOID lpReserved,
2266 _In_ DWORD dwFlags);
2267
2268 BOOLAPI
2269 GetUrlCacheEntryInfoExW(
2270 _In_ LPCWSTR lpszUrl,
2271 _Inout_updates_bytes_opt_(*lpcbCacheEntryInfo) LPINTERNET_CACHE_ENTRY_INFOW lpCacheEntryInfo,
2272 _Inout_opt_ LPDWORD lpcbCacheEntryInfo,
2273 _Reserved_ LPWSTR lpszRedirectUrl,
2274 _Reserved_ LPDWORD lpcbRedirectUrl,
2275 _Reserved_ LPVOID lpReserved,
2276 _In_ DWORD dwFlags);
2277
2278 #define GetUrlCacheEntryInfoEx WINELIB_NAME_AW(GetUrlCacheEntryInfoEx)
2279
2280 #define CACHE_ENTRY_ATTRIBUTE_FC 0x00000004
2281 #define CACHE_ENTRY_HITRATE_FC 0x00000010
2282 #define CACHE_ENTRY_MODTIME_FC 0x00000040
2283 #define CACHE_ENTRY_EXPTIME_FC 0x00000080
2284 #define CACHE_ENTRY_ACCTIME_FC 0x00000100
2285 #define CACHE_ENTRY_SYNCTIME_FC 0x00000200
2286 #define CACHE_ENTRY_HEADERINFO_FC 0x00000400
2287 #define CACHE_ENTRY_EXEMPT_DELTA_FC 0x00000800
2288
2289
2290 BOOLAPI
2291 SetUrlCacheEntryInfoA(
2292 _In_ LPCSTR,
2293 _In_ LPINTERNET_CACHE_ENTRY_INFOA,
2294 _In_ DWORD);
2295
2296 BOOLAPI
2297 SetUrlCacheEntryInfoW(
2298 _In_ LPCWSTR,
2299 _In_ LPINTERNET_CACHE_ENTRY_INFOW,
2300 _In_ DWORD);
2301
2302 #define SetUrlCacheEntryInfo WINELIB_NAME_AW(SetUrlCacheEntryInfo)
2303
2304 typedef LONGLONG GROUPID;
2305
2306 INTERNETAPI GROUPID WINAPI CreateUrlCacheGroup(_In_ DWORD, _Reserved_ LPVOID);
2307 BOOLAPI DeleteUrlCacheGroup(_In_ GROUPID, _In_ DWORD, _Reserved_ LPVOID);
2308
2309 INTERNETAPI
2310 HANDLE
2311 WINAPI
2312 FindFirstUrlCacheGroup(
2313 _In_ DWORD,
2314 _In_ DWORD,
2315 _Reserved_ LPVOID,
2316 _Reserved_ DWORD,
2317 _Out_ GROUPID*,
2318 _Reserved_ LPVOID);
2319
2320 BOOLAPI FindNextUrlCacheGroup(_In_ HANDLE, _Out_ GROUPID*, _Reserved_ LPVOID);
2321
2322 BOOLAPI
2323 GetUrlCacheGroupAttributeA(
2324 _In_ GROUPID gid,
2325 _Reserved_ DWORD dwFlags,
2326 _In_ DWORD dwAttributes,
2327 _Out_writes_bytes_(*lpcbGroupInfo) LPINTERNET_CACHE_GROUP_INFOA lpGroupInfo,
2328 _Inout_ LPDWORD lpcbGroupInfo,
2329 _Reserved_ LPVOID lpReserved);
2330
2331 BOOLAPI
2332 GetUrlCacheGroupAttributeW(
2333 _In_ GROUPID gid,
2334 _Reserved_ DWORD dwFlags,
2335 _In_ DWORD dwAttributes,
2336 _Out_writes_bytes_(*lpcbGroupInfo) LPINTERNET_CACHE_GROUP_INFOW lpGroupInfo,
2337 _Inout_ LPDWORD lpcbGroupInfo,
2338 _Reserved_ LPVOID lpReserved);
2339
2340 #define GetUrlCacheGroupAttribute WINELIB_NAME_AW(GetUrlCacheGroupAttribute)
2341
2342 #define INTERNET_CACHE_GROUP_ADD 0
2343 #define INTERNET_CACHE_GROUP_REMOVE 1
2344
2345 BOOLAPI
2346 SetUrlCacheEntryGroupA(
2347 _In_ LPCSTR,
2348 _In_ DWORD,
2349 _In_ GROUPID,
2350 _Reserved_ LPBYTE,
2351 _Reserved_ DWORD,
2352 _Reserved_ LPVOID);
2353
2354 BOOLAPI
2355 SetUrlCacheEntryGroupW(
2356 _In_ LPCWSTR,
2357 _In_ DWORD,
2358 _In_ GROUPID,
2359 _Reserved_ LPBYTE,
2360 _Reserved_ DWORD,
2361 _Reserved_ LPVOID);
2362
2363 #define SetUrlCacheEntryGroup WINELIB_NAME_AW(SetUrlCacheEntryGroup)
2364
2365 BOOLAPI
2366 SetUrlCacheGroupAttributeA(
2367 _In_ GROUPID,
2368 _Reserved_ DWORD,
2369 _In_ DWORD,
2370 _In_ LPINTERNET_CACHE_GROUP_INFOA,
2371 _Reserved_ LPVOID);
2372
2373 BOOLAPI
2374 SetUrlCacheGroupAttributeW(
2375 _In_ GROUPID,
2376 _Reserved_ DWORD,
2377 _In_ DWORD,
2378 _In_ LPINTERNET_CACHE_GROUP_INFOW,
2379 _Reserved_ LPVOID);
2380
2381 #define SetUrlCacheGroupAttribute WINELIB_NAME_AW(SetUrlCacheGroupAttribute)
2382
2383 INTERNETAPI
2384 HANDLE
2385 WINAPI
2386 FindFirstUrlCacheEntryExA(
2387 _In_opt_ LPCSTR lpszUrlSearchPattern,
2388 _In_ DWORD dwFlags,
2389 _In_ DWORD dwFilter,
2390 _In_ GROUPID GroupId,
2391 _Inout_updates_bytes_opt_(*lpcbCacheEntryInfo) LPINTERNET_CACHE_ENTRY_INFOA lpFirstCacheEntryInfo,
2392 _Inout_ LPDWORD lpcbCacheEntryInfo,
2393 _Reserved_ LPVOID lpGroupAttributes,
2394 _Reserved_ LPDWORD lpcbGroupAttributes,
2395 _Reserved_ LPVOID lpReserved);
2396
2397 INTERNETAPI
2398 HANDLE
2399 WINAPI
2400 FindFirstUrlCacheEntryExW(
2401 _In_opt_ LPCWSTR lpszUrlSearchPattern,
2402 _In_ DWORD dwFlags,
2403 _In_ DWORD dwFilter,
2404 _In_ GROUPID GroupId,
2405 _Inout_updates_bytes_opt_(*lpcbCacheEntryInfo) LPINTERNET_CACHE_ENTRY_INFOW lpFirstCacheEntryInfo,
2406 _Inout_ LPDWORD lpcbCacheEntryInfo,
2407 _Reserved_ LPVOID lpGroupAttributes,
2408 _Reserved_ LPDWORD lpcbGroupAttributes,
2409 _Reserved_ LPVOID lpReserved);
2410
2411 #define FindFirstUrlCacheEntryEx WINELIB_NAME_AW(FindFirstUrlCacheEntryEx)
2412
2413 BOOLAPI
2414 FindNextUrlCacheEntryExA(
2415 _In_ HANDLE hEnumHandle,
2416 _Inout_updates_bytes_opt_(*lpcbCacheEntryInfo) LPINTERNET_CACHE_ENTRY_INFOA lpNextCacheEntryInfo,
2417 _Inout_ LPDWORD lpcbCacheEntryInfo,
2418 _Reserved_ LPVOID lpGroupAttributes,
2419 _Reserved_ LPDWORD lpcbGroupAttributes,
2420 _Reserved_ LPVOID lpReserved);
2421
2422 BOOLAPI
2423 FindNextUrlCacheEntryExW(
2424 _In_ HANDLE hEnumHandle,
2425 _Inout_updates_bytes_opt_(*lpcbCacheEntryInfo) LPINTERNET_CACHE_ENTRY_INFOW lpNextCacheEntryInfo,
2426 _Inout_ LPDWORD lpcbCacheEntryInfo,
2427 _Reserved_ LPVOID lpGroupAttributes,
2428 _Reserved_ LPDWORD lpcbGroupAttributes,
2429 _Reserved_ LPVOID lpReserved);
2430
2431 #define FindNextUrlCacheEntryEx WINELIB_NAME_AW(FindNextUrlCacheEntryEx)
2432
2433 INTERNETAPI
2434 HANDLE
2435 WINAPI
2436 FindFirstUrlCacheEntryA(
2437 _In_opt_ LPCSTR lpszUrlSearchPattern,
2438 _Inout_updates_bytes_opt_(*lpcbCacheEntryInfo) LPINTERNET_CACHE_ENTRY_INFOA lpFirstCacheEntryInfo,
2439 _Inout_ LPDWORD lpcbCacheEntryInfo);
2440
2441 INTERNETAPI
2442 HANDLE
2443 WINAPI
2444 FindFirstUrlCacheEntryW(
2445 _In_opt_ LPCWSTR lpszUrlSearchPattern,
2446 _Inout_updates_bytes_opt_(*lpcbCacheEntryInfo) LPINTERNET_CACHE_ENTRY_INFOW lpFirstCacheEntryInfo,
2447 _Inout_ LPDWORD lpcbCacheEntryInfo);
2448
2449 #define FindFirstUrlCacheEntry WINELIB_NAME_AW(FindFirstUrlCacheEntry)
2450
2451 BOOLAPI
2452 FindNextUrlCacheEntryA(
2453 _In_ HANDLE hEnumHandle,
2454 _Inout_updates_bytes_opt_(*lpcbCacheEntryInfo) LPINTERNET_CACHE_ENTRY_INFOA lpNextCacheEntryInfo,
2455 _Inout_ LPDWORD lpcbCacheEntryInfo);
2456
2457 BOOLAPI
2458 FindNextUrlCacheEntryW(
2459 _In_ HANDLE hEnumHandle,
2460 _Inout_updates_bytes_opt_(*lpcbCacheEntryInfo) LPINTERNET_CACHE_ENTRY_INFOW lpNextCacheEntryInfo,
2461 _Inout_ LPDWORD lpcbCacheEntryInfo);
2462
2463 #define FindNextUrlCacheEntry WINELIB_NAME_AW(FindNextUrlCacheEntry)
2464
2465 BOOLAPI FindCloseUrlCache(_In_ HANDLE);
2466
2467 BOOLAPI DeleteUrlCacheEntryA(_In_ LPCSTR);
2468 BOOLAPI DeleteUrlCacheEntryW(_In_ LPCWSTR);
2469 #define DeleteUrlCacheEntry WINELIB_NAME_AW(DeleteUrlCacheEntry)
2470
2471 /* FCS_ flags and FreeUrlCacheSpace are no longer documented */
2472 #define FCS_PERCENT_CACHE_SPACE 0 /* guessed value */
2473 #define FCS_PERCENT_DISK_SPACE 1 /* guessed value */
2474 #define FCS_ABSOLUTE_SIZE 2 /* guessed value */
2475
2476 BOOLAPI FreeUrlCacheSpaceA(LPCSTR ,DWORD ,DWORD);
2477 BOOLAPI FreeUrlCacheSpaceW(LPCWSTR ,DWORD ,DWORD);
2478 #define FreeUrlCacheSpace WINELIB_NAME_AW(FreeUrlCacheSpace)
2479
2480 INTERNETAPI
2481 DWORD
2482 WINAPI
2483 InternetDialA(
2484 _In_ HWND,
2485 _In_opt_ LPSTR,
2486 _In_ DWORD,
2487 _Out_ DWORD_PTR*,
2488 _Reserved_ DWORD);
2489
2490 INTERNETAPI
2491 DWORD
2492 WINAPI
2493 InternetDialW(
2494 _In_ HWND,
2495 _In_opt_ LPWSTR,
2496 _In_ DWORD,
2497 _Out_ DWORD_PTR*,
2498 _Reserved_ DWORD);
2499
2500 #define InternetDial WINELIB_NAME_AW(InternetDial)
2501
2502 #define INTERNET_DIAL_UNATTENDED 0x8000
2503
2504 INTERNETAPI DWORD WINAPI InternetHangUp(_In_ DWORD_PTR, _Reserved_ DWORD);
2505 BOOLAPI CreateMD5SSOHash(_In_ PWSTR, _In_ PWSTR, _In_ PWSTR, _Out_ PBYTE);
2506
2507 #define INTERENT_GOONLINE_REFRESH 0x00000001
2508 #define INTERENT_GOONLINE_MASK 0x00000001
2509
2510 BOOLAPI InternetGoOnlineA(_In_opt_ LPSTR, _In_ HWND, _In_ DWORD);
2511 BOOLAPI InternetGoOnlineW(_In_opt_ LPWSTR, _In_ HWND, _In_ DWORD);
2512 #define InternetGoOnline WINELIB_NAME_AW(InternetGoOnline)
2513
2514 BOOLAPI InternetAutodial(_In_ DWORD, _In_opt_ HWND);
2515
2516 #define INTERNET_AUTODIAL_FORCE_ONLINE 1
2517 #define INTERNET_AUTODIAL_FORCE_UNATTENDED 2
2518 #define INTERNET_AUTODIAL_FAILIFSECURITYCHECK 4
2519
2520 #define INTERNET_AUTODIAL_FLAGS_MASK (INTERNET_AUTODIAL_FORCE_ONLINE | INTERNET_AUTODIAL_FORCE_UNATTENDED | INTERNET_AUTODIAL_FAILIFSECURITYCHECK)
2521
2522 BOOLAPI InternetAutodialHangup(_Reserved_ DWORD);
2523 BOOLAPI InternetGetConnectedState(_Out_ LPDWORD, _Reserved_ DWORD);
2524
2525 #define INTERNET_CONNECTION_MODEM 1
2526 #define INTERNET_CONNECTION_LAN 2
2527 #define INTERNET_CONNECTION_PROXY 4
2528 #define INTERNET_CONNECTION_MODEM_BUSY 8
2529
2530 typedef DWORD (CALLBACK *PFN_DIAL_HANDLER) (HWND,LPCSTR,DWORD,LPDWORD);
2531
2532 #define INTERNET_CUSTOMDIAL_CONNECT 0
2533 #define INTERNET_CUSTOMDIAL_UNATTENDED 1
2534 #define INTERNET_CUSTOMDIAL_DISCONNECT 2
2535 #define INTERNET_CUSTOMDIAL_SHOWOFFLINE 4
2536 #define INTERNET_CUSTOMDIAL_SAFE_FOR_UNATTENDED 1
2537 #define INTERNET_CUSTOMDIAL_WILL_SUPPLY_STATE 2
2538 #define INTERNET_CUSTOMDIAL_CAN_HANGUP 4
2539
2540 BOOLAPI InternetSetDialStateA(_In_opt_ LPCSTR, _In_ DWORD, _Reserved_ DWORD);
2541 BOOLAPI InternetSetDialStateW(_In_opt_ LPCWSTR, _In_ DWORD, _Reserved_ DWORD);
2542 #define InternetSetDialState WINELIB_NAME_AW(InternetSetDialState)
2543
2544 #define INTERNET_DIALSTATE_DISCONNECTED 1
2545
2546 BOOLAPI
2547 InternetGetConnectedStateExA(
2548 _Out_opt_ LPDWORD lpdwFlags,
2549 _Out_writes_opt_(cchNameLen) LPSTR lpszConnectionName,
2550 _In_ DWORD cchNameLen,
2551 _Reserved_ DWORD dwReserved);
2552
2553 BOOLAPI
2554 InternetGetConnectedStateExW(
2555 _Out_opt_ LPDWORD lpdwFlags,
2556 _Out_writes_opt_(cchNameLen) LPWSTR lpszConnectionName,
2557 _In_ DWORD cchNameLen,
2558 _Reserved_ DWORD dwReserved);
2559
2560 #define InternetGetConnectedStateEx WINELIB_NAME_AW(InternetGetConnectedStateEx)
2561
2562 typedef struct AutoProxyHelperVtbl
2563 {
2564 BOOL (WINAPI *IsResolvable)(LPSTR);
2565 DWORD (WINAPI *GetIPAddress)(LPSTR, LPDWORD);
2566 DWORD (WINAPI *ResolveHostName)(LPSTR, LPSTR, LPDWORD);
2567 BOOL (WINAPI *IsInNet)(LPSTR, LPSTR, LPSTR);
2568 BOOL (WINAPI *IsResolvableEx)(LPSTR);
2569 DWORD (WINAPI *GetIPAddressEx)(LPSTR, LPDWORD);
2570 DWORD (WINAPI *ResolveHostNameEx)(LPSTR, LPSTR, LPDWORD);
2571 BOOL (WINAPI *IsInNetEx)(LPSTR, LPSTR);
2572 DWORD (WINAPI *SortIpList)(LPSTR, LPSTR, LPDWORD);
2573 } AutoProxyHelperVtbl;
2574
2575 typedef struct AutoProxyHelperFunctions
2576 {
2577 const struct AutoProxyHelperVtbl *lpVtbl;
2578 } AutoProxyHelperFunctions;
2579
2580 typedef struct
2581 {
2582 DWORD dwStructSize;
2583 LPSTR lpszScriptBuffer;
2584 DWORD dwScriptBufferSize;
2585 } AUTO_PROXY_SCRIPT_BUFFER, *LPAUTO_PROXY_SCRIPT_BUFFER;
2586
2587 BOOLAPI InternetInitializeAutoProxyDll(_In_ DWORD);
2588
2589 BOOLAPI
2590 DetectAutoProxyUrl(
2591 _Out_writes_(cchAutoProxyUrl) PSTR pszAutoProxyUrl,
2592 _In_ DWORD cchAutoProxyUrl,
2593 _In_ DWORD dwDetectFlags);
2594
2595 #ifdef __cplusplus
2596 }
2597 #endif
2598
2599 #endif /* _WINE_WININET_H_ */