ReactOS 0.4.15-dev-7924-g5949c20
winhttp.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2007 Francois Gouget
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_WINHTTP_H
20#define __WINE_WINHTTP_H
21
22#ifdef _WIN64
23#include <pshpack8.h>
24#else
25#include <pshpack4.h>
26#endif
27
28#define WINHTTPAPI
29#define BOOLAPI WINHTTPAPI BOOL WINAPI
30
31
34
35#define INTERNET_DEFAULT_PORT 0
36#define INTERNET_DEFAULT_HTTP_PORT 80
37#define INTERNET_DEFAULT_HTTPS_PORT 443
40
41/* Yes, these values contradict wininet.h */
42#define INTERNET_SCHEME_HTTP 1
43#define INTERNET_SCHEME_HTTPS 2
44#define INTERNET_SCHEME_FTP 3
45#define INTERNET_SCHEME_SOCKS 4
47
48#define ICU_ESCAPE 0x80000000
49
50/* flags for WinHttpOpen */
51#define WINHTTP_FLAG_ASYNC 0x10000000
52
53/* flags for WinHttpOpenRequest */
54#define WINHTTP_FLAG_ESCAPE_PERCENT 0x00000004
55#define WINHTTP_FLAG_NULL_CODEPAGE 0x00000008
56#define WINHTTP_FLAG_ESCAPE_DISABLE 0x00000040
57#define WINHTTP_FLAG_ESCAPE_DISABLE_QUERY 0x00000080
58#define WINHTTP_FLAG_BYPASS_PROXY_CACHE 0x00000100
59#define WINHTTP_FLAG_REFRESH WINHTTP_FLAG_BYPASS_PROXY_CACHE
60#define WINHTTP_FLAG_SECURE 0x00800000
61
62#define WINHTTP_ACCESS_TYPE_DEFAULT_PROXY 0
63#define WINHTTP_ACCESS_TYPE_NO_PROXY 1
64#define WINHTTP_ACCESS_TYPE_NAMED_PROXY 3
65
66#define WINHTTP_NO_PROXY_NAME NULL
67#define WINHTTP_NO_PROXY_BYPASS NULL
68
69#define WINHTTP_NO_CLIENT_CERT_CONTEXT NULL
70
71#define WINHTTP_NO_REFERER NULL
72#define WINHTTP_DEFAULT_ACCEPT_TYPES NULL
73
74#define WINHTTP_NO_ADDITIONAL_HEADERS NULL
75#define WINHTTP_NO_REQUEST_DATA NULL
76
77#define WINHTTP_HEADER_NAME_BY_INDEX NULL
78#define WINHTTP_NO_OUTPUT_BUFFER NULL
79#define WINHTTP_NO_HEADER_INDEX NULL
80
81#define WINHTTP_ADDREQ_INDEX_MASK 0x0000FFFF
82#define WINHTTP_ADDREQ_FLAGS_MASK 0xFFFF0000
83#define WINHTTP_ADDREQ_FLAG_ADD_IF_NEW 0x10000000
84#define WINHTTP_ADDREQ_FLAG_ADD 0x20000000
85#define WINHTTP_ADDREQ_FLAG_COALESCE_WITH_COMMA 0x40000000
86#define WINHTTP_ADDREQ_FLAG_COALESCE_WITH_SEMICOLON 0x01000000
87#define WINHTTP_ADDREQ_FLAG_COALESCE WINHTTP_ADDREQ_FLAG_COALESCE_WITH_COMMA
88#define WINHTTP_ADDREQ_FLAG_REPLACE 0x80000000
89
90#define WINHTTP_IGNORE_REQUEST_TOTAL_LENGTH 0
91
92/* flags for WinHttp{Set/Query}Options */
93#define WINHTTP_FIRST_OPTION WINHTTP_OPTION_CALLBACK
94#define WINHTTP_OPTION_CALLBACK 1
95#define WINHTTP_OPTION_RESOLVE_TIMEOUT 2
96#define WINHTTP_OPTION_CONNECT_TIMEOUT 3
97#define WINHTTP_OPTION_CONNECT_RETRIES 4
98#define WINHTTP_OPTION_SEND_TIMEOUT 5
99#define WINHTTP_OPTION_RECEIVE_TIMEOUT 6
100#define WINHTTP_OPTION_RECEIVE_RESPONSE_TIMEOUT 7
101#define WINHTTP_OPTION_HANDLE_TYPE 9
102#define WINHTTP_OPTION_READ_BUFFER_SIZE 12
103#define WINHTTP_OPTION_WRITE_BUFFER_SIZE 13
104#define WINHTTP_OPTION_PARENT_HANDLE 21
105#define WINHTTP_OPTION_EXTENDED_ERROR 24
106#define WINHTTP_OPTION_SECURITY_FLAGS 31
107#define WINHTTP_OPTION_SECURITY_CERTIFICATE_STRUCT 32
108#define WINHTTP_OPTION_URL 34
109#define WINHTTP_OPTION_SECURITY_KEY_BITNESS 36
110#define WINHTTP_OPTION_PROXY 38
111#define WINHTTP_OPTION_USER_AGENT 41
112#define WINHTTP_OPTION_CONTEXT_VALUE 45
113#define WINHTTP_OPTION_CLIENT_CERT_CONTEXT 47
114#define WINHTTP_OPTION_REQUEST_PRIORITY 58
115#define WINHTTP_OPTION_HTTP_VERSION 59
116#define WINHTTP_OPTION_DISABLE_FEATURE 63
117#define WINHTTP_OPTION_CODEPAGE 68
118#define WINHTTP_OPTION_MAX_CONNS_PER_SERVER 73
119#define WINHTTP_OPTION_MAX_CONNS_PER_1_0_SERVER 74
120#define WINHTTP_OPTION_AUTOLOGON_POLICY 77
121#define WINHTTP_OPTION_SERVER_CERT_CONTEXT 78
122#define WINHTTP_OPTION_ENABLE_FEATURE 79
123#define WINHTTP_OPTION_WORKER_THREAD_COUNT 80
124#define WINHTTP_OPTION_PASSPORT_COBRANDING_TEXT 81
125#define WINHTTP_OPTION_PASSPORT_COBRANDING_URL 82
126#define WINHTTP_OPTION_CONFIGURE_PASSPORT_AUTH 83
127#define WINHTTP_OPTION_SECURE_PROTOCOLS 84
128#define WINHTTP_OPTION_ENABLETRACING 85
129#define WINHTTP_OPTION_PASSPORT_SIGN_OUT 86
130#define WINHTTP_OPTION_PASSPORT_RETURN_URL 87
131#define WINHTTP_OPTION_REDIRECT_POLICY 88
132#define WINHTTP_OPTION_MAX_HTTP_AUTOMATIC_REDIRECTS 89
133#define WINHTTP_OPTION_MAX_HTTP_STATUS_CONTINUE 90
134#define WINHTTP_OPTION_MAX_RESPONSE_HEADER_SIZE 91
135#define WINHTTP_OPTION_MAX_RESPONSE_DRAIN_SIZE 92
136#define WINHTTP_OPTION_CONNECTION_INFO 93
137#define WINHTTP_OPTION_CLIENT_CERT_ISSUER_LIST 94
138#define WINHTTP_OPTION_SPN 96
139#define WINHTTP_OPTION_GLOBAL_PROXY_CREDS 97
140#define WINHTTP_OPTION_GLOBAL_SERVER_CREDS 98
141#define WINHTTP_OPTION_UNLOAD_NOTIFY_EVENT 99
142#define WINHTTP_OPTION_REJECT_USERPWD_IN_URL 100
143#define WINHTTP_OPTION_USE_GLOBAL_SERVER_CREDENTIALS 101
144#define WINHTTP_LAST_OPTION WINHTTP_OPTION_USE_GLOBAL_SERVER_CREDENTIALS
145#define WINHTTP_OPTION_USERNAME 0x1000
146#define WINHTTP_OPTION_PASSWORD 0x1001
147#define WINHTTP_OPTION_PROXY_USERNAME 0x1002
148#define WINHTTP_OPTION_PROXY_PASSWORD 0x1003
149
150#define WINHTTP_CONNS_PER_SERVER_UNLIMITED 0xFFFFFFFF
151
152#define WINHTTP_AUTOLOGON_SECURITY_LEVEL_MEDIUM 0
153#define WINHTTP_AUTOLOGON_SECURITY_LEVEL_LOW 1
154#define WINHTTP_AUTOLOGON_SECURITY_LEVEL_HIGH 2
155#define WINHTTP_AUTOLOGON_SECURITY_LEVEL_DEFAULT WINHTTP_AUTOLOGON_SECURITY_LEVEL_MEDIUM
156
157#define WINHTTP_OPTION_REDIRECT_POLICY_NEVER 0
158#define WINHTTP_OPTION_REDIRECT_POLICY_DISALLOW_HTTPS_TO_HTTP 1
159#define WINHTTP_OPTION_REDIRECT_POLICY_ALWAYS 2
160#define WINHTTP_OPTION_REDIRECT_POLICY_LAST WINHTTP_OPTION_REDIRECT_POLICY_ALWAYS
161#define WINHTTP_OPTION_REDIRECT_POLICY_DEFAULT WINHTTP_OPTION_REDIRECT_POLICY_DISALLOW_HTTPS_TO_HTTP
162
163#define WINHTTP_DISABLE_PASSPORT_AUTH 0x00000000
164#define WINHTTP_ENABLE_PASSPORT_AUTH 0x10000000
165#define WINHTTP_DISABLE_PASSPORT_KEYRING 0x20000000
166#define WINHTTP_ENABLE_PASSPORT_KEYRING 0x40000000
167
168#define WINHTTP_DISABLE_COOKIES 0x00000001
169#define WINHTTP_DISABLE_REDIRECTS 0x00000002
170#define WINHTTP_DISABLE_AUTHENTICATION 0x00000004
171#define WINHTTP_DISABLE_KEEP_ALIVE 0x00000008
172#define WINHTTP_ENABLE_SSL_REVOCATION 0x00000001
173#define WINHTTP_ENABLE_SSL_REVERT_IMPERSONATION 0x00000002
174#define WINHTTP_DISABLE_SPN_SERVER_PORT 0x00000000
175#define WINHTTP_ENABLE_SPN_SERVER_PORT 0x00000001
176#define WINHTTP_OPTION_SPN_MASK WINHTTP_ENABLE_SPN_SERVER_PORT
177
178/* Options for WinHttpOpenRequest */
179#define WINHTTP_NO_REFERER NULL
180#define WINHTTP_DEFAULT_ACCEPT_TYPES NULL
181
182/* Options for WinHttpSendRequest */
183#define WINHTTP_NO_ADDITIONAL_HEADERS NULL
184#define WINHTTP_NO_REQUEST_DATA NULL
185
186/* WinHTTP error codes */
187#define WINHTTP_ERROR_BASE 12000
188#define ERROR_WINHTTP_OUT_OF_HANDLES (WINHTTP_ERROR_BASE + 1)
189#define ERROR_WINHTTP_TIMEOUT (WINHTTP_ERROR_BASE + 2)
190#define ERROR_WINHTTP_INTERNAL_ERROR (WINHTTP_ERROR_BASE + 4)
191#define ERROR_WINHTTP_INVALID_URL (WINHTTP_ERROR_BASE + 5)
192#define ERROR_WINHTTP_UNRECOGNIZED_SCHEME (WINHTTP_ERROR_BASE + 6)
193#define ERROR_WINHTTP_NAME_NOT_RESOLVED (WINHTTP_ERROR_BASE + 7)
194#define ERROR_WINHTTP_INVALID_OPTION (WINHTTP_ERROR_BASE + 9)
195#define ERROR_WINHTTP_OPTION_NOT_SETTABLE (WINHTTP_ERROR_BASE + 11)
196#define ERROR_WINHTTP_SHUTDOWN (WINHTTP_ERROR_BASE + 12)
197#define ERROR_WINHTTP_LOGIN_FAILURE (WINHTTP_ERROR_BASE + 15)
198#define ERROR_WINHTTP_OPERATION_CANCELLED (WINHTTP_ERROR_BASE + 17)
199#define ERROR_WINHTTP_INCORRECT_HANDLE_TYPE (WINHTTP_ERROR_BASE + 18)
200#define ERROR_WINHTTP_INCORRECT_HANDLE_STATE (WINHTTP_ERROR_BASE + 19)
201#define ERROR_WINHTTP_CANNOT_CONNECT (WINHTTP_ERROR_BASE + 29)
202#define ERROR_WINHTTP_CONNECTION_ERROR (WINHTTP_ERROR_BASE + 30)
203#define ERROR_WINHTTP_RESEND_REQUEST (WINHTTP_ERROR_BASE + 32)
204#define ERROR_WINHTTP_SECURE_CERT_DATE_INVALID (WINHTTP_ERROR_BASE + 37)
205#define ERROR_WINHTTP_SECURE_CERT_CN_INVALID (WINHTTP_ERROR_BASE + 38)
206#define ERROR_WINHTTP_CLIENT_AUTH_CERT_NEEDED (WINHTTP_ERROR_BASE + 44)
207#define ERROR_WINHTTP_SECURE_INVALID_CA (WINHTTP_ERROR_BASE + 45)
208#define ERROR_WINHTTP_SECURE_CERT_REV_FAILED (WINHTTP_ERROR_BASE + 57)
209#define ERROR_WINHTTP_CANNOT_CALL_BEFORE_OPEN (WINHTTP_ERROR_BASE + 100)
210#define ERROR_WINHTTP_CANNOT_CALL_BEFORE_SEND (WINHTTP_ERROR_BASE + 101)
211#define ERROR_WINHTTP_CANNOT_CALL_AFTER_SEND (WINHTTP_ERROR_BASE + 102)
212#define ERROR_WINHTTP_CANNOT_CALL_AFTER_OPEN (WINHTTP_ERROR_BASE + 103)
213#define ERROR_WINHTTP_HEADER_NOT_FOUND (WINHTTP_ERROR_BASE + 150)
214#define ERROR_WINHTTP_INVALID_SERVER_RESPONSE (WINHTTP_ERROR_BASE + 152)
215#define ERROR_WINHTTP_INVALID_HEADER (WINHTTP_ERROR_BASE + 153)
216#define ERROR_WINHTTP_INVALID_QUERY_REQUEST (WINHTTP_ERROR_BASE + 154)
217#define ERROR_WINHTTP_HEADER_ALREADY_EXISTS (WINHTTP_ERROR_BASE + 155)
218#define ERROR_WINHTTP_REDIRECT_FAILED (WINHTTP_ERROR_BASE + 156)
219#define ERROR_WINHTTP_SECURE_CHANNEL_ERROR (WINHTTP_ERROR_BASE + 157)
220#define ERROR_WINHTTP_BAD_AUTO_PROXY_SCRIPT (WINHTTP_ERROR_BASE + 166)
221#define ERROR_WINHTTP_UNABLE_TO_DOWNLOAD_SCRIPT (WINHTTP_ERROR_BASE + 167)
222#define ERROR_WINHTTP_SECURE_INVALID_CERT (WINHTTP_ERROR_BASE + 169)
223#define ERROR_WINHTTP_SECURE_CERT_REVOKED (WINHTTP_ERROR_BASE + 170)
224#define ERROR_WINHTTP_NOT_INITIALIZED (WINHTTP_ERROR_BASE + 172)
225#define ERROR_WINHTTP_SECURE_FAILURE (WINHTTP_ERROR_BASE + 175)
226#define ERROR_WINHTTP_AUTO_PROXY_SERVICE_ERROR (WINHTTP_ERROR_BASE + 178)
227#define ERROR_WINHTTP_SECURE_CERT_WRONG_USAGE (WINHTTP_ERROR_BASE + 179)
228#define ERROR_WINHTTP_AUTODETECTION_FAILED (WINHTTP_ERROR_BASE + 180)
229#define ERROR_WINHTTP_HEADER_COUNT_EXCEEDED (WINHTTP_ERROR_BASE + 181)
230#define ERROR_WINHTTP_HEADER_SIZE_OVERFLOW (WINHTTP_ERROR_BASE + 182)
231#define ERROR_WINHTTP_CHUNKED_ENCODING_HEADER_SIZE_OVERFLOW (WINHTTP_ERROR_BASE + 183)
232#define ERROR_WINHTTP_RESPONSE_DRAIN_OVERFLOW (WINHTTP_ERROR_BASE + 184)
233#define ERROR_WINHTTP_CLIENT_CERT_NO_PRIVATE_KEY (WINHTTP_ERROR_BASE + 185)
234#define ERROR_WINHTTP_CLIENT_CERT_NO_ACCESS_PRIVATE_KEY (WINHTTP_ERROR_BASE + 186)
235#define WINHTTP_ERROR_LAST (WINHTTP_ERROR_BASE + 186)
236
237/* WinHttp status codes */
238#define HTTP_STATUS_CONTINUE 100
239#define HTTP_STATUS_SWITCH_PROTOCOLS 101
240#define HTTP_STATUS_OK 200
241#define HTTP_STATUS_CREATED 201
242#define HTTP_STATUS_ACCEPTED 202
243#define HTTP_STATUS_PARTIAL 203
244#define HTTP_STATUS_NO_CONTENT 204
245#define HTTP_STATUS_RESET_CONTENT 205
246#define HTTP_STATUS_PARTIAL_CONTENT 206
247#define HTTP_STATUS_WEBDAV_MULTI_STATUS 207
248#define HTTP_STATUS_AMBIGUOUS 300
249#define HTTP_STATUS_MOVED 301
250#define HTTP_STATUS_REDIRECT 302
251#define HTTP_STATUS_REDIRECT_METHOD 303
252#define HTTP_STATUS_NOT_MODIFIED 304
253#define HTTP_STATUS_USE_PROXY 305
254#define HTTP_STATUS_REDIRECT_KEEP_VERB 307
255#define HTTP_STATUS_BAD_REQUEST 400
256#define HTTP_STATUS_DENIED 401
257#define HTTP_STATUS_PAYMENT_REQ 402
258#define HTTP_STATUS_FORBIDDEN 403
259#define HTTP_STATUS_NOT_FOUND 404
260#define HTTP_STATUS_BAD_METHOD 405
261#define HTTP_STATUS_NONE_ACCEPTABLE 406
262#define HTTP_STATUS_PROXY_AUTH_REQ 407
263#define HTTP_STATUS_REQUEST_TIMEOUT 408
264#define HTTP_STATUS_CONFLICT 409
265#define HTTP_STATUS_GONE 410
266#define HTTP_STATUS_LENGTH_REQUIRED 411
267#define HTTP_STATUS_PRECOND_FAILED 412
268#define HTTP_STATUS_REQUEST_TOO_LARGE 413
269#define HTTP_STATUS_URI_TOO_LONG 414
270#define HTTP_STATUS_UNSUPPORTED_MEDIA 415
271#define HTTP_STATUS_RETRY_WITH 449
272#define HTTP_STATUS_SERVER_ERROR 500
273#define HTTP_STATUS_NOT_SUPPORTED 501
274#define HTTP_STATUS_BAD_GATEWAY 502
275#define HTTP_STATUS_SERVICE_UNAVAIL 503
276#define HTTP_STATUS_GATEWAY_TIMEOUT 504
277#define HTTP_STATUS_VERSION_NOT_SUP 505
278#define HTTP_STATUS_FIRST HTTP_STATUS_CONTINUE
279#define HTTP_STATUS_LAST HTTP_STATUS_VERSION_NOT_SUP
280
281#define SECURITY_FLAG_IGNORE_UNKNOWN_CA 0x00000100
282#define SECURITY_FLAG_IGNORE_CERT_DATE_INVALID 0x00002000
283#define SECURITY_FLAG_IGNORE_CERT_CN_INVALID 0x00001000
284#define SECURITY_FLAG_IGNORE_CERT_WRONG_USAGE 0x00000200
285#define SECURITY_FLAG_SECURE 0x00000001
286#define SECURITY_FLAG_STRENGTH_WEAK 0x10000000
287#define SECURITY_FLAG_STRENGTH_MEDIUM 0x40000000
288#define SECURITY_FLAG_STRENGTH_STRONG 0x20000000
289
290#define ICU_NO_ENCODE 0x20000000
291#define ICU_DECODE 0x10000000
292#define ICU_NO_META 0x08000000
293#define ICU_ENCODE_SPACES_ONLY 0x04000000
294#define ICU_BROWSER_MODE 0x02000000
295#define ICU_ENCODE_PERCENT 0x00001000
296
297/* Query flags */
298#define WINHTTP_QUERY_MIME_VERSION 0
299#define WINHTTP_QUERY_CONTENT_TYPE 1
300#define WINHTTP_QUERY_CONTENT_TRANSFER_ENCODING 2
301#define WINHTTP_QUERY_CONTENT_ID 3
302#define WINHTTP_QUERY_CONTENT_DESCRIPTION 4
303#define WINHTTP_QUERY_CONTENT_LENGTH 5
304#define WINHTTP_QUERY_CONTENT_LANGUAGE 6
305#define WINHTTP_QUERY_ALLOW 7
306#define WINHTTP_QUERY_PUBLIC 8
307#define WINHTTP_QUERY_DATE 9
308#define WINHTTP_QUERY_EXPIRES 10
309#define WINHTTP_QUERY_LAST_MODIFIED 11
310#define WINHTTP_QUERY_MESSAGE_ID 12
311#define WINHTTP_QUERY_URI 13
312#define WINHTTP_QUERY_DERIVED_FROM 14
313#define WINHTTP_QUERY_COST 15
314#define WINHTTP_QUERY_LINK 16
315#define WINHTTP_QUERY_PRAGMA 17
316#define WINHTTP_QUERY_VERSION 18
317#define WINHTTP_QUERY_STATUS_CODE 19
318#define WINHTTP_QUERY_STATUS_TEXT 20
319#define WINHTTP_QUERY_RAW_HEADERS 21
320#define WINHTTP_QUERY_RAW_HEADERS_CRLF 22
321#define WINHTTP_QUERY_CONNECTION 23
322#define WINHTTP_QUERY_ACCEPT 24
323#define WINHTTP_QUERY_ACCEPT_CHARSET 25
324#define WINHTTP_QUERY_ACCEPT_ENCODING 26
325#define WINHTTP_QUERY_ACCEPT_LANGUAGE 27
326#define WINHTTP_QUERY_AUTHORIZATION 28
327#define WINHTTP_QUERY_CONTENT_ENCODING 29
328#define WINHTTP_QUERY_FORWARDED 30
329#define WINHTTP_QUERY_FROM 31
330#define WINHTTP_QUERY_IF_MODIFIED_SINCE 32
331#define WINHTTP_QUERY_LOCATION 33
332#define WINHTTP_QUERY_ORIG_URI 34
333#define WINHTTP_QUERY_REFERER 35
334#define WINHTTP_QUERY_RETRY_AFTER 36
335#define WINHTTP_QUERY_SERVER 37
336#define WINHTTP_QUERY_TITLE 38
337#define WINHTTP_QUERY_USER_AGENT 39
338#define WINHTTP_QUERY_WWW_AUTHENTICATE 40
339#define WINHTTP_QUERY_PROXY_AUTHENTICATE 41
340#define WINHTTP_QUERY_ACCEPT_RANGES 42
341#define WINHTTP_QUERY_SET_COOKIE 43
342#define WINHTTP_QUERY_COOKIE 44
343#define WINHTTP_QUERY_REQUEST_METHOD 45
344#define WINHTTP_QUERY_REFRESH 46
345#define WINHTTP_QUERY_CONTENT_DISPOSITION 47
346#define WINHTTP_QUERY_AGE 48
347#define WINHTTP_QUERY_CACHE_CONTROL 49
348#define WINHTTP_QUERY_CONTENT_BASE 50
349#define WINHTTP_QUERY_CONTENT_LOCATION 51
350#define WINHTTP_QUERY_CONTENT_MD5 52
351#define WINHTTP_QUERY_CONTENT_RANGE 53
352#define WINHTTP_QUERY_ETAG 54
353#define WINHTTP_QUERY_HOST 55
354#define WINHTTP_QUERY_IF_MATCH 56
355#define WINHTTP_QUERY_IF_NONE_MATCH 57
356#define WINHTTP_QUERY_IF_RANGE 58
357#define WINHTTP_QUERY_IF_UNMODIFIED_SINCE 59
358#define WINHTTP_QUERY_MAX_FORWARDS 60
359#define WINHTTP_QUERY_PROXY_AUTHORIZATION 61
360#define WINHTTP_QUERY_RANGE 62
361#define WINHTTP_QUERY_TRANSFER_ENCODING 63
362#define WINHTTP_QUERY_UPGRADE 64
363#define WINHTTP_QUERY_VARY 65
364#define WINHTTP_QUERY_VIA 66
365#define WINHTTP_QUERY_WARNING 67
366#define WINHTTP_QUERY_EXPECT 68
367#define WINHTTP_QUERY_PROXY_CONNECTION 69
368#define WINHTTP_QUERY_UNLESS_MODIFIED_SINCE 70
369#define WINHTTP_QUERY_PROXY_SUPPORT 75
370#define WINHTTP_QUERY_AUTHENTICATION_INFO 76
371#define WINHTTP_QUERY_PASSPORT_URLS 77
372#define WINHTTP_QUERY_PASSPORT_CONFIG 78
373#define WINHTTP_QUERY_MAX 78
374#define WINHTTP_QUERY_CUSTOM 65535
375#define WINHTTP_QUERY_FLAG_REQUEST_HEADERS 0x80000000
376#define WINHTTP_QUERY_FLAG_SYSTEMTIME 0x40000000
377#define WINHTTP_QUERY_FLAG_NUMBER 0x20000000
378
379/* Callback options */
380#define WINHTTP_CALLBACK_STATUS_RESOLVING_NAME 0x00000001
381#define WINHTTP_CALLBACK_STATUS_NAME_RESOLVED 0x00000002
382#define WINHTTP_CALLBACK_STATUS_CONNECTING_TO_SERVER 0x00000004
383#define WINHTTP_CALLBACK_STATUS_CONNECTED_TO_SERVER 0x00000008
384#define WINHTTP_CALLBACK_STATUS_SENDING_REQUEST 0x00000010
385#define WINHTTP_CALLBACK_STATUS_REQUEST_SENT 0x00000020
386#define WINHTTP_CALLBACK_STATUS_RECEIVING_RESPONSE 0x00000040
387#define WINHTTP_CALLBACK_STATUS_RESPONSE_RECEIVED 0x00000080
388#define WINHTTP_CALLBACK_STATUS_CLOSING_CONNECTION 0x00000100
389#define WINHTTP_CALLBACK_STATUS_CONNECTION_CLOSED 0x00000200
390#define WINHTTP_CALLBACK_STATUS_HANDLE_CREATED 0x00000400
391#define WINHTTP_CALLBACK_STATUS_HANDLE_CLOSING 0x00000800
392#define WINHTTP_CALLBACK_STATUS_DETECTING_PROXY 0x00001000
393#define WINHTTP_CALLBACK_STATUS_REDIRECT 0x00004000
394#define WINHTTP_CALLBACK_STATUS_INTERMEDIATE_RESPONSE 0x00008000
395#define WINHTTP_CALLBACK_STATUS_SECURE_FAILURE 0x00010000
396#define WINHTTP_CALLBACK_STATUS_HEADERS_AVAILABLE 0x00020000
397#define WINHTTP_CALLBACK_STATUS_DATA_AVAILABLE 0x00040000
398#define WINHTTP_CALLBACK_STATUS_READ_COMPLETE 0x00080000
399#define WINHTTP_CALLBACK_STATUS_WRITE_COMPLETE 0x00100000
400#define WINHTTP_CALLBACK_STATUS_REQUEST_ERROR 0x00200000
401#define WINHTTP_CALLBACK_STATUS_SENDREQUEST_COMPLETE 0x00400000
402#define WINHTTP_CALLBACK_FLAG_RESOLVE_NAME (WINHTTP_CALLBACK_STATUS_RESOLVING_NAME | WINHTTP_CALLBACK_STATUS_NAME_RESOLVED)
403#define WINHTTP_CALLBACK_FLAG_CONNECT_TO_SERVER (WINHTTP_CALLBACK_STATUS_CONNECTING_TO_SERVER | WINHTTP_CALLBACK_STATUS_CONNECTED_TO_SERVER)
404#define WINHTTP_CALLBACK_FLAG_SEND_REQUEST (WINHTTP_CALLBACK_STATUS_SENDING_REQUEST | WINHTTP_CALLBACK_STATUS_REQUEST_SENT)
405#define WINHTTP_CALLBACK_FLAG_RECEIVE_RESPONSE (WINHTTP_CALLBACK_STATUS_RECEIVING_RESPONSE | WINHTTP_CALLBACK_STATUS_RESPONSE_RECEIVED)
406#define WINHTTP_CALLBACK_FLAG_CLOSE_CONNECTION (WINHTTP_CALLBACK_STATUS_CLOSING_CONNECTION | WINHTTP_CALLBACK_STATUS_CONNECTION_CLOSED)
407#define WINHTTP_CALLBACK_FLAG_HANDLES (WINHTTP_CALLBACK_STATUS_HANDLE_CREATED | WINHTTP_CALLBACK_STATUS_HANDLE_CLOSING)
408#define WINHTTP_CALLBACK_FLAG_DETECTING_PROXY WINHTTP_CALLBACK_STATUS_DETECTING_PROXY
409#define WINHTTP_CALLBACK_FLAG_REDIRECT WINHTTP_CALLBACK_STATUS_REDIRECT
410#define WINHTTP_CALLBACK_FLAG_INTERMEDIATE_RESPONSE WINHTTP_CALLBACK_STATUS_INTERMEDIATE_RESPONSE
411#define WINHTTP_CALLBACK_FLAG_SECURE_FAILURE WINHTTP_CALLBACK_STATUS_SECURE_FAILURE
412#define WINHTTP_CALLBACK_FLAG_SENDREQUEST_COMPLETE WINHTTP_CALLBACK_STATUS_SENDREQUEST_COMPLETE
413#define WINHTTP_CALLBACK_FLAG_HEADERS_AVAILABLE WINHTTP_CALLBACK_STATUS_HEADERS_AVAILABLE
414#define WINHTTP_CALLBACK_FLAG_DATA_AVAILABLE WINHTTP_CALLBACK_STATUS_DATA_AVAILABLE
415#define WINHTTP_CALLBACK_FLAG_READ_COMPLETE WINHTTP_CALLBACK_STATUS_READ_COMPLETE
416#define WINHTTP_CALLBACK_FLAG_WRITE_COMPLETE WINHTTP_CALLBACK_STATUS_WRITE_COMPLETE
417#define WINHTTP_CALLBACK_FLAG_REQUEST_ERROR WINHTTP_CALLBACK_STATUS_REQUEST_ERROR
418#define WINHTTP_CALLBACK_FLAG_ALL_COMPLETIONS (WINHTTP_CALLBACK_STATUS_SENDREQUEST_COMPLETE | WINHTTP_CALLBACK_STATUS_HEADERS_AVAILABLE \
419 | WINHTTP_CALLBACK_STATUS_DATA_AVAILABLE | WINHTTP_CALLBACK_STATUS_READ_COMPLETE \
420 | WINHTTP_CALLBACK_STATUS_WRITE_COMPLETE | WINHTTP_CALLBACK_STATUS_REQUEST_ERROR)
421#define WINHTTP_CALLBACK_FLAG_ALL_NOTIFICATIONS 0xffffffff
422#define WINHTTP_INVALID_STATUS_CALLBACK ((WINHTTP_STATUS_CALLBACK)(-1))
423
424#define API_RECEIVE_RESPONSE (1)
425#define API_QUERY_DATA_AVAILABLE (2)
426#define API_READ_DATA (3)
427#define API_WRITE_DATA (4)
428#define API_SEND_REQUEST (5)
429
430#define WINHTTP_HANDLE_TYPE_SESSION 1
431#define WINHTTP_HANDLE_TYPE_CONNECT 2
432#define WINHTTP_HANDLE_TYPE_REQUEST 3
433
434#define WINHTTP_CALLBACK_STATUS_FLAG_CERT_REV_FAILED 0x00000001
435#define WINHTTP_CALLBACK_STATUS_FLAG_INVALID_CERT 0x00000002
436#define WINHTTP_CALLBACK_STATUS_FLAG_CERT_REVOKED 0x00000004
437#define WINHTTP_CALLBACK_STATUS_FLAG_INVALID_CA 0x00000008
438#define WINHTTP_CALLBACK_STATUS_FLAG_CERT_CN_INVALID 0x00000010
439#define WINHTTP_CALLBACK_STATUS_FLAG_CERT_DATE_INVALID 0x00000020
440#define WINHTTP_CALLBACK_STATUS_FLAG_CERT_WRONG_USAGE 0x00000040
441#define WINHTTP_CALLBACK_STATUS_FLAG_SECURITY_CHANNEL_ERROR 0x80000000
442
443#define WINHTTP_FLAG_SECURE_PROTOCOL_SSL2 0x00000008
444#define WINHTTP_FLAG_SECURE_PROTOCOL_SSL3 0x00000020
445#define WINHTTP_FLAG_SECURE_PROTOCOL_TLS1 0x00000080
446#define WINHTTP_FLAG_SECURE_PROTOCOL_TLS1_1 0x00000200
447#define WINHTTP_FLAG_SECURE_PROTOCOL_TLS1_2 0x00000800
448#define WINHTTP_FLAG_SECURE_PROTOCOL_ALL (WINHTTP_FLAG_SECURE_PROTOCOL_SSL2 |\
449 WINHTTP_FLAG_SECURE_PROTOCOL_SSL3 |\
450 WINHTTP_FLAG_SECURE_PROTOCOL_TLS1)
451
452#define WINHTTP_AUTH_SCHEME_BASIC 0x00000001
453#define WINHTTP_AUTH_SCHEME_NTLM 0x00000002
454#define WINHTTP_AUTH_SCHEME_PASSPORT 0x00000004
455#define WINHTTP_AUTH_SCHEME_DIGEST 0x00000008
456#define WINHTTP_AUTH_SCHEME_NEGOTIATE 0x00000010
457
458#define WINHTTP_AUTH_TARGET_SERVER 0x00000000
459#define WINHTTP_AUTH_TARGET_PROXY 0x00000001
460
461#define WINHTTP_TIME_FORMAT_BUFSIZE 62
462
463typedef struct
464{
483
484typedef struct
485{
489
490typedef struct
491{
501
502typedef struct
503{
510
511typedef struct
512{
518
519typedef VOID
523 _In_ DWORD,
524 _In_ LPVOID,
525 _In_ DWORD);
526
527#define WINHTTP_AUTO_DETECT_TYPE_DHCP 0x00000001
528#define WINHTTP_AUTO_DETECT_TYPE_DNS_A 0x00000002
529
530#define WINHTTP_AUTOPROXY_AUTO_DETECT 0x00000001
531#define WINHTTP_AUTOPROXY_CONFIG_URL 0x00000002
532#define WINHTTP_AUTOPROXY_RUN_INPROCESS 0x00010000
533#define WINHTTP_AUTOPROXY_RUN_OUTPROCESS_ONLY 0x00020000
534
535typedef struct
536{
544
545typedef struct
546{
550
551#ifdef _WS2DEF_
552typedef struct
553{
554 DWORD cbSize;
555 SOCKADDR_STORAGE LocalAddress;
556 SOCKADDR_STORAGE RemoteAddress;
557} WINHTTP_CONNECTION_INFO;
558#endif
559
560#ifdef __cplusplus
561extern "C" {
562#endif
563
564BOOL
565WINAPI
568 _When_(dwHeadersLength == (DWORD)-1, _In_z_)
569 _When_(dwHeadersLength != (DWORD)-1, _In_reads_(dwHeadersLength))
570 LPCWSTR,
571 _In_ DWORD dwHeadersLength,
572 _In_ DWORD);
573
574BOOL
575WINAPI
577 _In_ DWORD,
579
582
584WINAPI
590
591BOOL
592WINAPI
594 _In_reads_(dwUrlLength) LPCWSTR,
595 _In_ DWORD dwUrlLength,
596 _In_ DWORD,
598
599_Success_(return != 0)
600BOOL
601WINAPI
607
608BOOL
609WINAPI
612
613BOOL
614WINAPI
617
618BOOL
619WINAPI
625
627WINAPI
630 _In_ DWORD,
633 _In_ DWORD);
634
636WINAPI
643 _In_ LPCWSTR*,
644 _In_ DWORD);
645
646BOOL
647WINAPI
650 _In_ DWORD,
651 _Out_ LPVOID*);
652
653BOOL
654WINAPI
659 _Out_ LPDWORD);
660
661BOOL
662WINAPI
666
667_Success_(return != 0)
668BOOL
669WINAPI
672 _In_ DWORD,
677
678_Success_(return != 0)
679BOOL
680WINAPI
683 _In_ DWORD,
686
687BOOL
688WINAPI
691 _Out_writes_bytes_to_(dwNumberOfBytesToRead, *lpdwNumberOfBytesRead) __out_data_source(NETWORK) LPVOID,
692 _In_ DWORD dwNumberOfBytesToRead,
693 _Out_ LPDWORD lpdwNumberOfBytesRead);
694
696
697BOOL
698WINAPI
701 _In_reads_opt_(dwHeadersLength) LPCWSTR,
702 _In_ DWORD dwHeadersLength,
703 _In_reads_bytes_opt_(dwOptionalLength) LPVOID,
704 _In_ DWORD dwOptionalLength,
705 _In_ DWORD,
707
708BOOL
709WINAPI
712
713BOOL
714WINAPI
717 _In_ DWORD,
718 _In_ DWORD,
722
723BOOL
724WINAPI
727 _In_ DWORD dwOption,
728 _When_((dwOption == WINHTTP_OPTION_USERNAME ||
729 dwOption == WINHTTP_OPTION_PASSWORD ||
730 dwOption == WINHTTP_OPTION_PROXY_USERNAME ||
731 dwOption == WINHTTP_OPTION_PROXY_PASSWORD ||
732 dwOption == WINHTTP_OPTION_USER_AGENT),
733 _At_((LPCWSTR) lpBuffer, _In_reads_(dwBufferLength)))
734 _When_((dwOption != WINHTTP_OPTION_USERNAME &&
735 dwOption != WINHTTP_OPTION_PASSWORD &&
736 dwOption != WINHTTP_OPTION_PROXY_USERNAME &&
737 dwOption != WINHTTP_OPTION_PROXY_PASSWORD &&
738 dwOption != WINHTTP_OPTION_USER_AGENT),
739 _In_reads_bytes_(dwBufferLength))
741 _In_ DWORD dwBufferLength);
742
744WINAPI
748 _In_ DWORD,
750
751BOOL
752WINAPI
755 _In_ int,
756 _In_ int,
757 _In_ int,
758 _In_ int);
759
760BOOL
761WINAPI
765
767
768BOOL
769WINAPI
772 _In_reads_bytes_opt_(dwNumberOfBytesToWrite) LPCVOID,
773 _In_ DWORD dwNumberOfBytesToWrite,
774 _Out_ LPDWORD);
775
776#ifdef __cplusplus
777}
778#endif
779
780#include <poppack.h>
781
782#endif /* __WINE_WINHTTP_H */
#define VOID
Definition: acefi.h:82
return
Definition: dirsup.c:529
static TAGREF LPCWSTR LPDWORD LPVOID lpBuffer
Definition: db.cpp:175
#define CALLBACK
Definition: compat.h:35
BOOL WINAPI WinHttpQueryOption(HINTERNET handle, DWORD option, LPVOID buffer, LPDWORD buflen)
Definition: session.c:1253
BOOL WINAPI WinHttpCreateUrl(LPURL_COMPONENTS uc, DWORD flags, LPWSTR url, LPDWORD required)
Definition: url.c:437
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
unsigned short WORD
Definition: ntddk_ex.h:93
#define _Success_(expr)
Definition: ms_sal.h:259
#define _In_reads_bytes_(size)
Definition: ms_sal.h:321
#define _Inout_
Definition: ms_sal.h:378
#define _Out_writes_bytes_(size)
Definition: ms_sal.h:350
#define _Out_writes_bytes_to_(size, count)
Definition: ms_sal.h:360
#define _Outptr_result_maybenull_
Definition: ms_sal.h:428
#define _In_z_
Definition: ms_sal.h:313
#define _In_opt_z_
Definition: ms_sal.h:314
#define _At_(target, annos)
Definition: ms_sal.h:244
#define _Out_
Definition: ms_sal.h:345
#define _In_reads_opt_(size)
Definition: ms_sal.h:320
#define _When_(expr, annos)
Definition: ms_sal.h:254
#define _Out_writes_to_opt_(size, count)
Definition: ms_sal.h:356
#define _Out_writes_bytes_to_opt_(size, count)
Definition: ms_sal.h:361
#define _In_
Definition: ms_sal.h:308
#define _In_reads_bytes_opt_(size)
Definition: ms_sal.h:322
#define _In_opt_
Definition: ms_sal.h:309
#define _Reserved_
Definition: ms_sal.h:295
#define _In_reads_(size)
Definition: ms_sal.h:319
#define LPVOID
Definition: nt_native.h:45
#define CONST
Definition: pedump.c:81
BOOL WINAPI WinHttpQueryHeaders(HINTERNET hrequest, DWORD level, LPCWSTR name, LPVOID buffer, LPDWORD buflen, LPDWORD index)
Definition: request.c:856
#define NETWORK
Definition: config.h:328
#define __out_data_source(src_sym)
Definition: specstrings.h:349
DWORD dwMinorVersion
Definition: winhttp.h:548
DWORD dwMajorVersion
Definition: winhttp.h:547
INTERNET_PORT nPort
Definition: winhttp.h:471
LPWSTR lpszScheme
Definition: winhttp.h:466
LPWSTR lpszUserName
Definition: winhttp.h:472
LPWSTR lpszExtraInfo
Definition: winhttp.h:478
DWORD dwPasswordLength
Definition: winhttp.h:475
LPWSTR lpszUrlPath
Definition: winhttp.h:476
DWORD dwHostNameLength
Definition: winhttp.h:470
DWORD dwExtraInfoLength
Definition: winhttp.h:479
DWORD dwUrlPathLength
Definition: winhttp.h:477
LPWSTR lpszHostName
Definition: winhttp.h:469
LPWSTR lpszPassword
Definition: winhttp.h:474
INTERNET_SCHEME nScheme
Definition: winhttp.h:468
DWORD dwStructSize
Definition: winhttp.h:465
DWORD dwUserNameLength
Definition: winhttp.h:473
DWORD dwSchemeLength
Definition: winhttp.h:467
DWORD_PTR dwResult
Definition: winhttp.h:486
LPWSTR lpszEncryptionAlgName
Definition: winhttp.h:498
LPWSTR lpszProxyBypass
Definition: winhttp.h:506
DWORD dwAccessType
Definition: winhttp.h:504
LPWSTR lpszProxy
Definition: winhttp.h:505
#define DWORD_PTR
Definition: treelist.c:76
uint32_t DWORD_PTR
Definition: typedefs.h:65
uint32_t * LPDWORD
Definition: typedefs.h:59
CONST void * LPCVOID
Definition: windef.h:191
#define WINAPI
Definition: msvc.h:6
INTERNET_PORT * LPINTERNET_PORT
Definition: winhttp.h:39
struct URL_COMPONENTS * LPURL_COMPONENTS
BOOL WINAPI WinHttpCloseHandle(_In_ HINTERNET)
#define WINHTTP_OPTION_PROXY_PASSWORD
Definition: winhttp.h:148
#define WINHTTP_OPTION_USERNAME
Definition: winhttp.h:145
BOOL WINAPI WinHttpReceiveResponse(_In_ HINTERNET, _Reserved_ LPVOID)
WORD INTERNET_PORT
Definition: winhttp.h:38
BOOL WINAPI WinHttpGetProxyForUrl(_In_ HINTERNET, _In_ LPCWSTR, _In_ WINHTTP_AUTOPROXY_OPTIONS *, _Out_ WINHTTP_PROXY_INFO *)
HINTERNET * LPHINTERNET
Definition: winhttp.h:33
LPWINHTTP_PROXY_INFO LPWINHTTP_PROXY_INFOW
Definition: winhttp.h:509
LPVOID HINTERNET
Definition: winhttp.h:32
#define WINHTTP_OPTION_PROXY_USERNAME
Definition: winhttp.h:147
int INTERNET_SCHEME
Definition: winhttp.h:46
_In_ DWORD
Definition: winhttp.h:604
#define WINHTTP_OPTION_PASSWORD
Definition: winhttp.h:146
BOOL WINAPI WinHttpDetectAutoProxyConfigUrl(_In_ DWORD, _Outptr_result_maybenull_ LPWSTR *)
BOOL WINAPI WinHttpGetDefaultProxyConfiguration(_Inout_ WINHTTP_PROXY_INFO *)
BOOL WINAPI WinHttpTimeToSystemTime(_In_z_ LPCWSTR, _Out_ SYSTEMTIME *)
BOOL WINAPI WinHttpQueryDataAvailable(_In_ HINTERNET, __out_data_source(NETWORK) LPDWORD)
_In_ _In_opt_ _Out_writes_bytes_to_opt_ lpdwBufferLength _Inout_ LPDWORD lpdwBufferLength
Definition: winhttp.h:675
BOOL WINAPI WinHttpSetDefaultProxyConfiguration(_In_ WINHTTP_PROXY_INFO *)
int * LPINTERNET_SCHEME
Definition: winhttp.h:46
BOOL WINAPI WinHttpSetCredentials(_In_ HINTERNET, _In_ DWORD, _In_ DWORD, _In_ LPCWSTR, _In_ LPCWSTR, _Reserved_ LPVOID)
struct WINHTTP_ASYNC_RESULT * LPWINHTTP_ASYNC_RESULT
URL_COMPONENTS URL_COMPONENTSW
Definition: winhttp.h:481
WINHTTP_PROXY_INFO WINHTTP_PROXY_INFOW
Definition: winhttp.h:508
struct WINHTTP_PROXY_INFO * LPWINHTTP_PROXY_INFO
VOID(CALLBACK * WINHTTP_STATUS_CALLBACK)(_In_ HINTERNET, _In_ DWORD_PTR, _In_ DWORD, _In_ LPVOID, _In_ DWORD)
Definition: winhttp.h:520
HINTERNET WINAPI WinHttpConnect(_In_ HINTERNET, _In_ LPCWSTR, _In_ INTERNET_PORT, _Reserved_ DWORD)
BOOL WINAPI WinHttpAddRequestHeaders(_In_ HINTERNET, _When_(dwHeadersLength==(DWORD) -1, _In_z_) _When_(dwHeadersLength !=(DWORD) -1, _In_reads_(dwHeadersLength)) LPCWSTR, _In_ DWORD dwHeadersLength, _In_ DWORD)
BOOL WINAPI WinHttpReadData(_In_ HINTERNET, _Out_writes_bytes_to_(dwNumberOfBytesToRead, *lpdwNumberOfBytesRead) __out_data_source(NETWORK) LPVOID, _In_ DWORD dwNumberOfBytesToRead, _Out_ LPDWORD lpdwNumberOfBytesRead)
WINHTTP_STATUS_CALLBACK WINAPI WinHttpSetStatusCallback(_In_ HINTERNET, _In_ WINHTTP_STATUS_CALLBACK, _In_ DWORD, _Reserved_ DWORD_PTR)
BOOL WINAPI WinHttpGetIEProxyConfigForCurrentUser(_Inout_ WINHTTP_CURRENT_USER_IE_PROXY_CONFIG *)
BOOL WINAPI WinHttpCheckPlatform(void)
Definition: session.c:68
LPURL_COMPONENTS LPURL_COMPONENTSW
Definition: winhttp.h:482
_In_ _Out_writes_to_opt_ pdwUrlLength _Inout_ LPDWORD pdwUrlLength
Definition: winhttp.h:606
#define WINHTTP_OPTION_USER_AGENT
Definition: winhttp.h:111
BOOL WINAPI WinHttpQueryAuthSchemes(_In_ HINTERNET, _Out_ LPDWORD, _Out_ LPDWORD, _Out_ LPDWORD)
HINTERNET WINAPI WinHttpOpenRequest(_In_ HINTERNET, _In_ LPCWSTR, _In_ LPCWSTR, _In_ LPCWSTR, _In_ LPCWSTR, _In_ LPCWSTR *, _In_ DWORD)
struct HTTP_VERSION_INFO * LPHTTP_VERSION_INFO
BOOL WINAPI WinHttpCrackUrl(_In_reads_(dwUrlLength) LPCWSTR, _In_ DWORD dwUrlLength, _In_ DWORD, _Inout_ LPURL_COMPONENTS)
BOOL WINAPI WinHttpQueryAuthParams(_In_ HINTERNET, _In_ DWORD, _Out_ LPVOID *)
BOOL WINAPI WinHttpSetTimeouts(_In_ HINTERNET, _In_ int, _In_ int, _In_ int, _In_ int)
BOOL WINAPI WinHttpSendRequest(_In_ HINTERNET, _In_reads_opt_(dwHeadersLength) LPCWSTR, _In_ DWORD dwHeadersLength, _In_reads_bytes_opt_(dwOptionalLength) LPVOID, _In_ DWORD dwOptionalLength, _In_ DWORD, _In_ DWORD_PTR)
BOOL WINAPI WinHttpWriteData(_In_ HINTERNET, _In_reads_bytes_opt_(dwNumberOfBytesToWrite) LPCVOID, _In_ DWORD dwNumberOfBytesToWrite, _Out_ LPDWORD)
BOOL WINAPI WinHttpSetOption(_In_opt_ HINTERNET, _In_ DWORD dwOption, _When_((dwOption==WINHTTP_OPTION_USERNAME||dwOption==WINHTTP_OPTION_PASSWORD||dwOption==WINHTTP_OPTION_PROXY_USERNAME||dwOption==WINHTTP_OPTION_PROXY_PASSWORD||dwOption==WINHTTP_OPTION_USER_AGENT), _At_((LPCWSTR) lpBuffer, _In_reads_(dwBufferLength))) _When_((dwOption !=WINHTTP_OPTION_USERNAME &&dwOption !=WINHTTP_OPTION_PASSWORD &&dwOption !=WINHTTP_OPTION_PROXY_USERNAME &&dwOption !=WINHTTP_OPTION_PROXY_PASSWORD &&dwOption !=WINHTTP_OPTION_USER_AGENT), _In_reads_bytes_(dwBufferLength)) LPVOID lpBuffer, _In_ DWORD dwBufferLength)
HINTERNET WINAPI WinHttpOpen(_In_opt_z_ LPCWSTR, _In_ DWORD, _In_opt_z_ LPCWSTR, _In_opt_z_ LPCWSTR, _In_ DWORD)
#define WINHTTP_TIME_FORMAT_BUFSIZE
Definition: winhttp.h:461
BOOL WINAPI WinHttpTimeFromSystemTime(_In_ CONST SYSTEMTIME *, _Out_writes_bytes_(WINHTTP_TIME_FORMAT_BUFSIZE) LPWSTR)
_Must_inspect_result_ _In_ ULONG _In_ PSOCKADDR LocalAddress
Definition: wsk.h:171
_Must_inspect_result_ _In_ ULONG _In_ PSOCKADDR _In_ PSOCKADDR RemoteAddress
Definition: wsk.h:172
WCHAR * LPWSTR
Definition: xmlstorage.h:184
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185