windows 0.51.1

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
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`, `\"Win32_Foundation\"`*"]
#[cfg(feature = "Win32_Foundation")]
#[inline]
pub unsafe fn Netbios(pncb: *mut NCB) -> u8 {
    ::windows_targets::link!("netapi32.dll" "system" fn Netbios(pncb : *mut NCB) -> u8);
    Netbios(pncb)
}
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const ALL_TRANSPORTS: ::windows_core::PCSTR = ::windows_core::s!("M\u{0}\u{0}\u{0}");
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const ASYNCH: u32 = 128u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const CALL_PENDING: u32 = 2u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const DEREGISTERED: u32 = 5u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const DUPLICATE: u32 = 6u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const DUPLICATE_DEREG: u32 = 7u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const GROUP_NAME: u32 = 128u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const HANGUP_COMPLETE: u32 = 5u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const HANGUP_PENDING: u32 = 4u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const LISTEN_OUTSTANDING: u32 = 1u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const MAX_LANA: u32 = 254u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const MS_NBF: ::windows_core::PCSTR = ::windows_core::s!("MNBF");
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NAME_FLAGS_MASK: u32 = 135u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NCBACTION: u32 = 119u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NCBADDGRNAME: u32 = 54u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NCBADDNAME: u32 = 48u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NCBASTAT: u32 = 51u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NCBCALL: u32 = 16u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NCBCANCEL: u32 = 53u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NCBCHAINSEND: u32 = 23u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NCBCHAINSENDNA: u32 = 114u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NCBDELNAME: u32 = 49u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NCBDGRECV: u32 = 33u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NCBDGRECVBC: u32 = 35u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NCBDGSEND: u32 = 32u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NCBDGSENDBC: u32 = 34u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NCBENUM: u32 = 55u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NCBFINDNAME: u32 = 120u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NCBHANGUP: u32 = 18u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NCBLANSTALERT: u32 = 115u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NCBLISTEN: u32 = 17u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NCBNAMSZ: u32 = 16u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NCBRECV: u32 = 21u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NCBRECVANY: u32 = 22u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NCBRESET: u32 = 50u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NCBSEND: u32 = 20u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NCBSENDNA: u32 = 113u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NCBSSTAT: u32 = 52u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NCBTRACE: u32 = 121u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NCBUNLINK: u32 = 112u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NRC_ACTSES: u32 = 15u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NRC_BADDR: u32 = 7u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NRC_BRIDGE: u32 = 35u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NRC_BUFLEN: u32 = 1u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NRC_CANCEL: u32 = 38u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NRC_CANOCCR: u32 = 36u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NRC_CMDCAN: u32 = 11u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NRC_CMDTMO: u32 = 5u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NRC_DUPENV: u32 = 48u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NRC_DUPNAME: u32 = 13u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NRC_ENVNOTDEF: u32 = 52u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NRC_GOODRET: u32 = 0u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NRC_IFBUSY: u32 = 33u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NRC_ILLCMD: u32 = 3u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NRC_ILLNN: u32 = 19u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NRC_INCOMP: u32 = 6u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NRC_INUSE: u32 = 22u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NRC_INVADDRESS: u32 = 57u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NRC_INVDDID: u32 = 59u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NRC_LOCKFAIL: u32 = 60u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NRC_LOCTFUL: u32 = 17u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NRC_MAXAPPS: u32 = 54u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NRC_NAMCONF: u32 = 25u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NRC_NAMERR: u32 = 23u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NRC_NAMTFUL: u32 = 14u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NRC_NOCALL: u32 = 20u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NRC_NORES: u32 = 9u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NRC_NORESOURCES: u32 = 56u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NRC_NOSAPS: u32 = 55u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NRC_NOWILD: u32 = 21u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NRC_OPENERR: u32 = 63u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NRC_OSRESNOTAV: u32 = 53u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NRC_PENDING: u32 = 255u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NRC_REMTFUL: u32 = 18u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NRC_SABORT: u32 = 24u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NRC_SCLOSED: u32 = 10u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NRC_SNUMOUT: u32 = 8u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NRC_SYSTEM: u32 = 64u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const NRC_TOOMANY: u32 = 34u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const REGISTERED: u32 = 4u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const REGISTERING: u32 = 0u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const SESSION_ABORTED: u32 = 6u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const SESSION_ESTABLISHED: u32 = 3u32;
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub const UNIQUE_NAME: u32 = 0u32;
#[repr(C)]
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub struct ACTION_HEADER {
    pub transport_id: u32,
    pub action_code: u16,
    pub reserved: u16,
}
impl ::core::marker::Copy for ACTION_HEADER {}
impl ::core::clone::Clone for ACTION_HEADER {
    fn clone(&self) -> Self {
        *self
    }
}
impl ::core::fmt::Debug for ACTION_HEADER {
    fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
        f.debug_struct("ACTION_HEADER").field("transport_id", &self.transport_id).field("action_code", &self.action_code).field("reserved", &self.reserved).finish()
    }
}
impl ::windows_core::TypeKind for ACTION_HEADER {
    type TypeKind = ::windows_core::CopyType;
}
impl ::core::cmp::PartialEq for ACTION_HEADER {
    fn eq(&self, other: &Self) -> bool {
        self.transport_id == other.transport_id && self.action_code == other.action_code && self.reserved == other.reserved
    }
}
impl ::core::cmp::Eq for ACTION_HEADER {}
impl ::core::default::Default for ACTION_HEADER {
    fn default() -> Self {
        unsafe { ::core::mem::zeroed() }
    }
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub struct ADAPTER_STATUS {
    pub adapter_address: [u8; 6],
    pub rev_major: u8,
    pub reserved0: u8,
    pub adapter_type: u8,
    pub rev_minor: u8,
    pub duration: u16,
    pub frmr_recv: u16,
    pub frmr_xmit: u16,
    pub iframe_recv_err: u16,
    pub xmit_aborts: u16,
    pub xmit_success: u32,
    pub recv_success: u32,
    pub iframe_xmit_err: u16,
    pub recv_buff_unavail: u16,
    pub t1_timeouts: u16,
    pub ti_timeouts: u16,
    pub reserved1: u32,
    pub free_ncbs: u16,
    pub max_cfg_ncbs: u16,
    pub max_ncbs: u16,
    pub xmit_buf_unavail: u16,
    pub max_dgram_size: u16,
    pub pending_sess: u16,
    pub max_cfg_sess: u16,
    pub max_sess: u16,
    pub max_sess_pkt_size: u16,
    pub name_count: u16,
}
impl ::core::marker::Copy for ADAPTER_STATUS {}
impl ::core::clone::Clone for ADAPTER_STATUS {
    fn clone(&self) -> Self {
        *self
    }
}
impl ::core::fmt::Debug for ADAPTER_STATUS {
    fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
        f.debug_struct("ADAPTER_STATUS")
            .field("adapter_address", &self.adapter_address)
            .field("rev_major", &self.rev_major)
            .field("reserved0", &self.reserved0)
            .field("adapter_type", &self.adapter_type)
            .field("rev_minor", &self.rev_minor)
            .field("duration", &self.duration)
            .field("frmr_recv", &self.frmr_recv)
            .field("frmr_xmit", &self.frmr_xmit)
            .field("iframe_recv_err", &self.iframe_recv_err)
            .field("xmit_aborts", &self.xmit_aborts)
            .field("xmit_success", &self.xmit_success)
            .field("recv_success", &self.recv_success)
            .field("iframe_xmit_err", &self.iframe_xmit_err)
            .field("recv_buff_unavail", &self.recv_buff_unavail)
            .field("t1_timeouts", &self.t1_timeouts)
            .field("ti_timeouts", &self.ti_timeouts)
            .field("reserved1", &self.reserved1)
            .field("free_ncbs", &self.free_ncbs)
            .field("max_cfg_ncbs", &self.max_cfg_ncbs)
            .field("max_ncbs", &self.max_ncbs)
            .field("xmit_buf_unavail", &self.xmit_buf_unavail)
            .field("max_dgram_size", &self.max_dgram_size)
            .field("pending_sess", &self.pending_sess)
            .field("max_cfg_sess", &self.max_cfg_sess)
            .field("max_sess", &self.max_sess)
            .field("max_sess_pkt_size", &self.max_sess_pkt_size)
            .field("name_count", &self.name_count)
            .finish()
    }
}
impl ::windows_core::TypeKind for ADAPTER_STATUS {
    type TypeKind = ::windows_core::CopyType;
}
impl ::core::cmp::PartialEq for ADAPTER_STATUS {
    fn eq(&self, other: &Self) -> bool {
        self.adapter_address == other.adapter_address
            && self.rev_major == other.rev_major
            && self.reserved0 == other.reserved0
            && self.adapter_type == other.adapter_type
            && self.rev_minor == other.rev_minor
            && self.duration == other.duration
            && self.frmr_recv == other.frmr_recv
            && self.frmr_xmit == other.frmr_xmit
            && self.iframe_recv_err == other.iframe_recv_err
            && self.xmit_aborts == other.xmit_aborts
            && self.xmit_success == other.xmit_success
            && self.recv_success == other.recv_success
            && self.iframe_xmit_err == other.iframe_xmit_err
            && self.recv_buff_unavail == other.recv_buff_unavail
            && self.t1_timeouts == other.t1_timeouts
            && self.ti_timeouts == other.ti_timeouts
            && self.reserved1 == other.reserved1
            && self.free_ncbs == other.free_ncbs
            && self.max_cfg_ncbs == other.max_cfg_ncbs
            && self.max_ncbs == other.max_ncbs
            && self.xmit_buf_unavail == other.xmit_buf_unavail
            && self.max_dgram_size == other.max_dgram_size
            && self.pending_sess == other.pending_sess
            && self.max_cfg_sess == other.max_cfg_sess
            && self.max_sess == other.max_sess
            && self.max_sess_pkt_size == other.max_sess_pkt_size
            && self.name_count == other.name_count
    }
}
impl ::core::cmp::Eq for ADAPTER_STATUS {}
impl ::core::default::Default for ADAPTER_STATUS {
    fn default() -> Self {
        unsafe { ::core::mem::zeroed() }
    }
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub struct FIND_NAME_BUFFER {
    pub length: u8,
    pub access_control: u8,
    pub frame_control: u8,
    pub destination_addr: [u8; 6],
    pub source_addr: [u8; 6],
    pub routing_info: [u8; 18],
}
impl ::core::marker::Copy for FIND_NAME_BUFFER {}
impl ::core::clone::Clone for FIND_NAME_BUFFER {
    fn clone(&self) -> Self {
        *self
    }
}
impl ::core::fmt::Debug for FIND_NAME_BUFFER {
    fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
        f.debug_struct("FIND_NAME_BUFFER").field("length", &self.length).field("access_control", &self.access_control).field("frame_control", &self.frame_control).field("destination_addr", &self.destination_addr).field("source_addr", &self.source_addr).field("routing_info", &self.routing_info).finish()
    }
}
impl ::windows_core::TypeKind for FIND_NAME_BUFFER {
    type TypeKind = ::windows_core::CopyType;
}
impl ::core::cmp::PartialEq for FIND_NAME_BUFFER {
    fn eq(&self, other: &Self) -> bool {
        self.length == other.length && self.access_control == other.access_control && self.frame_control == other.frame_control && self.destination_addr == other.destination_addr && self.source_addr == other.source_addr && self.routing_info == other.routing_info
    }
}
impl ::core::cmp::Eq for FIND_NAME_BUFFER {}
impl ::core::default::Default for FIND_NAME_BUFFER {
    fn default() -> Self {
        unsafe { ::core::mem::zeroed() }
    }
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub struct FIND_NAME_HEADER {
    pub node_count: u16,
    pub reserved: u8,
    pub unique_group: u8,
}
impl ::core::marker::Copy for FIND_NAME_HEADER {}
impl ::core::clone::Clone for FIND_NAME_HEADER {
    fn clone(&self) -> Self {
        *self
    }
}
impl ::core::fmt::Debug for FIND_NAME_HEADER {
    fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
        f.debug_struct("FIND_NAME_HEADER").field("node_count", &self.node_count).field("reserved", &self.reserved).field("unique_group", &self.unique_group).finish()
    }
}
impl ::windows_core::TypeKind for FIND_NAME_HEADER {
    type TypeKind = ::windows_core::CopyType;
}
impl ::core::cmp::PartialEq for FIND_NAME_HEADER {
    fn eq(&self, other: &Self) -> bool {
        self.node_count == other.node_count && self.reserved == other.reserved && self.unique_group == other.unique_group
    }
}
impl ::core::cmp::Eq for FIND_NAME_HEADER {}
impl ::core::default::Default for FIND_NAME_HEADER {
    fn default() -> Self {
        unsafe { ::core::mem::zeroed() }
    }
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub struct LANA_ENUM {
    pub length: u8,
    pub lana: [u8; 255],
}
impl ::core::marker::Copy for LANA_ENUM {}
impl ::core::clone::Clone for LANA_ENUM {
    fn clone(&self) -> Self {
        *self
    }
}
impl ::core::fmt::Debug for LANA_ENUM {
    fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
        f.debug_struct("LANA_ENUM").field("length", &self.length).field("lana", &self.lana).finish()
    }
}
impl ::windows_core::TypeKind for LANA_ENUM {
    type TypeKind = ::windows_core::CopyType;
}
impl ::core::cmp::PartialEq for LANA_ENUM {
    fn eq(&self, other: &Self) -> bool {
        self.length == other.length && self.lana == other.lana
    }
}
impl ::core::cmp::Eq for LANA_ENUM {}
impl ::core::default::Default for LANA_ENUM {
    fn default() -> Self {
        unsafe { ::core::mem::zeroed() }
    }
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub struct NAME_BUFFER {
    pub name: [u8; 16],
    pub name_num: u8,
    pub name_flags: u8,
}
impl ::core::marker::Copy for NAME_BUFFER {}
impl ::core::clone::Clone for NAME_BUFFER {
    fn clone(&self) -> Self {
        *self
    }
}
impl ::core::fmt::Debug for NAME_BUFFER {
    fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
        f.debug_struct("NAME_BUFFER").field("name", &self.name).field("name_num", &self.name_num).field("name_flags", &self.name_flags).finish()
    }
}
impl ::windows_core::TypeKind for NAME_BUFFER {
    type TypeKind = ::windows_core::CopyType;
}
impl ::core::cmp::PartialEq for NAME_BUFFER {
    fn eq(&self, other: &Self) -> bool {
        self.name == other.name && self.name_num == other.name_num && self.name_flags == other.name_flags
    }
}
impl ::core::cmp::Eq for NAME_BUFFER {}
impl ::core::default::Default for NAME_BUFFER {
    fn default() -> Self {
        unsafe { ::core::mem::zeroed() }
    }
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`, `\"Win32_Foundation\"`*"]
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(feature = "Win32_Foundation")]
pub struct NCB {
    pub ncb_command: u8,
    pub ncb_retcode: u8,
    pub ncb_lsn: u8,
    pub ncb_num: u8,
    pub ncb_buffer: *mut u8,
    pub ncb_length: u16,
    pub ncb_callname: [u8; 16],
    pub ncb_name: [u8; 16],
    pub ncb_rto: u8,
    pub ncb_sto: u8,
    pub ncb_post: isize,
    pub ncb_lana_num: u8,
    pub ncb_cmd_cplt: u8,
    pub ncb_reserve: [u8; 18],
    pub ncb_event: super::super::Foundation::HANDLE,
}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(feature = "Win32_Foundation")]
impl ::core::marker::Copy for NCB {}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(feature = "Win32_Foundation")]
impl ::core::clone::Clone for NCB {
    fn clone(&self) -> Self {
        *self
    }
}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(feature = "Win32_Foundation")]
impl ::core::fmt::Debug for NCB {
    fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
        f.debug_struct("NCB")
            .field("ncb_command", &self.ncb_command)
            .field("ncb_retcode", &self.ncb_retcode)
            .field("ncb_lsn", &self.ncb_lsn)
            .field("ncb_num", &self.ncb_num)
            .field("ncb_buffer", &self.ncb_buffer)
            .field("ncb_length", &self.ncb_length)
            .field("ncb_callname", &self.ncb_callname)
            .field("ncb_name", &self.ncb_name)
            .field("ncb_rto", &self.ncb_rto)
            .field("ncb_sto", &self.ncb_sto)
            .field("ncb_post", &self.ncb_post)
            .field("ncb_lana_num", &self.ncb_lana_num)
            .field("ncb_cmd_cplt", &self.ncb_cmd_cplt)
            .field("ncb_reserve", &self.ncb_reserve)
            .field("ncb_event", &self.ncb_event)
            .finish()
    }
}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(feature = "Win32_Foundation")]
impl ::windows_core::TypeKind for NCB {
    type TypeKind = ::windows_core::CopyType;
}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(feature = "Win32_Foundation")]
impl ::core::cmp::PartialEq for NCB {
    fn eq(&self, other: &Self) -> bool {
        self.ncb_command == other.ncb_command && self.ncb_retcode == other.ncb_retcode && self.ncb_lsn == other.ncb_lsn && self.ncb_num == other.ncb_num && self.ncb_buffer == other.ncb_buffer && self.ncb_length == other.ncb_length && self.ncb_callname == other.ncb_callname && self.ncb_name == other.ncb_name && self.ncb_rto == other.ncb_rto && self.ncb_sto == other.ncb_sto && self.ncb_post == other.ncb_post && self.ncb_lana_num == other.ncb_lana_num && self.ncb_cmd_cplt == other.ncb_cmd_cplt && self.ncb_reserve == other.ncb_reserve && self.ncb_event == other.ncb_event
    }
}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(feature = "Win32_Foundation")]
impl ::core::cmp::Eq for NCB {}
#[cfg(any(target_arch = "aarch64", target_arch = "x86_64"))]
#[cfg(feature = "Win32_Foundation")]
impl ::core::default::Default for NCB {
    fn default() -> Self {
        unsafe { ::core::mem::zeroed() }
    }
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`, `\"Win32_Foundation\"`*"]
#[cfg(target_arch = "x86")]
#[cfg(feature = "Win32_Foundation")]
pub struct NCB {
    pub ncb_command: u8,
    pub ncb_retcode: u8,
    pub ncb_lsn: u8,
    pub ncb_num: u8,
    pub ncb_buffer: *mut u8,
    pub ncb_length: u16,
    pub ncb_callname: [u8; 16],
    pub ncb_name: [u8; 16],
    pub ncb_rto: u8,
    pub ncb_sto: u8,
    pub ncb_post: isize,
    pub ncb_lana_num: u8,
    pub ncb_cmd_cplt: u8,
    pub ncb_reserve: [u8; 10],
    pub ncb_event: super::super::Foundation::HANDLE,
}
#[cfg(target_arch = "x86")]
#[cfg(feature = "Win32_Foundation")]
impl ::core::marker::Copy for NCB {}
#[cfg(target_arch = "x86")]
#[cfg(feature = "Win32_Foundation")]
impl ::core::clone::Clone for NCB {
    fn clone(&self) -> Self {
        *self
    }
}
#[cfg(target_arch = "x86")]
#[cfg(feature = "Win32_Foundation")]
impl ::core::fmt::Debug for NCB {
    fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
        f.debug_struct("NCB")
            .field("ncb_command", &self.ncb_command)
            .field("ncb_retcode", &self.ncb_retcode)
            .field("ncb_lsn", &self.ncb_lsn)
            .field("ncb_num", &self.ncb_num)
            .field("ncb_buffer", &self.ncb_buffer)
            .field("ncb_length", &self.ncb_length)
            .field("ncb_callname", &self.ncb_callname)
            .field("ncb_name", &self.ncb_name)
            .field("ncb_rto", &self.ncb_rto)
            .field("ncb_sto", &self.ncb_sto)
            .field("ncb_post", &self.ncb_post)
            .field("ncb_lana_num", &self.ncb_lana_num)
            .field("ncb_cmd_cplt", &self.ncb_cmd_cplt)
            .field("ncb_reserve", &self.ncb_reserve)
            .field("ncb_event", &self.ncb_event)
            .finish()
    }
}
#[cfg(target_arch = "x86")]
#[cfg(feature = "Win32_Foundation")]
impl ::windows_core::TypeKind for NCB {
    type TypeKind = ::windows_core::CopyType;
}
#[cfg(target_arch = "x86")]
#[cfg(feature = "Win32_Foundation")]
impl ::core::cmp::PartialEq for NCB {
    fn eq(&self, other: &Self) -> bool {
        self.ncb_command == other.ncb_command && self.ncb_retcode == other.ncb_retcode && self.ncb_lsn == other.ncb_lsn && self.ncb_num == other.ncb_num && self.ncb_buffer == other.ncb_buffer && self.ncb_length == other.ncb_length && self.ncb_callname == other.ncb_callname && self.ncb_name == other.ncb_name && self.ncb_rto == other.ncb_rto && self.ncb_sto == other.ncb_sto && self.ncb_post == other.ncb_post && self.ncb_lana_num == other.ncb_lana_num && self.ncb_cmd_cplt == other.ncb_cmd_cplt && self.ncb_reserve == other.ncb_reserve && self.ncb_event == other.ncb_event
    }
}
#[cfg(target_arch = "x86")]
#[cfg(feature = "Win32_Foundation")]
impl ::core::cmp::Eq for NCB {}
#[cfg(target_arch = "x86")]
#[cfg(feature = "Win32_Foundation")]
impl ::core::default::Default for NCB {
    fn default() -> Self {
        unsafe { ::core::mem::zeroed() }
    }
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub struct SESSION_BUFFER {
    pub lsn: u8,
    pub state: u8,
    pub local_name: [u8; 16],
    pub remote_name: [u8; 16],
    pub rcvs_outstanding: u8,
    pub sends_outstanding: u8,
}
impl ::core::marker::Copy for SESSION_BUFFER {}
impl ::core::clone::Clone for SESSION_BUFFER {
    fn clone(&self) -> Self {
        *self
    }
}
impl ::core::fmt::Debug for SESSION_BUFFER {
    fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
        f.debug_struct("SESSION_BUFFER").field("lsn", &self.lsn).field("state", &self.state).field("local_name", &self.local_name).field("remote_name", &self.remote_name).field("rcvs_outstanding", &self.rcvs_outstanding).field("sends_outstanding", &self.sends_outstanding).finish()
    }
}
impl ::windows_core::TypeKind for SESSION_BUFFER {
    type TypeKind = ::windows_core::CopyType;
}
impl ::core::cmp::PartialEq for SESSION_BUFFER {
    fn eq(&self, other: &Self) -> bool {
        self.lsn == other.lsn && self.state == other.state && self.local_name == other.local_name && self.remote_name == other.remote_name && self.rcvs_outstanding == other.rcvs_outstanding && self.sends_outstanding == other.sends_outstanding
    }
}
impl ::core::cmp::Eq for SESSION_BUFFER {}
impl ::core::default::Default for SESSION_BUFFER {
    fn default() -> Self {
        unsafe { ::core::mem::zeroed() }
    }
}
#[repr(C)]
#[doc = "*Required features: `\"Win32_NetworkManagement_NetBios\"`*"]
pub struct SESSION_HEADER {
    pub sess_name: u8,
    pub num_sess: u8,
    pub rcv_dg_outstanding: u8,
    pub rcv_any_outstanding: u8,
}
impl ::core::marker::Copy for SESSION_HEADER {}
impl ::core::clone::Clone for SESSION_HEADER {
    fn clone(&self) -> Self {
        *self
    }
}
impl ::core::fmt::Debug for SESSION_HEADER {
    fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
        f.debug_struct("SESSION_HEADER").field("sess_name", &self.sess_name).field("num_sess", &self.num_sess).field("rcv_dg_outstanding", &self.rcv_dg_outstanding).field("rcv_any_outstanding", &self.rcv_any_outstanding).finish()
    }
}
impl ::windows_core::TypeKind for SESSION_HEADER {
    type TypeKind = ::windows_core::CopyType;
}
impl ::core::cmp::PartialEq for SESSION_HEADER {
    fn eq(&self, other: &Self) -> bool {
        self.sess_name == other.sess_name && self.num_sess == other.num_sess && self.rcv_dg_outstanding == other.rcv_dg_outstanding && self.rcv_any_outstanding == other.rcv_any_outstanding
    }
}
impl ::core::cmp::Eq for SESSION_HEADER {}
impl ::core::default::Default for SESSION_HEADER {
    fn default() -> Self {
        unsafe { ::core::mem::zeroed() }
    }
}