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
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
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
#![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)]
#[link(name = "windows")]
extern "system" {}
#[repr(C)]
pub struct BandwidthStatistics {
    pub OutboundBitsPerSecond: u64,
    pub InboundBitsPerSecond: u64,
    pub OutboundBitsPerSecondInstability: u64,
    pub InboundBitsPerSecondInstability: u64,
    pub OutboundBandwidthPeaked: bool,
    pub InboundBandwidthPeaked: bool,
}
impl ::core::marker::Copy for BandwidthStatistics {}
impl ::core::clone::Clone for BandwidthStatistics {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ControlChannelTrigger(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ControlChannelTrigger {}
impl ::core::clone::Clone for ControlChannelTrigger {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ControlChannelTriggerResetReason(pub i32);
impl ControlChannelTriggerResetReason {
    pub const FastUserSwitched: Self = Self(0i32);
    pub const LowPowerExit: Self = Self(1i32);
    pub const QuietHoursExit: Self = Self(2i32);
    pub const ApplicationRestart: Self = Self(3i32);
}
impl ::core::marker::Copy for ControlChannelTriggerResetReason {}
impl ::core::clone::Clone for ControlChannelTriggerResetReason {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ControlChannelTriggerResourceType(pub i32);
impl ControlChannelTriggerResourceType {
    pub const RequestSoftwareSlot: Self = Self(0i32);
    pub const RequestHardwareSlot: Self = Self(1i32);
}
impl ::core::marker::Copy for ControlChannelTriggerResourceType {}
impl ::core::clone::Clone for ControlChannelTriggerResourceType {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ControlChannelTriggerStatus(pub i32);
impl ControlChannelTriggerStatus {
    pub const HardwareSlotRequested: Self = Self(0i32);
    pub const SoftwareSlotAllocated: Self = Self(1i32);
    pub const HardwareSlotAllocated: Self = Self(2i32);
    pub const PolicyError: Self = Self(3i32);
    pub const SystemError: Self = Self(4i32);
    pub const TransportDisconnected: Self = Self(5i32);
    pub const ServiceUnavailable: Self = Self(6i32);
}
impl ::core::marker::Copy for ControlChannelTriggerStatus {}
impl ::core::clone::Clone for ControlChannelTriggerStatus {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct DatagramSocket(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for DatagramSocket {}
impl ::core::clone::Clone for DatagramSocket {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct DatagramSocketControl(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for DatagramSocketControl {}
impl ::core::clone::Clone for DatagramSocketControl {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct DatagramSocketInformation(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for DatagramSocketInformation {}
impl ::core::clone::Clone for DatagramSocketInformation {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct DatagramSocketMessageReceivedEventArgs(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for DatagramSocketMessageReceivedEventArgs {}
impl ::core::clone::Clone for DatagramSocketMessageReceivedEventArgs {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IControlChannelTrigger(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IControlChannelTrigger {}
impl ::core::clone::Clone for IControlChannelTrigger {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IControlChannelTrigger2(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IControlChannelTrigger2 {}
impl ::core::clone::Clone for IControlChannelTrigger2 {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IControlChannelTriggerEventDetails(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IControlChannelTriggerEventDetails {}
impl ::core::clone::Clone for IControlChannelTriggerEventDetails {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IControlChannelTriggerFactory(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IControlChannelTriggerFactory {}
impl ::core::clone::Clone for IControlChannelTriggerFactory {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IControlChannelTriggerResetEventDetails(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IControlChannelTriggerResetEventDetails {}
impl ::core::clone::Clone for IControlChannelTriggerResetEventDetails {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IDatagramSocket(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IDatagramSocket {}
impl ::core::clone::Clone for IDatagramSocket {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IDatagramSocket2(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IDatagramSocket2 {}
impl ::core::clone::Clone for IDatagramSocket2 {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IDatagramSocket3(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IDatagramSocket3 {}
impl ::core::clone::Clone for IDatagramSocket3 {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IDatagramSocketControl(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IDatagramSocketControl {}
impl ::core::clone::Clone for IDatagramSocketControl {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IDatagramSocketControl2(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IDatagramSocketControl2 {}
impl ::core::clone::Clone for IDatagramSocketControl2 {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IDatagramSocketControl3(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IDatagramSocketControl3 {}
impl ::core::clone::Clone for IDatagramSocketControl3 {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IDatagramSocketInformation(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IDatagramSocketInformation {}
impl ::core::clone::Clone for IDatagramSocketInformation {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IDatagramSocketMessageReceivedEventArgs(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IDatagramSocketMessageReceivedEventArgs {}
impl ::core::clone::Clone for IDatagramSocketMessageReceivedEventArgs {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IDatagramSocketStatics(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IDatagramSocketStatics {}
impl ::core::clone::Clone for IDatagramSocketStatics {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IMessageWebSocket(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IMessageWebSocket {}
impl ::core::clone::Clone for IMessageWebSocket {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IMessageWebSocket2(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IMessageWebSocket2 {}
impl ::core::clone::Clone for IMessageWebSocket2 {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IMessageWebSocket3(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IMessageWebSocket3 {}
impl ::core::clone::Clone for IMessageWebSocket3 {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IMessageWebSocketControl(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IMessageWebSocketControl {}
impl ::core::clone::Clone for IMessageWebSocketControl {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IMessageWebSocketControl2(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IMessageWebSocketControl2 {}
impl ::core::clone::Clone for IMessageWebSocketControl2 {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IMessageWebSocketMessageReceivedEventArgs(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IMessageWebSocketMessageReceivedEventArgs {}
impl ::core::clone::Clone for IMessageWebSocketMessageReceivedEventArgs {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IMessageWebSocketMessageReceivedEventArgs2(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IMessageWebSocketMessageReceivedEventArgs2 {}
impl ::core::clone::Clone for IMessageWebSocketMessageReceivedEventArgs2 {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IServerMessageWebSocket(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IServerMessageWebSocket {}
impl ::core::clone::Clone for IServerMessageWebSocket {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IServerMessageWebSocketControl(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IServerMessageWebSocketControl {}
impl ::core::clone::Clone for IServerMessageWebSocketControl {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IServerMessageWebSocketInformation(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IServerMessageWebSocketInformation {}
impl ::core::clone::Clone for IServerMessageWebSocketInformation {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IServerStreamWebSocket(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IServerStreamWebSocket {}
impl ::core::clone::Clone for IServerStreamWebSocket {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IServerStreamWebSocketInformation(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IServerStreamWebSocketInformation {}
impl ::core::clone::Clone for IServerStreamWebSocketInformation {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ISocketActivityContext(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ISocketActivityContext {}
impl ::core::clone::Clone for ISocketActivityContext {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ISocketActivityContextFactory(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ISocketActivityContextFactory {}
impl ::core::clone::Clone for ISocketActivityContextFactory {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ISocketActivityInformation(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ISocketActivityInformation {}
impl ::core::clone::Clone for ISocketActivityInformation {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ISocketActivityInformationStatics(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ISocketActivityInformationStatics {}
impl ::core::clone::Clone for ISocketActivityInformationStatics {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ISocketActivityTriggerDetails(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ISocketActivityTriggerDetails {}
impl ::core::clone::Clone for ISocketActivityTriggerDetails {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ISocketErrorStatics(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ISocketErrorStatics {}
impl ::core::clone::Clone for ISocketErrorStatics {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IStreamSocket(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IStreamSocket {}
impl ::core::clone::Clone for IStreamSocket {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IStreamSocket2(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IStreamSocket2 {}
impl ::core::clone::Clone for IStreamSocket2 {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IStreamSocket3(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IStreamSocket3 {}
impl ::core::clone::Clone for IStreamSocket3 {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IStreamSocketControl(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IStreamSocketControl {}
impl ::core::clone::Clone for IStreamSocketControl {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IStreamSocketControl2(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IStreamSocketControl2 {}
impl ::core::clone::Clone for IStreamSocketControl2 {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IStreamSocketControl3(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IStreamSocketControl3 {}
impl ::core::clone::Clone for IStreamSocketControl3 {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IStreamSocketControl4(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IStreamSocketControl4 {}
impl ::core::clone::Clone for IStreamSocketControl4 {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IStreamSocketInformation(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IStreamSocketInformation {}
impl ::core::clone::Clone for IStreamSocketInformation {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IStreamSocketInformation2(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IStreamSocketInformation2 {}
impl ::core::clone::Clone for IStreamSocketInformation2 {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IStreamSocketListener(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IStreamSocketListener {}
impl ::core::clone::Clone for IStreamSocketListener {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IStreamSocketListener2(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IStreamSocketListener2 {}
impl ::core::clone::Clone for IStreamSocketListener2 {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IStreamSocketListener3(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IStreamSocketListener3 {}
impl ::core::clone::Clone for IStreamSocketListener3 {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IStreamSocketListenerConnectionReceivedEventArgs(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IStreamSocketListenerConnectionReceivedEventArgs {}
impl ::core::clone::Clone for IStreamSocketListenerConnectionReceivedEventArgs {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IStreamSocketListenerControl(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IStreamSocketListenerControl {}
impl ::core::clone::Clone for IStreamSocketListenerControl {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IStreamSocketListenerControl2(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IStreamSocketListenerControl2 {}
impl ::core::clone::Clone for IStreamSocketListenerControl2 {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IStreamSocketListenerInformation(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IStreamSocketListenerInformation {}
impl ::core::clone::Clone for IStreamSocketListenerInformation {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IStreamSocketStatics(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IStreamSocketStatics {}
impl ::core::clone::Clone for IStreamSocketStatics {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IStreamWebSocket(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IStreamWebSocket {}
impl ::core::clone::Clone for IStreamWebSocket {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IStreamWebSocket2(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IStreamWebSocket2 {}
impl ::core::clone::Clone for IStreamWebSocket2 {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IStreamWebSocketControl(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IStreamWebSocketControl {}
impl ::core::clone::Clone for IStreamWebSocketControl {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IStreamWebSocketControl2(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IStreamWebSocketControl2 {}
impl ::core::clone::Clone for IStreamWebSocketControl2 {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IWebSocket(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IWebSocket {}
impl ::core::clone::Clone for IWebSocket {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IWebSocketClosedEventArgs(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IWebSocketClosedEventArgs {}
impl ::core::clone::Clone for IWebSocketClosedEventArgs {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IWebSocketControl(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IWebSocketControl {}
impl ::core::clone::Clone for IWebSocketControl {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IWebSocketControl2(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IWebSocketControl2 {}
impl ::core::clone::Clone for IWebSocketControl2 {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IWebSocketErrorStatics(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IWebSocketErrorStatics {}
impl ::core::clone::Clone for IWebSocketErrorStatics {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IWebSocketInformation(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IWebSocketInformation {}
impl ::core::clone::Clone for IWebSocketInformation {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IWebSocketInformation2(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IWebSocketInformation2 {}
impl ::core::clone::Clone for IWebSocketInformation2 {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct IWebSocketServerCustomValidationRequestedEventArgs(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for IWebSocketServerCustomValidationRequestedEventArgs {}
impl ::core::clone::Clone for IWebSocketServerCustomValidationRequestedEventArgs {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct MessageWebSocket(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for MessageWebSocket {}
impl ::core::clone::Clone for MessageWebSocket {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct MessageWebSocketControl(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for MessageWebSocketControl {}
impl ::core::clone::Clone for MessageWebSocketControl {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct MessageWebSocketInformation(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for MessageWebSocketInformation {}
impl ::core::clone::Clone for MessageWebSocketInformation {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct MessageWebSocketMessageReceivedEventArgs(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for MessageWebSocketMessageReceivedEventArgs {}
impl ::core::clone::Clone for MessageWebSocketMessageReceivedEventArgs {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct MessageWebSocketReceiveMode(pub i32);
impl MessageWebSocketReceiveMode {
    pub const FullMessage: Self = Self(0i32);
    pub const PartialMessage: Self = Self(1i32);
}
impl ::core::marker::Copy for MessageWebSocketReceiveMode {}
impl ::core::clone::Clone for MessageWebSocketReceiveMode {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(C)]
pub struct RoundTripTimeStatistics {
    pub Variance: u32,
    pub Max: u32,
    pub Min: u32,
    pub Sum: u32,
}
impl ::core::marker::Copy for RoundTripTimeStatistics {}
impl ::core::clone::Clone for RoundTripTimeStatistics {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ServerMessageWebSocket(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ServerMessageWebSocket {}
impl ::core::clone::Clone for ServerMessageWebSocket {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ServerMessageWebSocketControl(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ServerMessageWebSocketControl {}
impl ::core::clone::Clone for ServerMessageWebSocketControl {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ServerMessageWebSocketInformation(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ServerMessageWebSocketInformation {}
impl ::core::clone::Clone for ServerMessageWebSocketInformation {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ServerStreamWebSocket(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ServerStreamWebSocket {}
impl ::core::clone::Clone for ServerStreamWebSocket {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct ServerStreamWebSocketInformation(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for ServerStreamWebSocketInformation {}
impl ::core::clone::Clone for ServerStreamWebSocketInformation {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct SocketActivityConnectedStandbyAction(pub i32);
impl SocketActivityConnectedStandbyAction {
    pub const DoNotWake: Self = Self(0i32);
    pub const Wake: Self = Self(1i32);
}
impl ::core::marker::Copy for SocketActivityConnectedStandbyAction {}
impl ::core::clone::Clone for SocketActivityConnectedStandbyAction {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct SocketActivityContext(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for SocketActivityContext {}
impl ::core::clone::Clone for SocketActivityContext {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct SocketActivityInformation(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for SocketActivityInformation {}
impl ::core::clone::Clone for SocketActivityInformation {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct SocketActivityKind(pub i32);
impl SocketActivityKind {
    pub const None: Self = Self(0i32);
    pub const StreamSocketListener: Self = Self(1i32);
    pub const DatagramSocket: Self = Self(2i32);
    pub const StreamSocket: Self = Self(3i32);
}
impl ::core::marker::Copy for SocketActivityKind {}
impl ::core::clone::Clone for SocketActivityKind {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct SocketActivityTriggerDetails(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for SocketActivityTriggerDetails {}
impl ::core::clone::Clone for SocketActivityTriggerDetails {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct SocketActivityTriggerReason(pub i32);
impl SocketActivityTriggerReason {
    pub const None: Self = Self(0i32);
    pub const SocketActivity: Self = Self(1i32);
    pub const ConnectionAccepted: Self = Self(2i32);
    pub const KeepAliveTimerExpired: Self = Self(3i32);
    pub const SocketClosed: Self = Self(4i32);
}
impl ::core::marker::Copy for SocketActivityTriggerReason {}
impl ::core::clone::Clone for SocketActivityTriggerReason {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct SocketErrorStatus(pub i32);
impl SocketErrorStatus {
    pub const Unknown: Self = Self(0i32);
    pub const OperationAborted: Self = Self(1i32);
    pub const HttpInvalidServerResponse: Self = Self(2i32);
    pub const ConnectionTimedOut: Self = Self(3i32);
    pub const AddressFamilyNotSupported: Self = Self(4i32);
    pub const SocketTypeNotSupported: Self = Self(5i32);
    pub const HostNotFound: Self = Self(6i32);
    pub const NoDataRecordOfRequestedType: Self = Self(7i32);
    pub const NonAuthoritativeHostNotFound: Self = Self(8i32);
    pub const ClassTypeNotFound: Self = Self(9i32);
    pub const AddressAlreadyInUse: Self = Self(10i32);
    pub const CannotAssignRequestedAddress: Self = Self(11i32);
    pub const ConnectionRefused: Self = Self(12i32);
    pub const NetworkIsUnreachable: Self = Self(13i32);
    pub const UnreachableHost: Self = Self(14i32);
    pub const NetworkIsDown: Self = Self(15i32);
    pub const NetworkDroppedConnectionOnReset: Self = Self(16i32);
    pub const SoftwareCausedConnectionAbort: Self = Self(17i32);
    pub const ConnectionResetByPeer: Self = Self(18i32);
    pub const HostIsDown: Self = Self(19i32);
    pub const NoAddressesFound: Self = Self(20i32);
    pub const TooManyOpenFiles: Self = Self(21i32);
    pub const MessageTooLong: Self = Self(22i32);
    pub const CertificateExpired: Self = Self(23i32);
    pub const CertificateUntrustedRoot: Self = Self(24i32);
    pub const CertificateCommonNameIsIncorrect: Self = Self(25i32);
    pub const CertificateWrongUsage: Self = Self(26i32);
    pub const CertificateRevoked: Self = Self(27i32);
    pub const CertificateNoRevocationCheck: Self = Self(28i32);
    pub const CertificateRevocationServerOffline: Self = Self(29i32);
    pub const CertificateIsInvalid: Self = Self(30i32);
}
impl ::core::marker::Copy for SocketErrorStatus {}
impl ::core::clone::Clone for SocketErrorStatus {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct SocketMessageType(pub i32);
impl SocketMessageType {
    pub const Binary: Self = Self(0i32);
    pub const Utf8: Self = Self(1i32);
}
impl ::core::marker::Copy for SocketMessageType {}
impl ::core::clone::Clone for SocketMessageType {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct SocketProtectionLevel(pub i32);
impl SocketProtectionLevel {
    pub const PlainSocket: Self = Self(0i32);
    pub const Ssl: Self = Self(1i32);
    pub const SslAllowNullEncryption: Self = Self(2i32);
    pub const BluetoothEncryptionAllowNullAuthentication: Self = Self(3i32);
    pub const BluetoothEncryptionWithAuthentication: Self = Self(4i32);
    pub const Ssl3AllowWeakEncryption: Self = Self(5i32);
    pub const Tls10: Self = Self(6i32);
    pub const Tls11: Self = Self(7i32);
    pub const Tls12: Self = Self(8i32);
    pub const Unspecified: Self = Self(9i32);
}
impl ::core::marker::Copy for SocketProtectionLevel {}
impl ::core::clone::Clone for SocketProtectionLevel {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct SocketQualityOfService(pub i32);
impl SocketQualityOfService {
    pub const Normal: Self = Self(0i32);
    pub const LowLatency: Self = Self(1i32);
}
impl ::core::marker::Copy for SocketQualityOfService {}
impl ::core::clone::Clone for SocketQualityOfService {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct SocketSslErrorSeverity(pub i32);
impl SocketSslErrorSeverity {
    pub const None: Self = Self(0i32);
    pub const Ignorable: Self = Self(1i32);
    pub const Fatal: Self = Self(2i32);
}
impl ::core::marker::Copy for SocketSslErrorSeverity {}
impl ::core::clone::Clone for SocketSslErrorSeverity {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct StreamSocket(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for StreamSocket {}
impl ::core::clone::Clone for StreamSocket {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct StreamSocketControl(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for StreamSocketControl {}
impl ::core::clone::Clone for StreamSocketControl {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct StreamSocketInformation(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for StreamSocketInformation {}
impl ::core::clone::Clone for StreamSocketInformation {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct StreamSocketListener(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for StreamSocketListener {}
impl ::core::clone::Clone for StreamSocketListener {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct StreamSocketListenerConnectionReceivedEventArgs(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for StreamSocketListenerConnectionReceivedEventArgs {}
impl ::core::clone::Clone for StreamSocketListenerConnectionReceivedEventArgs {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct StreamSocketListenerControl(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for StreamSocketListenerControl {}
impl ::core::clone::Clone for StreamSocketListenerControl {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct StreamSocketListenerInformation(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for StreamSocketListenerInformation {}
impl ::core::clone::Clone for StreamSocketListenerInformation {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct StreamWebSocket(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for StreamWebSocket {}
impl ::core::clone::Clone for StreamWebSocket {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct StreamWebSocketControl(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for StreamWebSocketControl {}
impl ::core::clone::Clone for StreamWebSocketControl {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct StreamWebSocketInformation(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for StreamWebSocketInformation {}
impl ::core::clone::Clone for StreamWebSocketInformation {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct WebSocketClosedEventArgs(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for WebSocketClosedEventArgs {}
impl ::core::clone::Clone for WebSocketClosedEventArgs {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct WebSocketKeepAlive(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for WebSocketKeepAlive {}
impl ::core::clone::Clone for WebSocketKeepAlive {
    fn clone(&self) -> Self {
        *self
    }
}
#[repr(transparent)]
pub struct WebSocketServerCustomValidationRequestedEventArgs(pub *mut ::core::ffi::c_void);
impl ::core::marker::Copy for WebSocketServerCustomValidationRequestedEventArgs {}
impl ::core::clone::Clone for WebSocketServerCustomValidationRequestedEventArgs {
    fn clone(&self) -> Self {
        *self
    }
}