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
#![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)]
#[cfg(feature = "Foundation_Collections")]
pub mod Collections;
#[cfg(feature = "Foundation_Diagnostics")]
pub mod Diagnostics;
#[cfg(feature = "Foundation_Metadata")]
pub mod Metadata;
#[cfg(feature = "Foundation_Numerics")]
pub mod Numerics;
#[link(name = "windows")]
extern "system" {}
#[repr(transparent)]
pub struct AsyncActionCompletedHandler(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for AsyncActionCompletedHandler {}
impl ::core::clone::Clone for AsyncActionCompletedHandler {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct AsyncActionProgressHandler<TProgress>(pub *mut ::core::ffi::c_void, ::core::marker::PhantomData<TProgress>);
impl<TProgress> ::core::marker::Copy for AsyncActionProgressHandler<TProgress> {}
impl<TProgress> ::core::clone::Clone for AsyncActionProgressHandler<TProgress> {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct AsyncActionWithProgressCompletedHandler<TProgress>(pub *mut ::core::ffi::c_void, ::core::marker::PhantomData<TProgress>);
impl<TProgress> ::core::marker::Copy for AsyncActionWithProgressCompletedHandler<TProgress> {}
impl<TProgress> ::core::clone::Clone for AsyncActionWithProgressCompletedHandler<TProgress> {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct AsyncOperationCompletedHandler<TResult>(pub *mut ::core::ffi::c_void, ::core::marker::PhantomData<TResult>);
impl<TResult> ::core::marker::Copy for AsyncOperationCompletedHandler<TResult> {}
impl<TResult> ::core::clone::Clone for AsyncOperationCompletedHandler<TResult> {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct AsyncOperationProgressHandler<TResult, TProgress>(pub *mut ::core::ffi::c_void, ::core::marker::PhantomData<TResult>, ::core::marker::PhantomData<TProgress>);
impl<TResult, TProgress> ::core::marker::Copy for AsyncOperationProgressHandler<TResult, TProgress> {}
impl<TResult, TProgress> ::core::clone::Clone for AsyncOperationProgressHandler<TResult, TProgress> {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct AsyncOperationWithProgressCompletedHandler<TResult, TProgress>(pub *mut ::core::ffi::c_void, ::core::marker::PhantomData<TResult>, ::core::marker::PhantomData<TProgress>);
impl<TResult, TProgress> ::core::marker::Copy for AsyncOperationWithProgressCompletedHandler<TResult, TProgress> {}
impl<TResult, TProgress> ::core::clone::Clone for AsyncOperationWithProgressCompletedHandler<TResult, TProgress> {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct AsyncStatus(pub i32);
impl AsyncStatus {
    pub const Canceled: Self = Self(2i32);
    pub const Completed: Self = Self(1i32);
    pub const Error: Self = Self(3i32);
    pub const Started: Self = Self(0i32);
}
impl ::core::marker::Copy for AsyncStatus {}
impl ::core::clone::Clone for AsyncStatus {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(C)]
pub struct DateTime {
    pub UniversalTime: i64,
}
impl ::core::marker::Copy for DateTime {}
impl ::core::clone::Clone for DateTime {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct Deferral(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for Deferral {}
impl ::core::clone::Clone for Deferral {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct DeferralCompletedHandler(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for DeferralCompletedHandler {}
impl ::core::clone::Clone for DeferralCompletedHandler {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct EventHandler<T>(pub *mut ::core::ffi::c_void, ::core::marker::PhantomData<T>);
impl<T> ::core::marker::Copy for EventHandler<T> {}
impl<T> ::core::clone::Clone for EventHandler<T> {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(C)]
pub struct EventRegistrationToken {
    pub Value: i64,
}
impl ::core::marker::Copy for EventRegistrationToken {}
impl ::core::clone::Clone for EventRegistrationToken {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IAsyncAction(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IAsyncAction {}
impl ::core::clone::Clone for IAsyncAction {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IAsyncActionWithProgress<TProgress>(pub *mut ::core::ffi::c_void, ::core::marker::PhantomData<TProgress>);
impl<TProgress> ::core::marker::Copy for IAsyncActionWithProgress<TProgress> {}
impl<TProgress> ::core::clone::Clone for IAsyncActionWithProgress<TProgress> {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IAsyncInfo(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IAsyncInfo {}
impl ::core::clone::Clone for IAsyncInfo {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IAsyncOperation<TResult>(pub *mut ::core::ffi::c_void, ::core::marker::PhantomData<TResult>);
impl<TResult> ::core::marker::Copy for IAsyncOperation<TResult> {}
impl<TResult> ::core::clone::Clone for IAsyncOperation<TResult> {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IAsyncOperationWithProgress<TResult, TProgress>(pub *mut ::core::ffi::c_void, ::core::marker::PhantomData<TResult>, ::core::marker::PhantomData<TProgress>);
impl<TResult, TProgress> ::core::marker::Copy for IAsyncOperationWithProgress<TResult, TProgress> {}
impl<TResult, TProgress> ::core::clone::Clone for IAsyncOperationWithProgress<TResult, TProgress> {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IClosable(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IClosable {}
impl ::core::clone::Clone for IClosable {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IDeferral(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IDeferral {}
impl ::core::clone::Clone for IDeferral {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IDeferralFactory(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IDeferralFactory {}
impl ::core::clone::Clone for IDeferralFactory {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IGetActivationFactory(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IGetActivationFactory {}
impl ::core::clone::Clone for IGetActivationFactory {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IGuidHelperStatics(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IGuidHelperStatics {}
impl ::core::clone::Clone for IGuidHelperStatics {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IMemoryBuffer(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IMemoryBuffer {}
impl ::core::clone::Clone for IMemoryBuffer {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IMemoryBufferFactory(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IMemoryBufferFactory {}
impl ::core::clone::Clone for IMemoryBufferFactory {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IMemoryBufferReference(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IMemoryBufferReference {}
impl ::core::clone::Clone for IMemoryBufferReference {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IPropertyValue(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IPropertyValue {}
impl ::core::clone::Clone for IPropertyValue {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IPropertyValueStatics(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IPropertyValueStatics {}
impl ::core::clone::Clone for IPropertyValueStatics {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IReference<T>(pub *mut ::core::ffi::c_void, ::core::marker::PhantomData<T>);
impl<T> ::core::marker::Copy for IReference<T> {}
impl<T> ::core::clone::Clone for IReference<T> {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IReferenceArray<T>(pub *mut ::core::ffi::c_void, ::core::marker::PhantomData<T>);
impl<T> ::core::marker::Copy for IReferenceArray<T> {}
impl<T> ::core::clone::Clone for IReferenceArray<T> {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IStringable(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IStringable {}
impl ::core::clone::Clone for IStringable {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IUriEscapeStatics(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IUriEscapeStatics {}
impl ::core::clone::Clone for IUriEscapeStatics {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IUriRuntimeClass(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IUriRuntimeClass {}
impl ::core::clone::Clone for IUriRuntimeClass {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IUriRuntimeClassFactory(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IUriRuntimeClassFactory {}
impl ::core::clone::Clone for IUriRuntimeClassFactory {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IUriRuntimeClassWithAbsoluteCanonicalUri(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IUriRuntimeClassWithAbsoluteCanonicalUri {}
impl ::core::clone::Clone for IUriRuntimeClassWithAbsoluteCanonicalUri {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IWwwFormUrlDecoderEntry(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IWwwFormUrlDecoderEntry {}
impl ::core::clone::Clone for IWwwFormUrlDecoderEntry {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IWwwFormUrlDecoderRuntimeClass(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IWwwFormUrlDecoderRuntimeClass {}
impl ::core::clone::Clone for IWwwFormUrlDecoderRuntimeClass {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IWwwFormUrlDecoderRuntimeClassFactory(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IWwwFormUrlDecoderRuntimeClassFactory {}
impl ::core::clone::Clone for IWwwFormUrlDecoderRuntimeClassFactory {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct MemoryBuffer(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for MemoryBuffer {}
impl ::core::clone::Clone for MemoryBuffer {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(C)]
pub struct Point {
    pub X: f32,
    pub Y: f32,
}
impl ::core::marker::Copy for Point {}
impl ::core::clone::Clone for Point {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct PropertyType(pub i32);
impl PropertyType {
    pub const Empty: Self = Self(0i32);
    pub const UInt8: Self = Self(1i32);
    pub const Int16: Self = Self(2i32);
    pub const UInt16: Self = Self(3i32);
    pub const Int32: Self = Self(4i32);
    pub const UInt32: Self = Self(5i32);
    pub const Int64: Self = Self(6i32);
    pub const UInt64: Self = Self(7i32);
    pub const Single: Self = Self(8i32);
    pub const Double: Self = Self(9i32);
    pub const Char16: Self = Self(10i32);
    pub const Boolean: Self = Self(11i32);
    pub const String: Self = Self(12i32);
    pub const Inspectable: Self = Self(13i32);
    pub const DateTime: Self = Self(14i32);
    pub const TimeSpan: Self = Self(15i32);
    pub const Guid: Self = Self(16i32);
    pub const Point: Self = Self(17i32);
    pub const Size: Self = Self(18i32);
    pub const Rect: Self = Self(19i32);
    pub const OtherType: Self = Self(20i32);
    pub const UInt8Array: Self = Self(1025i32);
    pub const Int16Array: Self = Self(1026i32);
    pub const UInt16Array: Self = Self(1027i32);
    pub const Int32Array: Self = Self(1028i32);
    pub const UInt32Array: Self = Self(1029i32);
    pub const Int64Array: Self = Self(1030i32);
    pub const UInt64Array: Self = Self(1031i32);
    pub const SingleArray: Self = Self(1032i32);
    pub const DoubleArray: Self = Self(1033i32);
    pub const Char16Array: Self = Self(1034i32);
    pub const BooleanArray: Self = Self(1035i32);
    pub const StringArray: Self = Self(1036i32);
    pub const InspectableArray: Self = Self(1037i32);
    pub const DateTimeArray: Self = Self(1038i32);
    pub const TimeSpanArray: Self = Self(1039i32);
    pub const GuidArray: Self = Self(1040i32);
    pub const PointArray: Self = Self(1041i32);
    pub const SizeArray: Self = Self(1042i32);
    pub const RectArray: Self = Self(1043i32);
    pub const OtherTypeArray: Self = Self(1044i32);
}
impl ::core::marker::Copy for PropertyType {}
impl ::core::clone::Clone for PropertyType {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(C)]
pub struct Rect {
    pub X: f32,
    pub Y: f32,
    pub Width: f32,
    pub Height: f32,
}
impl ::core::marker::Copy for Rect {}
impl ::core::clone::Clone for Rect {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(C)]
pub struct Size {
    pub Width: f32,
    pub Height: f32,
}
impl ::core::marker::Copy for Size {}
impl ::core::clone::Clone for Size {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(C)]
pub struct TimeSpan {
    pub Duration: i64,
}
impl ::core::marker::Copy for TimeSpan {}
impl ::core::clone::Clone for TimeSpan {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct TypedEventHandler<TSender, TResult>(pub *mut ::core::ffi::c_void, ::core::marker::PhantomData<TSender>, ::core::marker::PhantomData<TResult>);
impl<TSender, TResult> ::core::marker::Copy for TypedEventHandler<TSender, TResult> {}
impl<TSender, TResult> ::core::clone::Clone for TypedEventHandler<TSender, TResult> {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct Uri(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for Uri {}
impl ::core::clone::Clone for Uri {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct WwwFormUrlDecoder(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for WwwFormUrlDecoder {}
impl ::core::clone::Clone for WwwFormUrlDecoder {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct WwwFormUrlDecoderEntry(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for WwwFormUrlDecoderEntry {}
impl ::core::clone::Clone for WwwFormUrlDecoderEntry {
    fn clone(&self) -> Self {
        *self
    }
}