windows-sys 0.27.0

Rust for Windows
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
#![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)]
#[cfg(feature = "Web_Http_Diagnostics")]
pub mod Diagnostics;
#[cfg(feature = "Web_Http_Filters")]
pub mod Filters;
#[cfg(feature = "Web_Http_Headers")]
pub mod Headers;
#[link(name = "windows")]
extern "system" {}
#[repr(transparent)]
pub struct HttpBufferContent(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for HttpBufferContent {}
impl ::core::clone::Clone for HttpBufferContent {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct HttpClient(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for HttpClient {}
impl ::core::clone::Clone for HttpClient {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct HttpCompletionOption(pub i32);
impl HttpCompletionOption {
    pub const ResponseContentRead: Self = Self(0i32);
    pub const ResponseHeadersRead: Self = Self(1i32);
}
impl ::core::marker::Copy for HttpCompletionOption {}
impl ::core::clone::Clone for HttpCompletionOption {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct HttpCookie(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for HttpCookie {}
impl ::core::clone::Clone for HttpCookie {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct HttpCookieCollection(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for HttpCookieCollection {}
impl ::core::clone::Clone for HttpCookieCollection {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct HttpCookieManager(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for HttpCookieManager {}
impl ::core::clone::Clone for HttpCookieManager {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct HttpFormUrlEncodedContent(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for HttpFormUrlEncodedContent {}
impl ::core::clone::Clone for HttpFormUrlEncodedContent {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct HttpGetBufferResult(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for HttpGetBufferResult {}
impl ::core::clone::Clone for HttpGetBufferResult {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct HttpGetInputStreamResult(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for HttpGetInputStreamResult {}
impl ::core::clone::Clone for HttpGetInputStreamResult {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct HttpGetStringResult(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for HttpGetStringResult {}
impl ::core::clone::Clone for HttpGetStringResult {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct HttpMethod(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for HttpMethod {}
impl ::core::clone::Clone for HttpMethod {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct HttpMultipartContent(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for HttpMultipartContent {}
impl ::core::clone::Clone for HttpMultipartContent {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct HttpMultipartFormDataContent(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for HttpMultipartFormDataContent {}
impl ::core::clone::Clone for HttpMultipartFormDataContent {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(C)]
#[cfg(feature = "Foundation")]
pub struct HttpProgress {
    pub Stage: HttpProgressStage,
    pub BytesSent: u64,
    pub TotalBytesToSend: super::super::Foundation::IReference<u64>,
    pub BytesReceived: u64,
    pub TotalBytesToReceive: super::super::Foundation::IReference<u64>,
    pub Retries: u32,
}
#[cfg(feature = "Foundation")]
impl ::core::marker::Copy for HttpProgress {}
#[cfg(feature = "Foundation")]
impl ::core::clone::Clone for HttpProgress {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct HttpProgressStage(pub i32);
impl HttpProgressStage {
    pub const None: Self = Self(0i32);
    pub const DetectingProxy: Self = Self(10i32);
    pub const ResolvingName: Self = Self(20i32);
    pub const ConnectingToServer: Self = Self(30i32);
    pub const NegotiatingSsl: Self = Self(40i32);
    pub const SendingHeaders: Self = Self(50i32);
    pub const SendingContent: Self = Self(60i32);
    pub const WaitingForResponse: Self = Self(70i32);
    pub const ReceivingHeaders: Self = Self(80i32);
    pub const ReceivingContent: Self = Self(90i32);
}
impl ::core::marker::Copy for HttpProgressStage {}
impl ::core::clone::Clone for HttpProgressStage {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct HttpRequestMessage(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for HttpRequestMessage {}
impl ::core::clone::Clone for HttpRequestMessage {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct HttpRequestResult(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for HttpRequestResult {}
impl ::core::clone::Clone for HttpRequestResult {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct HttpResponseMessage(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for HttpResponseMessage {}
impl ::core::clone::Clone for HttpResponseMessage {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct HttpResponseMessageSource(pub i32);
impl HttpResponseMessageSource {
    pub const None: Self = Self(0i32);
    pub const Cache: Self = Self(1i32);
    pub const Network: Self = Self(2i32);
}
impl ::core::marker::Copy for HttpResponseMessageSource {}
impl ::core::clone::Clone for HttpResponseMessageSource {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct HttpStatusCode(pub i32);
impl HttpStatusCode {
    pub const None: Self = Self(0i32);
    pub const Continue: Self = Self(100i32);
    pub const SwitchingProtocols: Self = Self(101i32);
    pub const Processing: Self = Self(102i32);
    pub const Ok: Self = Self(200i32);
    pub const Created: Self = Self(201i32);
    pub const Accepted: Self = Self(202i32);
    pub const NonAuthoritativeInformation: Self = Self(203i32);
    pub const NoContent: Self = Self(204i32);
    pub const ResetContent: Self = Self(205i32);
    pub const PartialContent: Self = Self(206i32);
    pub const MultiStatus: Self = Self(207i32);
    pub const AlreadyReported: Self = Self(208i32);
    pub const IMUsed: Self = Self(226i32);
    pub const MultipleChoices: Self = Self(300i32);
    pub const MovedPermanently: Self = Self(301i32);
    pub const Found: Self = Self(302i32);
    pub const SeeOther: Self = Self(303i32);
    pub const NotModified: Self = Self(304i32);
    pub const UseProxy: Self = Self(305i32);
    pub const TemporaryRedirect: Self = Self(307i32);
    pub const PermanentRedirect: Self = Self(308i32);
    pub const BadRequest: Self = Self(400i32);
    pub const Unauthorized: Self = Self(401i32);
    pub const PaymentRequired: Self = Self(402i32);
    pub const Forbidden: Self = Self(403i32);
    pub const NotFound: Self = Self(404i32);
    pub const MethodNotAllowed: Self = Self(405i32);
    pub const NotAcceptable: Self = Self(406i32);
    pub const ProxyAuthenticationRequired: Self = Self(407i32);
    pub const RequestTimeout: Self = Self(408i32);
    pub const Conflict: Self = Self(409i32);
    pub const Gone: Self = Self(410i32);
    pub const LengthRequired: Self = Self(411i32);
    pub const PreconditionFailed: Self = Self(412i32);
    pub const RequestEntityTooLarge: Self = Self(413i32);
    pub const RequestUriTooLong: Self = Self(414i32);
    pub const UnsupportedMediaType: Self = Self(415i32);
    pub const RequestedRangeNotSatisfiable: Self = Self(416i32);
    pub const ExpectationFailed: Self = Self(417i32);
    pub const UnprocessableEntity: Self = Self(422i32);
    pub const Locked: Self = Self(423i32);
    pub const FailedDependency: Self = Self(424i32);
    pub const UpgradeRequired: Self = Self(426i32);
    pub const PreconditionRequired: Self = Self(428i32);
    pub const TooManyRequests: Self = Self(429i32);
    pub const RequestHeaderFieldsTooLarge: Self = Self(431i32);
    pub const InternalServerError: Self = Self(500i32);
    pub const NotImplemented: Self = Self(501i32);
    pub const BadGateway: Self = Self(502i32);
    pub const ServiceUnavailable: Self = Self(503i32);
    pub const GatewayTimeout: Self = Self(504i32);
    pub const HttpVersionNotSupported: Self = Self(505i32);
    pub const VariantAlsoNegotiates: Self = Self(506i32);
    pub const InsufficientStorage: Self = Self(507i32);
    pub const LoopDetected: Self = Self(508i32);
    pub const NotExtended: Self = Self(510i32);
    pub const NetworkAuthenticationRequired: Self = Self(511i32);
}
impl ::core::marker::Copy for HttpStatusCode {}
impl ::core::clone::Clone for HttpStatusCode {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct HttpStreamContent(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for HttpStreamContent {}
impl ::core::clone::Clone for HttpStreamContent {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct HttpStringContent(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for HttpStringContent {}
impl ::core::clone::Clone for HttpStringContent {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct HttpTransportInformation(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for HttpTransportInformation {}
impl ::core::clone::Clone for HttpTransportInformation {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct HttpVersion(pub i32);
impl HttpVersion {
    pub const None: Self = Self(0i32);
    pub const Http10: Self = Self(1i32);
    pub const Http11: Self = Self(2i32);
    pub const Http20: Self = Self(3i32);
}
impl ::core::marker::Copy for HttpVersion {}
impl ::core::clone::Clone for HttpVersion {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IHttpBufferContentFactory(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IHttpBufferContentFactory {}
impl ::core::clone::Clone for IHttpBufferContentFactory {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IHttpClient(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IHttpClient {}
impl ::core::clone::Clone for IHttpClient {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IHttpClient2(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IHttpClient2 {}
impl ::core::clone::Clone for IHttpClient2 {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IHttpClientFactory(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IHttpClientFactory {}
impl ::core::clone::Clone for IHttpClientFactory {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IHttpContent(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IHttpContent {}
impl ::core::clone::Clone for IHttpContent {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IHttpCookie(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IHttpCookie {}
impl ::core::clone::Clone for IHttpCookie {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IHttpCookieFactory(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IHttpCookieFactory {}
impl ::core::clone::Clone for IHttpCookieFactory {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IHttpCookieManager(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IHttpCookieManager {}
impl ::core::clone::Clone for IHttpCookieManager {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IHttpFormUrlEncodedContentFactory(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IHttpFormUrlEncodedContentFactory {}
impl ::core::clone::Clone for IHttpFormUrlEncodedContentFactory {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IHttpGetBufferResult(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IHttpGetBufferResult {}
impl ::core::clone::Clone for IHttpGetBufferResult {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IHttpGetInputStreamResult(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IHttpGetInputStreamResult {}
impl ::core::clone::Clone for IHttpGetInputStreamResult {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IHttpGetStringResult(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IHttpGetStringResult {}
impl ::core::clone::Clone for IHttpGetStringResult {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IHttpMethod(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IHttpMethod {}
impl ::core::clone::Clone for IHttpMethod {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IHttpMethodFactory(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IHttpMethodFactory {}
impl ::core::clone::Clone for IHttpMethodFactory {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IHttpMethodStatics(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IHttpMethodStatics {}
impl ::core::clone::Clone for IHttpMethodStatics {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IHttpMultipartContent(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IHttpMultipartContent {}
impl ::core::clone::Clone for IHttpMultipartContent {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IHttpMultipartContentFactory(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IHttpMultipartContentFactory {}
impl ::core::clone::Clone for IHttpMultipartContentFactory {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IHttpMultipartFormDataContent(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IHttpMultipartFormDataContent {}
impl ::core::clone::Clone for IHttpMultipartFormDataContent {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IHttpMultipartFormDataContentFactory(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IHttpMultipartFormDataContentFactory {}
impl ::core::clone::Clone for IHttpMultipartFormDataContentFactory {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IHttpRequestMessage(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IHttpRequestMessage {}
impl ::core::clone::Clone for IHttpRequestMessage {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IHttpRequestMessageFactory(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IHttpRequestMessageFactory {}
impl ::core::clone::Clone for IHttpRequestMessageFactory {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IHttpRequestResult(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IHttpRequestResult {}
impl ::core::clone::Clone for IHttpRequestResult {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IHttpResponseMessage(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IHttpResponseMessage {}
impl ::core::clone::Clone for IHttpResponseMessage {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IHttpResponseMessageFactory(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IHttpResponseMessageFactory {}
impl ::core::clone::Clone for IHttpResponseMessageFactory {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IHttpStreamContentFactory(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IHttpStreamContentFactory {}
impl ::core::clone::Clone for IHttpStreamContentFactory {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IHttpStringContentFactory(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IHttpStringContentFactory {}
impl ::core::clone::Clone for IHttpStringContentFactory {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IHttpTransportInformation(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IHttpTransportInformation {}
impl ::core::clone::Clone for IHttpTransportInformation {
    fn clone(&self) -> Self {
        *self
    }
}