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
#![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 ISpeechContinuousRecognitionCompletedEventArgs(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ISpeechContinuousRecognitionCompletedEventArgs {}
impl ::core::clone::Clone for ISpeechContinuousRecognitionCompletedEventArgs {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ISpeechContinuousRecognitionResultGeneratedEventArgs(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ISpeechContinuousRecognitionResultGeneratedEventArgs {}
impl ::core::clone::Clone for ISpeechContinuousRecognitionResultGeneratedEventArgs {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ISpeechContinuousRecognitionSession(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ISpeechContinuousRecognitionSession {}
impl ::core::clone::Clone for ISpeechContinuousRecognitionSession {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ISpeechRecognitionCompilationResult(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ISpeechRecognitionCompilationResult {}
impl ::core::clone::Clone for ISpeechRecognitionCompilationResult {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ISpeechRecognitionConstraint(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ISpeechRecognitionConstraint {}
impl ::core::clone::Clone for ISpeechRecognitionConstraint {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ISpeechRecognitionGrammarFileConstraint(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ISpeechRecognitionGrammarFileConstraint {}
impl ::core::clone::Clone for ISpeechRecognitionGrammarFileConstraint {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ISpeechRecognitionGrammarFileConstraintFactory(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ISpeechRecognitionGrammarFileConstraintFactory {}
impl ::core::clone::Clone for ISpeechRecognitionGrammarFileConstraintFactory {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ISpeechRecognitionHypothesis(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ISpeechRecognitionHypothesis {}
impl ::core::clone::Clone for ISpeechRecognitionHypothesis {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ISpeechRecognitionHypothesisGeneratedEventArgs(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ISpeechRecognitionHypothesisGeneratedEventArgs {}
impl ::core::clone::Clone for ISpeechRecognitionHypothesisGeneratedEventArgs {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ISpeechRecognitionListConstraint(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ISpeechRecognitionListConstraint {}
impl ::core::clone::Clone for ISpeechRecognitionListConstraint {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ISpeechRecognitionListConstraintFactory(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ISpeechRecognitionListConstraintFactory {}
impl ::core::clone::Clone for ISpeechRecognitionListConstraintFactory {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ISpeechRecognitionQualityDegradingEventArgs(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ISpeechRecognitionQualityDegradingEventArgs {}
impl ::core::clone::Clone for ISpeechRecognitionQualityDegradingEventArgs {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ISpeechRecognitionResult(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ISpeechRecognitionResult {}
impl ::core::clone::Clone for ISpeechRecognitionResult {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ISpeechRecognitionResult2(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ISpeechRecognitionResult2 {}
impl ::core::clone::Clone for ISpeechRecognitionResult2 {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ISpeechRecognitionSemanticInterpretation(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ISpeechRecognitionSemanticInterpretation {}
impl ::core::clone::Clone for ISpeechRecognitionSemanticInterpretation {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ISpeechRecognitionTopicConstraint(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ISpeechRecognitionTopicConstraint {}
impl ::core::clone::Clone for ISpeechRecognitionTopicConstraint {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ISpeechRecognitionTopicConstraintFactory(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ISpeechRecognitionTopicConstraintFactory {}
impl ::core::clone::Clone for ISpeechRecognitionTopicConstraintFactory {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ISpeechRecognitionVoiceCommandDefinitionConstraint(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ISpeechRecognitionVoiceCommandDefinitionConstraint {}
impl ::core::clone::Clone for ISpeechRecognitionVoiceCommandDefinitionConstraint {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ISpeechRecognizer(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ISpeechRecognizer {}
impl ::core::clone::Clone for ISpeechRecognizer {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ISpeechRecognizer2(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ISpeechRecognizer2 {}
impl ::core::clone::Clone for ISpeechRecognizer2 {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ISpeechRecognizerFactory(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ISpeechRecognizerFactory {}
impl ::core::clone::Clone for ISpeechRecognizerFactory {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ISpeechRecognizerStateChangedEventArgs(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ISpeechRecognizerStateChangedEventArgs {}
impl ::core::clone::Clone for ISpeechRecognizerStateChangedEventArgs {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ISpeechRecognizerStatics(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ISpeechRecognizerStatics {}
impl ::core::clone::Clone for ISpeechRecognizerStatics {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ISpeechRecognizerStatics2(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ISpeechRecognizerStatics2 {}
impl ::core::clone::Clone for ISpeechRecognizerStatics2 {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ISpeechRecognizerTimeouts(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ISpeechRecognizerTimeouts {}
impl ::core::clone::Clone for ISpeechRecognizerTimeouts {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ISpeechRecognizerUIOptions(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ISpeechRecognizerUIOptions {}
impl ::core::clone::Clone for ISpeechRecognizerUIOptions {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IVoiceCommandManager(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IVoiceCommandManager {}
impl ::core::clone::Clone for IVoiceCommandManager {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IVoiceCommandSet(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IVoiceCommandSet {}
impl ::core::clone::Clone for IVoiceCommandSet {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct SpeechContinuousRecognitionCompletedEventArgs(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for SpeechContinuousRecognitionCompletedEventArgs {}
impl ::core::clone::Clone for SpeechContinuousRecognitionCompletedEventArgs {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct SpeechContinuousRecognitionMode(pub i32);
impl SpeechContinuousRecognitionMode {
    pub const Default: Self = Self(0i32);
    pub const PauseOnRecognition: Self = Self(1i32);
}
impl ::core::marker::Copy for SpeechContinuousRecognitionMode {}
impl ::core::clone::Clone for SpeechContinuousRecognitionMode {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct SpeechContinuousRecognitionResultGeneratedEventArgs(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for SpeechContinuousRecognitionResultGeneratedEventArgs {}
impl ::core::clone::Clone for SpeechContinuousRecognitionResultGeneratedEventArgs {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct SpeechContinuousRecognitionSession(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for SpeechContinuousRecognitionSession {}
impl ::core::clone::Clone for SpeechContinuousRecognitionSession {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct SpeechRecognitionAudioProblem(pub i32);
impl SpeechRecognitionAudioProblem {
    pub const None: Self = Self(0i32);
    pub const TooNoisy: Self = Self(1i32);
    pub const NoSignal: Self = Self(2i32);
    pub const TooLoud: Self = Self(3i32);
    pub const TooQuiet: Self = Self(4i32);
    pub const TooFast: Self = Self(5i32);
    pub const TooSlow: Self = Self(6i32);
}
impl ::core::marker::Copy for SpeechRecognitionAudioProblem {}
impl ::core::clone::Clone for SpeechRecognitionAudioProblem {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct SpeechRecognitionCompilationResult(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for SpeechRecognitionCompilationResult {}
impl ::core::clone::Clone for SpeechRecognitionCompilationResult {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct SpeechRecognitionConfidence(pub i32);
impl SpeechRecognitionConfidence {
    pub const High: Self = Self(0i32);
    pub const Medium: Self = Self(1i32);
    pub const Low: Self = Self(2i32);
    pub const Rejected: Self = Self(3i32);
}
impl ::core::marker::Copy for SpeechRecognitionConfidence {}
impl ::core::clone::Clone for SpeechRecognitionConfidence {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct SpeechRecognitionConstraintProbability(pub i32);
impl SpeechRecognitionConstraintProbability {
    pub const Default: Self = Self(0i32);
    pub const Min: Self = Self(1i32);
    pub const Max: Self = Self(2i32);
}
impl ::core::marker::Copy for SpeechRecognitionConstraintProbability {}
impl ::core::clone::Clone for SpeechRecognitionConstraintProbability {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct SpeechRecognitionConstraintType(pub i32);
impl SpeechRecognitionConstraintType {
    pub const Topic: Self = Self(0i32);
    pub const List: Self = Self(1i32);
    pub const Grammar: Self = Self(2i32);
    pub const VoiceCommandDefinition: Self = Self(3i32);
}
impl ::core::marker::Copy for SpeechRecognitionConstraintType {}
impl ::core::clone::Clone for SpeechRecognitionConstraintType {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct SpeechRecognitionGrammarFileConstraint(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for SpeechRecognitionGrammarFileConstraint {}
impl ::core::clone::Clone for SpeechRecognitionGrammarFileConstraint {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct SpeechRecognitionHypothesis(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for SpeechRecognitionHypothesis {}
impl ::core::clone::Clone for SpeechRecognitionHypothesis {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct SpeechRecognitionHypothesisGeneratedEventArgs(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for SpeechRecognitionHypothesisGeneratedEventArgs {}
impl ::core::clone::Clone for SpeechRecognitionHypothesisGeneratedEventArgs {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct SpeechRecognitionListConstraint(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for SpeechRecognitionListConstraint {}
impl ::core::clone::Clone for SpeechRecognitionListConstraint {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct SpeechRecognitionQualityDegradingEventArgs(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for SpeechRecognitionQualityDegradingEventArgs {}
impl ::core::clone::Clone for SpeechRecognitionQualityDegradingEventArgs {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct SpeechRecognitionResult(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for SpeechRecognitionResult {}
impl ::core::clone::Clone for SpeechRecognitionResult {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct SpeechRecognitionResultStatus(pub i32);
impl SpeechRecognitionResultStatus {
    pub const Success: Self = Self(0i32);
    pub const TopicLanguageNotSupported: Self = Self(1i32);
    pub const GrammarLanguageMismatch: Self = Self(2i32);
    pub const GrammarCompilationFailure: Self = Self(3i32);
    pub const AudioQualityFailure: Self = Self(4i32);
    pub const UserCanceled: Self = Self(5i32);
    pub const Unknown: Self = Self(6i32);
    pub const TimeoutExceeded: Self = Self(7i32);
    pub const PauseLimitExceeded: Self = Self(8i32);
    pub const NetworkFailure: Self = Self(9i32);
    pub const MicrophoneUnavailable: Self = Self(10i32);
}
impl ::core::marker::Copy for SpeechRecognitionResultStatus {}
impl ::core::clone::Clone for SpeechRecognitionResultStatus {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct SpeechRecognitionScenario(pub i32);
impl SpeechRecognitionScenario {
    pub const WebSearch: Self = Self(0i32);
    pub const Dictation: Self = Self(1i32);
    pub const FormFilling: Self = Self(2i32);
}
impl ::core::marker::Copy for SpeechRecognitionScenario {}
impl ::core::clone::Clone for SpeechRecognitionScenario {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct SpeechRecognitionSemanticInterpretation(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for SpeechRecognitionSemanticInterpretation {}
impl ::core::clone::Clone for SpeechRecognitionSemanticInterpretation {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct SpeechRecognitionTopicConstraint(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for SpeechRecognitionTopicConstraint {}
impl ::core::clone::Clone for SpeechRecognitionTopicConstraint {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct SpeechRecognitionVoiceCommandDefinitionConstraint(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for SpeechRecognitionVoiceCommandDefinitionConstraint {}
impl ::core::clone::Clone for SpeechRecognitionVoiceCommandDefinitionConstraint {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct SpeechRecognizer(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for SpeechRecognizer {}
impl ::core::clone::Clone for SpeechRecognizer {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct SpeechRecognizerState(pub i32);
impl SpeechRecognizerState {
    pub const Idle: Self = Self(0i32);
    pub const Capturing: Self = Self(1i32);
    pub const Processing: Self = Self(2i32);
    pub const SoundStarted: Self = Self(3i32);
    pub const SoundEnded: Self = Self(4i32);
    pub const SpeechDetected: Self = Self(5i32);
    pub const Paused: Self = Self(6i32);
}
impl ::core::marker::Copy for SpeechRecognizerState {}
impl ::core::clone::Clone for SpeechRecognizerState {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct SpeechRecognizerStateChangedEventArgs(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for SpeechRecognizerStateChangedEventArgs {}
impl ::core::clone::Clone for SpeechRecognizerStateChangedEventArgs {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct SpeechRecognizerTimeouts(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for SpeechRecognizerTimeouts {}
impl ::core::clone::Clone for SpeechRecognizerTimeouts {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct SpeechRecognizerUIOptions(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for SpeechRecognizerUIOptions {}
impl ::core::clone::Clone for SpeechRecognizerUIOptions {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct VoiceCommandSet(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for VoiceCommandSet {}
impl ::core::clone::Clone for VoiceCommandSet {
    fn clone(&self) -> Self {
        *self
    }
}