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
#![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 BufferProtectUnprotectResult(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for BufferProtectUnprotectResult {}
impl ::core::clone::Clone for BufferProtectUnprotectResult {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct DataProtectionInfo(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for DataProtectionInfo {}
impl ::core::clone::Clone for DataProtectionInfo {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct DataProtectionStatus(pub i32);
impl DataProtectionStatus {
    pub const ProtectedToOtherIdentity: Self = Self(0i32);
    pub const Protected: Self = Self(1i32);
    pub const Revoked: Self = Self(2i32);
    pub const Unprotected: Self = Self(3i32);
    pub const LicenseExpired: Self = Self(4i32);
    pub const AccessSuspended: Self = Self(5i32);
}
impl ::core::marker::Copy for DataProtectionStatus {}
impl ::core::clone::Clone for DataProtectionStatus {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct EnforcementLevel(pub i32);
impl EnforcementLevel {
    pub const NoProtection: Self = Self(0i32);
    pub const Silent: Self = Self(1i32);
    pub const Override: Self = Self(2i32);
    pub const Block: Self = Self(3i32);
}
impl ::core::marker::Copy for EnforcementLevel {}
impl ::core::clone::Clone for EnforcementLevel {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct FileProtectionInfo(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for FileProtectionInfo {}
impl ::core::clone::Clone for FileProtectionInfo {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct FileProtectionStatus(pub i32);
impl FileProtectionStatus {
    pub const Undetermined: Self = Self(0i32);
    pub const Unknown: Self = Self(0i32);
    pub const Unprotected: Self = Self(1i32);
    pub const Revoked: Self = Self(2i32);
    pub const Protected: Self = Self(3i32);
    pub const ProtectedByOtherUser: Self = Self(4i32);
    pub const ProtectedToOtherEnterprise: Self = Self(5i32);
    pub const NotProtectable: Self = Self(6i32);
    pub const ProtectedToOtherIdentity: Self = Self(7i32);
    pub const LicenseExpired: Self = Self(8i32);
    pub const AccessSuspended: Self = Self(9i32);
    pub const FileInUse: Self = Self(10i32);
}
impl ::core::marker::Copy for FileProtectionStatus {}
impl ::core::clone::Clone for FileProtectionStatus {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct FileUnprotectOptions(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for FileUnprotectOptions {}
impl ::core::clone::Clone for FileUnprotectOptions {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IBufferProtectUnprotectResult(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IBufferProtectUnprotectResult {}
impl ::core::clone::Clone for IBufferProtectUnprotectResult {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IDataProtectionInfo(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IDataProtectionInfo {}
impl ::core::clone::Clone for IDataProtectionInfo {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IDataProtectionManagerStatics(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IDataProtectionManagerStatics {}
impl ::core::clone::Clone for IDataProtectionManagerStatics {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IFileProtectionInfo(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IFileProtectionInfo {}
impl ::core::clone::Clone for IFileProtectionInfo {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IFileProtectionInfo2(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IFileProtectionInfo2 {}
impl ::core::clone::Clone for IFileProtectionInfo2 {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IFileProtectionManagerStatics(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IFileProtectionManagerStatics {}
impl ::core::clone::Clone for IFileProtectionManagerStatics {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IFileProtectionManagerStatics2(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IFileProtectionManagerStatics2 {}
impl ::core::clone::Clone for IFileProtectionManagerStatics2 {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IFileProtectionManagerStatics3(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IFileProtectionManagerStatics3 {}
impl ::core::clone::Clone for IFileProtectionManagerStatics3 {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IFileRevocationManagerStatics(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IFileRevocationManagerStatics {}
impl ::core::clone::Clone for IFileRevocationManagerStatics {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IFileUnprotectOptions(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IFileUnprotectOptions {}
impl ::core::clone::Clone for IFileUnprotectOptions {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IFileUnprotectOptionsFactory(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IFileUnprotectOptionsFactory {}
impl ::core::clone::Clone for IFileUnprotectOptionsFactory {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IProtectedAccessResumedEventArgs(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IProtectedAccessResumedEventArgs {}
impl ::core::clone::Clone for IProtectedAccessResumedEventArgs {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IProtectedAccessSuspendingEventArgs(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IProtectedAccessSuspendingEventArgs {}
impl ::core::clone::Clone for IProtectedAccessSuspendingEventArgs {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IProtectedContainerExportResult(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IProtectedContainerExportResult {}
impl ::core::clone::Clone for IProtectedContainerExportResult {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IProtectedContainerImportResult(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IProtectedContainerImportResult {}
impl ::core::clone::Clone for IProtectedContainerImportResult {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IProtectedContentRevokedEventArgs(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IProtectedContentRevokedEventArgs {}
impl ::core::clone::Clone for IProtectedContentRevokedEventArgs {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IProtectedFileCreateResult(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IProtectedFileCreateResult {}
impl ::core::clone::Clone for IProtectedFileCreateResult {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IProtectionPolicyAuditInfo(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IProtectionPolicyAuditInfo {}
impl ::core::clone::Clone for IProtectionPolicyAuditInfo {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IProtectionPolicyAuditInfoFactory(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IProtectionPolicyAuditInfoFactory {}
impl ::core::clone::Clone for IProtectionPolicyAuditInfoFactory {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IProtectionPolicyManager(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IProtectionPolicyManager {}
impl ::core::clone::Clone for IProtectionPolicyManager {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IProtectionPolicyManager2(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IProtectionPolicyManager2 {}
impl ::core::clone::Clone for IProtectionPolicyManager2 {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IProtectionPolicyManagerStatics(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IProtectionPolicyManagerStatics {}
impl ::core::clone::Clone for IProtectionPolicyManagerStatics {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IProtectionPolicyManagerStatics2(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IProtectionPolicyManagerStatics2 {}
impl ::core::clone::Clone for IProtectionPolicyManagerStatics2 {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IProtectionPolicyManagerStatics3(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IProtectionPolicyManagerStatics3 {}
impl ::core::clone::Clone for IProtectionPolicyManagerStatics3 {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IProtectionPolicyManagerStatics4(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IProtectionPolicyManagerStatics4 {}
impl ::core::clone::Clone for IProtectionPolicyManagerStatics4 {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IThreadNetworkContext(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IThreadNetworkContext {}
impl ::core::clone::Clone for IThreadNetworkContext {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ProtectedAccessResumedEventArgs(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ProtectedAccessResumedEventArgs {}
impl ::core::clone::Clone for ProtectedAccessResumedEventArgs {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ProtectedAccessSuspendingEventArgs(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ProtectedAccessSuspendingEventArgs {}
impl ::core::clone::Clone for ProtectedAccessSuspendingEventArgs {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ProtectedContainerExportResult(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ProtectedContainerExportResult {}
impl ::core::clone::Clone for ProtectedContainerExportResult {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ProtectedContainerImportResult(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ProtectedContainerImportResult {}
impl ::core::clone::Clone for ProtectedContainerImportResult {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ProtectedContentRevokedEventArgs(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ProtectedContentRevokedEventArgs {}
impl ::core::clone::Clone for ProtectedContentRevokedEventArgs {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ProtectedFileCreateResult(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ProtectedFileCreateResult {}
impl ::core::clone::Clone for ProtectedFileCreateResult {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ProtectedImportExportStatus(pub i32);
impl ProtectedImportExportStatus {
    pub const Ok: Self = Self(0i32);
    pub const Undetermined: Self = Self(1i32);
    pub const Unprotected: Self = Self(2i32);
    pub const Revoked: Self = Self(3i32);
    pub const NotRoamable: Self = Self(4i32);
    pub const ProtectedToOtherIdentity: Self = Self(5i32);
    pub const LicenseExpired: Self = Self(6i32);
    pub const AccessSuspended: Self = Self(7i32);
}
impl ::core::marker::Copy for ProtectedImportExportStatus {}
impl ::core::clone::Clone for ProtectedImportExportStatus {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ProtectionPolicyAuditAction(pub i32);
impl ProtectionPolicyAuditAction {
    pub const Decrypt: Self = Self(0i32);
    pub const CopyToLocation: Self = Self(1i32);
    pub const SendToRecipient: Self = Self(2i32);
    pub const Other: Self = Self(3i32);
}
impl ::core::marker::Copy for ProtectionPolicyAuditAction {}
impl ::core::clone::Clone for ProtectionPolicyAuditAction {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ProtectionPolicyAuditInfo(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ProtectionPolicyAuditInfo {}
impl ::core::clone::Clone for ProtectionPolicyAuditInfo {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ProtectionPolicyEvaluationResult(pub i32);
impl ProtectionPolicyEvaluationResult {
    pub const Allowed: Self = Self(0i32);
    pub const Blocked: Self = Self(1i32);
    pub const ConsentRequired: Self = Self(2i32);
}
impl ::core::marker::Copy for ProtectionPolicyEvaluationResult {}
impl ::core::clone::Clone for ProtectionPolicyEvaluationResult {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ProtectionPolicyManager(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ProtectionPolicyManager {}
impl ::core::clone::Clone for ProtectionPolicyManager {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ProtectionPolicyRequestAccessBehavior(pub i32);
impl ProtectionPolicyRequestAccessBehavior {
    pub const Decrypt: Self = Self(0i32);
    pub const TreatOverridePolicyAsBlock: Self = Self(1i32);
}
impl ::core::marker::Copy for ProtectionPolicyRequestAccessBehavior {}
impl ::core::clone::Clone for ProtectionPolicyRequestAccessBehavior {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ThreadNetworkContext(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ThreadNetworkContext {}
impl ::core::clone::Clone for ThreadNetworkContext {
    fn clone(&self) -> Self {
        *self
    }
}