summaryrefslogtreecommitdiffstats
path: root/vendor/windows-sys/src/Windows/Win32/Devices/Communication/mod.rs
blob: dbf09f509b615a7bd064f227749ff9c4f9adb578 (plain)
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
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
#[cfg_attr(windows, link(name = "windows"))]
extern "system" {
    #[doc = "*Required features: `\"Win32_Devices_Communication\"`, `\"Win32_Foundation\"`*"]
    #[cfg(feature = "Win32_Foundation")]
    pub fn BuildCommDCBA(lpdef: ::windows_sys::core::PCSTR, lpdcb: *mut DCB) -> super::super::Foundation::BOOL;
    #[doc = "*Required features: `\"Win32_Devices_Communication\"`, `\"Win32_Foundation\"`*"]
    #[cfg(feature = "Win32_Foundation")]
    pub fn BuildCommDCBAndTimeoutsA(lpdef: ::windows_sys::core::PCSTR, lpdcb: *mut DCB, lpcommtimeouts: *mut COMMTIMEOUTS) -> super::super::Foundation::BOOL;
    #[doc = "*Required features: `\"Win32_Devices_Communication\"`, `\"Win32_Foundation\"`*"]
    #[cfg(feature = "Win32_Foundation")]
    pub fn BuildCommDCBAndTimeoutsW(lpdef: ::windows_sys::core::PCWSTR, lpdcb: *mut DCB, lpcommtimeouts: *mut COMMTIMEOUTS) -> super::super::Foundation::BOOL;
    #[doc = "*Required features: `\"Win32_Devices_Communication\"`, `\"Win32_Foundation\"`*"]
    #[cfg(feature = "Win32_Foundation")]
    pub fn BuildCommDCBW(lpdef: ::windows_sys::core::PCWSTR, lpdcb: *mut DCB) -> super::super::Foundation::BOOL;
    #[doc = "*Required features: `\"Win32_Devices_Communication\"`, `\"Win32_Foundation\"`*"]
    #[cfg(feature = "Win32_Foundation")]
    pub fn ClearCommBreak(hfile: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL;
    #[doc = "*Required features: `\"Win32_Devices_Communication\"`, `\"Win32_Foundation\"`*"]
    #[cfg(feature = "Win32_Foundation")]
    pub fn ClearCommError(hfile: super::super::Foundation::HANDLE, lperrors: *mut CLEAR_COMM_ERROR_FLAGS, lpstat: *mut COMSTAT) -> super::super::Foundation::BOOL;
    #[doc = "*Required features: `\"Win32_Devices_Communication\"`, `\"Win32_Foundation\"`*"]
    #[cfg(feature = "Win32_Foundation")]
    pub fn CommConfigDialogA(lpszname: ::windows_sys::core::PCSTR, hwnd: super::super::Foundation::HWND, lpcc: *mut COMMCONFIG) -> super::super::Foundation::BOOL;
    #[doc = "*Required features: `\"Win32_Devices_Communication\"`, `\"Win32_Foundation\"`*"]
    #[cfg(feature = "Win32_Foundation")]
    pub fn CommConfigDialogW(lpszname: ::windows_sys::core::PCWSTR, hwnd: super::super::Foundation::HWND, lpcc: *mut COMMCONFIG) -> super::super::Foundation::BOOL;
    #[doc = "*Required features: `\"Win32_Devices_Communication\"`, `\"Win32_Foundation\"`*"]
    #[cfg(feature = "Win32_Foundation")]
    pub fn EscapeCommFunction(hfile: super::super::Foundation::HANDLE, dwfunc: ESCAPE_COMM_FUNCTION) -> super::super::Foundation::BOOL;
    #[doc = "*Required features: `\"Win32_Devices_Communication\"`, `\"Win32_Foundation\"`*"]
    #[cfg(feature = "Win32_Foundation")]
    pub fn GetCommConfig(hcommdev: super::super::Foundation::HANDLE, lpcc: *mut COMMCONFIG, lpdwsize: *mut u32) -> super::super::Foundation::BOOL;
    #[doc = "*Required features: `\"Win32_Devices_Communication\"`, `\"Win32_Foundation\"`*"]
    #[cfg(feature = "Win32_Foundation")]
    pub fn GetCommMask(hfile: super::super::Foundation::HANDLE, lpevtmask: *mut COMM_EVENT_MASK) -> super::super::Foundation::BOOL;
    #[doc = "*Required features: `\"Win32_Devices_Communication\"`, `\"Win32_Foundation\"`*"]
    #[cfg(feature = "Win32_Foundation")]
    pub fn GetCommModemStatus(hfile: super::super::Foundation::HANDLE, lpmodemstat: *mut MODEM_STATUS_FLAGS) -> super::super::Foundation::BOOL;
    #[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
    pub fn GetCommPorts(lpportnumbers: *mut u32, uportnumberscount: u32, puportnumbersfound: *mut u32) -> u32;
    #[doc = "*Required features: `\"Win32_Devices_Communication\"`, `\"Win32_Foundation\"`*"]
    #[cfg(feature = "Win32_Foundation")]
    pub fn GetCommProperties(hfile: super::super::Foundation::HANDLE, lpcommprop: *mut COMMPROP) -> super::super::Foundation::BOOL;
    #[doc = "*Required features: `\"Win32_Devices_Communication\"`, `\"Win32_Foundation\"`*"]
    #[cfg(feature = "Win32_Foundation")]
    pub fn GetCommState(hfile: super::super::Foundation::HANDLE, lpdcb: *mut DCB) -> super::super::Foundation::BOOL;
    #[doc = "*Required features: `\"Win32_Devices_Communication\"`, `\"Win32_Foundation\"`*"]
    #[cfg(feature = "Win32_Foundation")]
    pub fn GetCommTimeouts(hfile: super::super::Foundation::HANDLE, lpcommtimeouts: *mut COMMTIMEOUTS) -> super::super::Foundation::BOOL;
    #[doc = "*Required features: `\"Win32_Devices_Communication\"`, `\"Win32_Foundation\"`*"]
    #[cfg(feature = "Win32_Foundation")]
    pub fn GetDefaultCommConfigA(lpszname: ::windows_sys::core::PCSTR, lpcc: *mut COMMCONFIG, lpdwsize: *mut u32) -> super::super::Foundation::BOOL;
    #[doc = "*Required features: `\"Win32_Devices_Communication\"`, `\"Win32_Foundation\"`*"]
    #[cfg(feature = "Win32_Foundation")]
    pub fn GetDefaultCommConfigW(lpszname: ::windows_sys::core::PCWSTR, lpcc: *mut COMMCONFIG, lpdwsize: *mut u32) -> super::super::Foundation::BOOL;
    #[doc = "*Required features: `\"Win32_Devices_Communication\"`, `\"Win32_Foundation\"`*"]
    #[cfg(feature = "Win32_Foundation")]
    pub fn OpenCommPort(uportnumber: u32, dwdesiredaccess: u32, dwflagsandattributes: u32) -> super::super::Foundation::HANDLE;
    #[doc = "*Required features: `\"Win32_Devices_Communication\"`, `\"Win32_Foundation\"`*"]
    #[cfg(feature = "Win32_Foundation")]
    pub fn PurgeComm(hfile: super::super::Foundation::HANDLE, dwflags: PURGE_COMM_FLAGS) -> super::super::Foundation::BOOL;
    #[doc = "*Required features: `\"Win32_Devices_Communication\"`, `\"Win32_Foundation\"`*"]
    #[cfg(feature = "Win32_Foundation")]
    pub fn SetCommBreak(hfile: super::super::Foundation::HANDLE) -> super::super::Foundation::BOOL;
    #[doc = "*Required features: `\"Win32_Devices_Communication\"`, `\"Win32_Foundation\"`*"]
    #[cfg(feature = "Win32_Foundation")]
    pub fn SetCommConfig(hcommdev: super::super::Foundation::HANDLE, lpcc: *const COMMCONFIG, dwsize: u32) -> super::super::Foundation::BOOL;
    #[doc = "*Required features: `\"Win32_Devices_Communication\"`, `\"Win32_Foundation\"`*"]
    #[cfg(feature = "Win32_Foundation")]
    pub fn SetCommMask(hfile: super::super::Foundation::HANDLE, dwevtmask: COMM_EVENT_MASK) -> super::super::Foundation::BOOL;
    #[doc = "*Required features: `\"Win32_Devices_Communication\"`, `\"Win32_Foundation\"`*"]
    #[cfg(feature = "Win32_Foundation")]
    pub fn SetCommState(hfile: super::super::Foundation::HANDLE, lpdcb: *const DCB) -> super::super::Foundation::BOOL;
    #[doc = "*Required features: `\"Win32_Devices_Communication\"`, `\"Win32_Foundation\"`*"]
    #[cfg(feature = "Win32_Foundation")]
    pub fn SetCommTimeouts(hfile: super::super::Foundation::HANDLE, lpcommtimeouts: *const COMMTIMEOUTS) -> super::super::Foundation::BOOL;
    #[doc = "*Required features: `\"Win32_Devices_Communication\"`, `\"Win32_Foundation\"`*"]
    #[cfg(feature = "Win32_Foundation")]
    pub fn SetDefaultCommConfigA(lpszname: ::windows_sys::core::PCSTR, lpcc: *const COMMCONFIG, dwsize: u32) -> super::super::Foundation::BOOL;
    #[doc = "*Required features: `\"Win32_Devices_Communication\"`, `\"Win32_Foundation\"`*"]
    #[cfg(feature = "Win32_Foundation")]
    pub fn SetDefaultCommConfigW(lpszname: ::windows_sys::core::PCWSTR, lpcc: *const COMMCONFIG, dwsize: u32) -> super::super::Foundation::BOOL;
    #[doc = "*Required features: `\"Win32_Devices_Communication\"`, `\"Win32_Foundation\"`*"]
    #[cfg(feature = "Win32_Foundation")]
    pub fn SetupComm(hfile: super::super::Foundation::HANDLE, dwinqueue: u32, dwoutqueue: u32) -> super::super::Foundation::BOOL;
    #[doc = "*Required features: `\"Win32_Devices_Communication\"`, `\"Win32_Foundation\"`*"]
    #[cfg(feature = "Win32_Foundation")]
    pub fn TransmitCommChar(hfile: super::super::Foundation::HANDLE, cchar: super::super::Foundation::CHAR) -> super::super::Foundation::BOOL;
    #[doc = "*Required features: `\"Win32_Devices_Communication\"`, `\"Win32_Foundation\"`, `\"Win32_System_IO\"`*"]
    #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))]
    pub fn WaitCommEvent(hfile: super::super::Foundation::HANDLE, lpevtmask: *mut COMM_EVENT_MASK, lpoverlapped: *mut super::super::System::IO::OVERLAPPED) -> super::super::Foundation::BOOL;
}
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MAXLENGTH_NAI: u32 = 72u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MAXLENGTH_UICCDATASTORE: u32 = 10u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_ANALOG_RLP_OFF: u32 = 1u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_ANALOG_RLP_ON: u32 = 0u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_ANALOG_V34: u32 = 2u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_AUTO_ML_2: u32 = 2u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_AUTO_ML_DEFAULT: u32 = 0u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_AUTO_ML_NONE: u32 = 1u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_AUTO_SPEED_DEFAULT: u32 = 0u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_BEARERMODE_ANALOG: u32 = 0u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_BEARERMODE_GSM: u32 = 2u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_BEARERMODE_ISDN: u32 = 1u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_BLIND_DIAL: u32 = 512u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_CCITT_OVERRIDE: u32 = 64u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_CELLULAR: u32 = 8u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_COMPRESSION: u32 = 1u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_DIAGNOSTICS: u32 = 2048u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_ERROR_CONTROL: u32 = 2u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_FLOWCONTROL_HARD: u32 = 16u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_FLOWCONTROL_SOFT: u32 = 32u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_FORCED_EC: u32 = 4u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_HDLCPPP_AUTH_CHAP: u32 = 3u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_HDLCPPP_AUTH_DEFAULT: u32 = 0u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_HDLCPPP_AUTH_MSCHAP: u32 = 4u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_HDLCPPP_AUTH_NONE: u32 = 1u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_HDLCPPP_AUTH_PAP: u32 = 2u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_HDLCPPP_ML_2: u32 = 2u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_HDLCPPP_ML_DEFAULT: u32 = 0u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_HDLCPPP_ML_NONE: u32 = 1u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_HDLCPPP_SPEED_56K: u32 = 2u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_HDLCPPP_SPEED_64K: u32 = 1u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_HDLCPPP_SPEED_DEFAULT: u32 = 0u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_MASK_AUTO_SPEED: u32 = 7u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_MASK_BEARERMODE: u32 = 61440u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_MASK_HDLCPPP_SPEED: u32 = 7u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_MASK_PROTOCOLDATA: u32 = 267386880u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_MASK_PROTOCOLID: u32 = 983040u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_MASK_V110_SPEED: u32 = 15u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_MASK_V120_SPEED: u32 = 7u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_MASK_X75_DATA: u32 = 7u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_PIAFS_INCOMING: u32 = 0u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_PIAFS_OUTGOING: u32 = 1u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_PROTOCOLID_ANALOG: u32 = 7u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_PROTOCOLID_AUTO: u32 = 6u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_PROTOCOLID_DEFAULT: u32 = 0u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_PROTOCOLID_GPRS: u32 = 8u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_PROTOCOLID_HDLCPPP: u32 = 1u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_PROTOCOLID_PIAFS: u32 = 9u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_PROTOCOLID_V110: u32 = 4u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_PROTOCOLID_V120: u32 = 5u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_PROTOCOLID_V128: u32 = 2u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_PROTOCOLID_X75: u32 = 3u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_SHIFT_AUTO_ML: u32 = 6u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_SHIFT_AUTO_SPEED: u32 = 0u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_SHIFT_BEARERMODE: u32 = 12u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_SHIFT_EXTENDEDINFO: u32 = 12u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_SHIFT_HDLCPPP_AUTH: u32 = 3u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_SHIFT_HDLCPPP_ML: u32 = 6u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_SHIFT_HDLCPPP_SPEED: u32 = 0u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_SHIFT_PROTOCOLDATA: u32 = 20u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_SHIFT_PROTOCOLID: u32 = 16u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_SHIFT_PROTOCOLINFO: u32 = 16u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_SHIFT_V110_SPEED: u32 = 0u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_SHIFT_V120_ML: u32 = 6u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_SHIFT_V120_SPEED: u32 = 0u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_SHIFT_X75_DATA: u32 = 0u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_SPEED_ADJUST: u32 = 128u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_TONE_DIAL: u32 = 256u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_V110_SPEED_12DOT0K: u32 = 5u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_V110_SPEED_14DOT4K: u32 = 6u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_V110_SPEED_19DOT2K: u32 = 7u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_V110_SPEED_1DOT2K: u32 = 1u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_V110_SPEED_28DOT8K: u32 = 8u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_V110_SPEED_2DOT4K: u32 = 2u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_V110_SPEED_38DOT4K: u32 = 9u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_V110_SPEED_4DOT8K: u32 = 3u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_V110_SPEED_57DOT6K: u32 = 10u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_V110_SPEED_9DOT6K: u32 = 4u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_V110_SPEED_DEFAULT: u32 = 0u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_V120_ML_2: u32 = 2u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_V120_ML_DEFAULT: u32 = 0u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_V120_ML_NONE: u32 = 1u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_V120_SPEED_56K: u32 = 2u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_V120_SPEED_64K: u32 = 1u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_V120_SPEED_DEFAULT: u32 = 0u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_V23_OVERRIDE: u32 = 1024u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_X75_DATA_128K: u32 = 2u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_X75_DATA_64K: u32 = 1u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_X75_DATA_BTX: u32 = 4u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_X75_DATA_DEFAULT: u32 = 0u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDM_X75_DATA_T_70: u32 = 3u32;
pub const SID_3GPP_SUPSVCMODEL: ::windows_sys::core::GUID = ::windows_sys::core::GUID { data1: 3620769287, data2: 55143, data3: 17528, data4: [177, 74, 238, 204, 135, 234, 18, 247] };
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub type CLEAR_COMM_ERROR_FLAGS = u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const CE_BREAK: CLEAR_COMM_ERROR_FLAGS = 16u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const CE_FRAME: CLEAR_COMM_ERROR_FLAGS = 8u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const CE_OVERRUN: CLEAR_COMM_ERROR_FLAGS = 2u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const CE_RXOVER: CLEAR_COMM_ERROR_FLAGS = 1u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const CE_RXPARITY: CLEAR_COMM_ERROR_FLAGS = 4u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub type COMMPROP_STOP_PARITY = u16;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const STOPBITS_10: COMMPROP_STOP_PARITY = 1u16;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const STOPBITS_15: COMMPROP_STOP_PARITY = 2u16;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const STOPBITS_20: COMMPROP_STOP_PARITY = 4u16;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const PARITY_NONE: COMMPROP_STOP_PARITY = 256u16;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const PARITY_ODD: COMMPROP_STOP_PARITY = 512u16;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const PARITY_EVEN: COMMPROP_STOP_PARITY = 1024u16;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const PARITY_MARK: COMMPROP_STOP_PARITY = 2048u16;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const PARITY_SPACE: COMMPROP_STOP_PARITY = 4096u16;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub type COMM_EVENT_MASK = u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const EV_BREAK: COMM_EVENT_MASK = 64u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const EV_CTS: COMM_EVENT_MASK = 8u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const EV_DSR: COMM_EVENT_MASK = 16u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const EV_ERR: COMM_EVENT_MASK = 128u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const EV_EVENT1: COMM_EVENT_MASK = 2048u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const EV_EVENT2: COMM_EVENT_MASK = 4096u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const EV_PERR: COMM_EVENT_MASK = 512u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const EV_RING: COMM_EVENT_MASK = 256u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const EV_RLSD: COMM_EVENT_MASK = 32u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const EV_RX80FULL: COMM_EVENT_MASK = 1024u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const EV_RXCHAR: COMM_EVENT_MASK = 1u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const EV_RXFLAG: COMM_EVENT_MASK = 2u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const EV_TXEMPTY: COMM_EVENT_MASK = 4u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub type DCB_PARITY = u8;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const EVENPARITY: DCB_PARITY = 2u8;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MARKPARITY: DCB_PARITY = 3u8;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const NOPARITY: DCB_PARITY = 0u8;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const ODDPARITY: DCB_PARITY = 1u8;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const SPACEPARITY: DCB_PARITY = 4u8;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub type DCB_STOP_BITS = u8;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const ONESTOPBIT: DCB_STOP_BITS = 0u8;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const ONE5STOPBITS: DCB_STOP_BITS = 1u8;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const TWOSTOPBITS: DCB_STOP_BITS = 2u8;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub type ESCAPE_COMM_FUNCTION = u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const CLRBREAK: ESCAPE_COMM_FUNCTION = 9u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const CLRDTR: ESCAPE_COMM_FUNCTION = 6u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const CLRRTS: ESCAPE_COMM_FUNCTION = 4u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const SETBREAK: ESCAPE_COMM_FUNCTION = 8u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const SETDTR: ESCAPE_COMM_FUNCTION = 5u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const SETRTS: ESCAPE_COMM_FUNCTION = 3u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const SETXOFF: ESCAPE_COMM_FUNCTION = 1u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const SETXON: ESCAPE_COMM_FUNCTION = 2u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub type MODEMDEVCAPS_DIAL_OPTIONS = u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const DIALOPTION_BILLING: MODEMDEVCAPS_DIAL_OPTIONS = 64u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const DIALOPTION_DIALTONE: MODEMDEVCAPS_DIAL_OPTIONS = 256u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const DIALOPTION_QUIET: MODEMDEVCAPS_DIAL_OPTIONS = 128u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub type MODEMDEVCAPS_SPEAKER_MODE = u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDMSPKRFLAG_CALLSETUP: MODEMDEVCAPS_SPEAKER_MODE = 8u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDMSPKRFLAG_DIAL: MODEMDEVCAPS_SPEAKER_MODE = 2u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDMSPKRFLAG_OFF: MODEMDEVCAPS_SPEAKER_MODE = 1u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDMSPKRFLAG_ON: MODEMDEVCAPS_SPEAKER_MODE = 4u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub type MODEMDEVCAPS_SPEAKER_VOLUME = u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDMVOLFLAG_HIGH: MODEMDEVCAPS_SPEAKER_VOLUME = 4u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDMVOLFLAG_LOW: MODEMDEVCAPS_SPEAKER_VOLUME = 1u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDMVOLFLAG_MEDIUM: MODEMDEVCAPS_SPEAKER_VOLUME = 2u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub type MODEMSETTINGS_SPEAKER_MODE = u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDMSPKR_CALLSETUP: MODEMSETTINGS_SPEAKER_MODE = 8u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDMSPKR_DIAL: MODEMSETTINGS_SPEAKER_MODE = 2u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDMSPKR_OFF: MODEMSETTINGS_SPEAKER_MODE = 1u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDMSPKR_ON: MODEMSETTINGS_SPEAKER_MODE = 4u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub type MODEM_SPEAKER_VOLUME = u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDMVOL_HIGH: MODEM_SPEAKER_VOLUME = 2u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDMVOL_LOW: MODEM_SPEAKER_VOLUME = 0u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MDMVOL_MEDIUM: MODEM_SPEAKER_VOLUME = 1u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub type MODEM_STATUS_FLAGS = u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MS_CTS_ON: MODEM_STATUS_FLAGS = 16u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MS_DSR_ON: MODEM_STATUS_FLAGS = 32u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MS_RING_ON: MODEM_STATUS_FLAGS = 64u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const MS_RLSD_ON: MODEM_STATUS_FLAGS = 128u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub type PURGE_COMM_FLAGS = u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const PURGE_RXABORT: PURGE_COMM_FLAGS = 2u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const PURGE_RXCLEAR: PURGE_COMM_FLAGS = 8u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const PURGE_TXABORT: PURGE_COMM_FLAGS = 1u32;
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub const PURGE_TXCLEAR: PURGE_COMM_FLAGS = 4u32;
#[repr(C)]
#[doc = "*Required features: `\"Win32_Devices_Communication\"`, `\"Win32_Foundation\"`*"]
#[cfg(feature = "Win32_Foundation")]
pub struct COMMCONFIG {
    pub dwSize: u32,
    pub wVersion: u16,
    pub wReserved: u16,
    pub dcb: DCB,
    pub dwProviderSubType: u32,
    pub dwProviderOffset: u32,
    pub dwProviderSize: u32,
    pub wcProviderData: [u16; 1],
}
#[cfg(feature = "Win32_Foundation")]
impl ::core::marker::Copy for COMMCONFIG {}
#[cfg(feature = "Win32_Foundation")]
impl ::core::clone::Clone for COMMCONFIG {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub struct COMMPROP {
    pub wPacketLength: u16,
    pub wPacketVersion: u16,
    pub dwServiceMask: u32,
    pub dwReserved1: u32,
    pub dwMaxTxQueue: u32,
    pub dwMaxRxQueue: u32,
    pub dwMaxBaud: u32,
    pub dwProvSubType: u32,
    pub dwProvCapabilities: u32,
    pub dwSettableParams: u32,
    pub dwSettableBaud: u32,
    pub wSettableData: u16,
    pub wSettableStopParity: COMMPROP_STOP_PARITY,
    pub dwCurrentTxQueue: u32,
    pub dwCurrentRxQueue: u32,
    pub dwProvSpec1: u32,
    pub dwProvSpec2: u32,
    pub wcProvChar: [u16; 1],
}
impl ::core::marker::Copy for COMMPROP {}
impl ::core::clone::Clone for COMMPROP {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub struct COMMTIMEOUTS {
    pub ReadIntervalTimeout: u32,
    pub ReadTotalTimeoutMultiplier: u32,
    pub ReadTotalTimeoutConstant: u32,
    pub WriteTotalTimeoutMultiplier: u32,
    pub WriteTotalTimeoutConstant: u32,
}
impl ::core::marker::Copy for COMMTIMEOUTS {}
impl ::core::clone::Clone for COMMTIMEOUTS {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub struct COMSTAT {
    pub _bitfield: u32,
    pub cbInQue: u32,
    pub cbOutQue: u32,
}
impl ::core::marker::Copy for COMSTAT {}
impl ::core::clone::Clone for COMSTAT {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_Devices_Communication\"`, `\"Win32_Foundation\"`*"]
#[cfg(feature = "Win32_Foundation")]
pub struct DCB {
    pub DCBlength: u32,
    pub BaudRate: u32,
    pub _bitfield: u32,
    pub wReserved: u16,
    pub XonLim: u16,
    pub XoffLim: u16,
    pub ByteSize: u8,
    pub Parity: DCB_PARITY,
    pub StopBits: DCB_STOP_BITS,
    pub XonChar: super::super::Foundation::CHAR,
    pub XoffChar: super::super::Foundation::CHAR,
    pub ErrorChar: super::super::Foundation::CHAR,
    pub EofChar: super::super::Foundation::CHAR,
    pub EvtChar: super::super::Foundation::CHAR,
    pub wReserved1: u16,
}
#[cfg(feature = "Win32_Foundation")]
impl ::core::marker::Copy for DCB {}
#[cfg(feature = "Win32_Foundation")]
impl ::core::clone::Clone for DCB {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub struct MODEMDEVCAPS {
    pub dwActualSize: u32,
    pub dwRequiredSize: u32,
    pub dwDevSpecificOffset: u32,
    pub dwDevSpecificSize: u32,
    pub dwModemProviderVersion: u32,
    pub dwModemManufacturerOffset: u32,
    pub dwModemManufacturerSize: u32,
    pub dwModemModelOffset: u32,
    pub dwModemModelSize: u32,
    pub dwModemVersionOffset: u32,
    pub dwModemVersionSize: u32,
    pub dwDialOptions: MODEMDEVCAPS_DIAL_OPTIONS,
    pub dwCallSetupFailTimer: u32,
    pub dwInactivityTimeout: u32,
    pub dwSpeakerVolume: MODEMDEVCAPS_SPEAKER_VOLUME,
    pub dwSpeakerMode: MODEMDEVCAPS_SPEAKER_MODE,
    pub dwModemOptions: u32,
    pub dwMaxDTERate: u32,
    pub dwMaxDCERate: u32,
    pub abVariablePortion: [u8; 1],
}
impl ::core::marker::Copy for MODEMDEVCAPS {}
impl ::core::clone::Clone for MODEMDEVCAPS {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_Devices_Communication\"`*"]
pub struct MODEMSETTINGS {
    pub dwActualSize: u32,
    pub dwRequiredSize: u32,
    pub dwDevSpecificOffset: u32,
    pub dwDevSpecificSize: u32,
    pub dwCallSetupFailTimer: u32,
    pub dwInactivityTimeout: u32,
    pub dwSpeakerVolume: MODEM_SPEAKER_VOLUME,
    pub dwSpeakerMode: MODEMSETTINGS_SPEAKER_MODE,
    pub dwPreferredModemOptions: u32,
    pub dwNegotiatedModemOptions: u32,
    pub dwNegotiatedDCERate: u32,
    pub abVariablePortion: [u8; 1],
}
impl ::core::marker::Copy for MODEMSETTINGS {}
impl ::core::clone::Clone for MODEMSETTINGS {
    fn clone(&self) -> Self {
        *self
    }
}