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
#![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)]
#[link(name = "windows")]
extern "system" {}
#[repr(transparent)]
pub struct IPhotoImportDeleteImportedItemsFromSourceResult(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IPhotoImportDeleteImportedItemsFromSourceResult {}
impl ::core::clone::Clone for IPhotoImportDeleteImportedItemsFromSourceResult {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IPhotoImportFindItemsResult(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IPhotoImportFindItemsResult {}
impl ::core::clone::Clone for IPhotoImportFindItemsResult {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IPhotoImportFindItemsResult2(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IPhotoImportFindItemsResult2 {}
impl ::core::clone::Clone for IPhotoImportFindItemsResult2 {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IPhotoImportImportItemsResult(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IPhotoImportImportItemsResult {}
impl ::core::clone::Clone for IPhotoImportImportItemsResult {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IPhotoImportItem(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IPhotoImportItem {}
impl ::core::clone::Clone for IPhotoImportItem {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IPhotoImportItem2(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IPhotoImportItem2 {}
impl ::core::clone::Clone for IPhotoImportItem2 {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IPhotoImportItemImportedEventArgs(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IPhotoImportItemImportedEventArgs {}
impl ::core::clone::Clone for IPhotoImportItemImportedEventArgs {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IPhotoImportManagerStatics(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IPhotoImportManagerStatics {}
impl ::core::clone::Clone for IPhotoImportManagerStatics {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IPhotoImportOperation(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IPhotoImportOperation {}
impl ::core::clone::Clone for IPhotoImportOperation {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IPhotoImportSelectionChangedEventArgs(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IPhotoImportSelectionChangedEventArgs {}
impl ::core::clone::Clone for IPhotoImportSelectionChangedEventArgs {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IPhotoImportSession(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IPhotoImportSession {}
impl ::core::clone::Clone for IPhotoImportSession {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IPhotoImportSession2(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IPhotoImportSession2 {}
impl ::core::clone::Clone for IPhotoImportSession2 {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IPhotoImportSidecar(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IPhotoImportSidecar {}
impl ::core::clone::Clone for IPhotoImportSidecar {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IPhotoImportSource(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IPhotoImportSource {}
impl ::core::clone::Clone for IPhotoImportSource {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IPhotoImportSourceStatics(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IPhotoImportSourceStatics {}
impl ::core::clone::Clone for IPhotoImportSourceStatics {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IPhotoImportStorageMedium(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IPhotoImportStorageMedium {}
impl ::core::clone::Clone for IPhotoImportStorageMedium {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IPhotoImportVideoSegment(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IPhotoImportVideoSegment {}
impl ::core::clone::Clone for IPhotoImportVideoSegment {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct PhotoImportAccessMode(pub i32);
impl PhotoImportAccessMode {
    pub const ReadWrite: Self = Self(0i32);
    pub const ReadOnly: Self = Self(1i32);
    pub const ReadAndDelete: Self = Self(2i32);
}
impl ::core::marker::Copy for PhotoImportAccessMode {}
impl ::core::clone::Clone for PhotoImportAccessMode {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct PhotoImportConnectionTransport(pub i32);
impl PhotoImportConnectionTransport {
    pub const Unknown: Self = Self(0i32);
    pub const Usb: Self = Self(1i32);
    pub const IP: Self = Self(2i32);
    pub const Bluetooth: Self = Self(3i32);
}
impl ::core::marker::Copy for PhotoImportConnectionTransport {}
impl ::core::clone::Clone for PhotoImportConnectionTransport {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct PhotoImportContentType(pub i32);
impl PhotoImportContentType {
    pub const Unknown: Self = Self(0i32);
    pub const Image: Self = Self(1i32);
    pub const Video: Self = Self(2i32);
}
impl ::core::marker::Copy for PhotoImportContentType {}
impl ::core::clone::Clone for PhotoImportContentType {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct PhotoImportContentTypeFilter(pub i32);
impl PhotoImportContentTypeFilter {
    pub const OnlyImages: Self = Self(0i32);
    pub const OnlyVideos: Self = Self(1i32);
    pub const ImagesAndVideos: Self = Self(2i32);
    pub const ImagesAndVideosFromCameraRoll: Self = Self(3i32);
}
impl ::core::marker::Copy for PhotoImportContentTypeFilter {}
impl ::core::clone::Clone for PhotoImportContentTypeFilter {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct PhotoImportDeleteImportedItemsFromSourceResult(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for PhotoImportDeleteImportedItemsFromSourceResult {}
impl ::core::clone::Clone for PhotoImportDeleteImportedItemsFromSourceResult {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct PhotoImportFindItemsResult(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for PhotoImportFindItemsResult {}
impl ::core::clone::Clone for PhotoImportFindItemsResult {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct PhotoImportImportItemsResult(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for PhotoImportImportItemsResult {}
impl ::core::clone::Clone for PhotoImportImportItemsResult {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct PhotoImportImportMode(pub i32);
impl PhotoImportImportMode {
    pub const ImportEverything: Self = Self(0i32);
    pub const IgnoreSidecars: Self = Self(1i32);
    pub const IgnoreSiblings: Self = Self(2i32);
    pub const IgnoreSidecarsAndSiblings: Self = Self(3i32);
}
impl ::core::marker::Copy for PhotoImportImportMode {}
impl ::core::clone::Clone for PhotoImportImportMode {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct PhotoImportItem(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for PhotoImportItem {}
impl ::core::clone::Clone for PhotoImportItem {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct PhotoImportItemImportedEventArgs(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for PhotoImportItemImportedEventArgs {}
impl ::core::clone::Clone for PhotoImportItemImportedEventArgs {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct PhotoImportItemSelectionMode(pub i32);
impl PhotoImportItemSelectionMode {
    pub const SelectAll: Self = Self(0i32);
    pub const SelectNone: Self = Self(1i32);
    pub const SelectNew: Self = Self(2i32);
}
impl ::core::marker::Copy for PhotoImportItemSelectionMode {}
impl ::core::clone::Clone for PhotoImportItemSelectionMode {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct PhotoImportOperation(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for PhotoImportOperation {}
impl ::core::clone::Clone for PhotoImportOperation {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct PhotoImportPowerSource(pub i32);
impl PhotoImportPowerSource {
    pub const Unknown: Self = Self(0i32);
    pub const Battery: Self = Self(1i32);
    pub const External: Self = Self(2i32);
}
impl ::core::marker::Copy for PhotoImportPowerSource {}
impl ::core::clone::Clone for PhotoImportPowerSource {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(C)]
pub struct PhotoImportProgress {
    pub ItemsImported: u32,
    pub TotalItemsToImport: u32,
    pub BytesImported: u64,
    pub TotalBytesToImport: u64,
    pub ImportProgress: f64,
}
impl ::core::marker::Copy for PhotoImportProgress {}
impl ::core::clone::Clone for PhotoImportProgress {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct PhotoImportSelectionChangedEventArgs(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for PhotoImportSelectionChangedEventArgs {}
impl ::core::clone::Clone for PhotoImportSelectionChangedEventArgs {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct PhotoImportSession(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for PhotoImportSession {}
impl ::core::clone::Clone for PhotoImportSession {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct PhotoImportSidecar(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for PhotoImportSidecar {}
impl ::core::clone::Clone for PhotoImportSidecar {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct PhotoImportSource(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for PhotoImportSource {}
impl ::core::clone::Clone for PhotoImportSource {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct PhotoImportSourceType(pub i32);
impl PhotoImportSourceType {
    pub const Generic: Self = Self(0i32);
    pub const Camera: Self = Self(1i32);
    pub const MediaPlayer: Self = Self(2i32);
    pub const Phone: Self = Self(3i32);
    pub const Video: Self = Self(4i32);
    pub const PersonalInfoManager: Self = Self(5i32);
    pub const AudioRecorder: Self = Self(6i32);
}
impl ::core::marker::Copy for PhotoImportSourceType {}
impl ::core::clone::Clone for PhotoImportSourceType {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct PhotoImportStage(pub i32);
impl PhotoImportStage {
    pub const NotStarted: Self = Self(0i32);
    pub const FindingItems: Self = Self(1i32);
    pub const ImportingItems: Self = Self(2i32);
    pub const DeletingImportedItemsFromSource: Self = Self(3i32);
}
impl ::core::marker::Copy for PhotoImportStage {}
impl ::core::clone::Clone for PhotoImportStage {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct PhotoImportStorageMedium(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for PhotoImportStorageMedium {}
impl ::core::clone::Clone for PhotoImportStorageMedium {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct PhotoImportStorageMediumType(pub i32);
impl PhotoImportStorageMediumType {
    pub const Undefined: Self = Self(0i32);
    pub const Fixed: Self = Self(1i32);
    pub const Removable: Self = Self(2i32);
}
impl ::core::marker::Copy for PhotoImportStorageMediumType {}
impl ::core::clone::Clone for PhotoImportStorageMediumType {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct PhotoImportSubfolderCreationMode(pub i32);
impl PhotoImportSubfolderCreationMode {
    pub const DoNotCreateSubfolders: Self = Self(0i32);
    pub const CreateSubfoldersFromFileDate: Self = Self(1i32);
    pub const CreateSubfoldersFromExifDate: Self = Self(2i32);
    pub const KeepOriginalFolderStructure: Self = Self(3i32);
}
impl ::core::marker::Copy for PhotoImportSubfolderCreationMode {}
impl ::core::clone::Clone for PhotoImportSubfolderCreationMode {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct PhotoImportSubfolderDateFormat(pub i32);
impl PhotoImportSubfolderDateFormat {
    pub const Year: Self = Self(0i32);
    pub const YearMonth: Self = Self(1i32);
    pub const YearMonthDay: Self = Self(2i32);
}
impl ::core::marker::Copy for PhotoImportSubfolderDateFormat {}
impl ::core::clone::Clone for PhotoImportSubfolderDateFormat {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct PhotoImportVideoSegment(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for PhotoImportVideoSegment {}
impl ::core::clone::Clone for PhotoImportVideoSegment {
    fn clone(&self) -> Self {
        *self
    }
}