Debian Codegraph @

.cargo/vendor/windows-sys/src/Windows/Win32/NetworkManagement/WindowsNetworkVirtualization/mod.rs

raw
1 #[cfg(feature = "Win32_Foundation")]
2 ::windows_targets::link!("wnvapi.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn WnvOpen() -> super::super::Foundation:: HANDLE);
3 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))]
4 ::windows_targets::link!("wnvapi.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`, `\"Win32_System_IO\"`"] fn WnvRequestNotification(wnvhandle : super::super::Foundation:: HANDLE, notificationparam : *mut WNV_NOTIFICATION_PARAM, overlapped : *mut super::super::System::IO:: OVERLAPPED, bytestransferred : *mut u32) -> u32);
5 pub const WNV_API_MAJOR_VERSION_1: u32 = 1u32;
6 pub const WNV_API_MINOR_VERSION_0: u32 = 0u32;
7 pub const WnvCustomerAddressAdded: WNV_CA_NOTIFICATION_TYPE = 0i32;
8 pub const WnvCustomerAddressDeleted: WNV_CA_NOTIFICATION_TYPE = 1i32;
9 pub const WnvCustomerAddressMax: WNV_CA_NOTIFICATION_TYPE = 3i32;
10 pub const WnvCustomerAddressMoved: WNV_CA_NOTIFICATION_TYPE = 2i32;
11 pub const WnvCustomerAddressType: WNV_OBJECT_TYPE = 1i32;
12 pub const WnvNotificationTypeMax: WNV_NOTIFICATION_TYPE = 3i32;
13 pub const WnvObjectChangeType: WNV_NOTIFICATION_TYPE = 2i32;
14 pub const WnvObjectTypeMax: WNV_OBJECT_TYPE = 2i32;
15 pub const WnvPolicyMismatchType: WNV_NOTIFICATION_TYPE = 0i32;
16 pub const WnvProviderAddressType: WNV_OBJECT_TYPE = 0i32;
17 pub const WnvRedirectType: WNV_NOTIFICATION_TYPE = 1i32;
18 pub type WNV_CA_NOTIFICATION_TYPE = i32;
19 pub type WNV_NOTIFICATION_TYPE = i32;
20 pub type WNV_OBJECT_TYPE = i32;
21 #[repr(C)]
22 #[doc = "Required features: `\"Win32_Networking_WinSock\"`"]
23 #[cfg(feature = "Win32_Networking_WinSock")]
24 pub struct WNV_CUSTOMER_ADDRESS_CHANGE_PARAM {
25 pub MACAddress: super::super::Networking::WinSock::DL_EUI48,
26 pub CAFamily: super::super::Networking::WinSock::ADDRESS_FAMILY,
27 pub CA: WNV_IP_ADDRESS,
28 pub VirtualSubnetId: u32,
29 pub PAFamily: super::super::Networking::WinSock::ADDRESS_FAMILY,
30 pub PA: WNV_IP_ADDRESS,
31 pub NotificationReason: WNV_CA_NOTIFICATION_TYPE,
32 }
33 #[cfg(feature = "Win32_Networking_WinSock")]
34 impl ::core::marker::Copy for WNV_CUSTOMER_ADDRESS_CHANGE_PARAM {}
35 #[cfg(feature = "Win32_Networking_WinSock")]
36 impl ::core::clone::Clone for WNV_CUSTOMER_ADDRESS_CHANGE_PARAM {
37 fn clone(&self) -> Self {
38 *self
39 }
40 }
41 #[repr(C)]
42 #[doc = "Required features: `\"Win32_Networking_WinSock\"`"]
43 #[cfg(feature = "Win32_Networking_WinSock")]
44 pub struct WNV_IP_ADDRESS {
45 pub IP: WNV_IP_ADDRESS_0,
46 }
47 #[cfg(feature = "Win32_Networking_WinSock")]
48 impl ::core::marker::Copy for WNV_IP_ADDRESS {}
49 #[cfg(feature = "Win32_Networking_WinSock")]
50 impl ::core::clone::Clone for WNV_IP_ADDRESS {
51 fn clone(&self) -> Self {
52 *self
53 }
54 }
55 #[repr(C)]
56 #[doc = "Required features: `\"Win32_Networking_WinSock\"`"]
57 #[cfg(feature = "Win32_Networking_WinSock")]
58 pub union WNV_IP_ADDRESS_0 {
59 pub v4: super::super::Networking::WinSock::IN_ADDR,
60 pub v6: super::super::Networking::WinSock::IN6_ADDR,
61 pub Addr: [u8; 16],
62 }
63 #[cfg(feature = "Win32_Networking_WinSock")]
64 impl ::core::marker::Copy for WNV_IP_ADDRESS_0 {}
65 #[cfg(feature = "Win32_Networking_WinSock")]
66 impl ::core::clone::Clone for WNV_IP_ADDRESS_0 {
67 fn clone(&self) -> Self {
68 *self
69 }
70 }
71 #[repr(C)]
72 pub struct WNV_NOTIFICATION_PARAM {
73 pub Header: WNV_OBJECT_HEADER,
74 pub NotificationType: WNV_NOTIFICATION_TYPE,
75 pub PendingNotifications: u32,
76 pub Buffer: *mut u8,
77 }
78 impl ::core::marker::Copy for WNV_NOTIFICATION_PARAM {}
79 impl ::core::clone::Clone for WNV_NOTIFICATION_PARAM {
80 fn clone(&self) -> Self {
81 *self
82 }
83 }
84 #[repr(C)]
85 #[doc = "Required features: `\"Win32_Networking_WinSock\"`"]
86 #[cfg(feature = "Win32_Networking_WinSock")]
87 pub struct WNV_OBJECT_CHANGE_PARAM {
88 pub ObjectType: WNV_OBJECT_TYPE,
89 pub ObjectParam: WNV_OBJECT_CHANGE_PARAM_0,
90 }
91 #[cfg(feature = "Win32_Networking_WinSock")]
92 impl ::core::marker::Copy for WNV_OBJECT_CHANGE_PARAM {}
93 #[cfg(feature = "Win32_Networking_WinSock")]
94 impl ::core::clone::Clone for WNV_OBJECT_CHANGE_PARAM {
95 fn clone(&self) -> Self {
96 *self
97 }
98 }
99 #[repr(C)]
100 #[doc = "Required features: `\"Win32_Networking_WinSock\"`"]
101 #[cfg(feature = "Win32_Networking_WinSock")]
102 pub union WNV_OBJECT_CHANGE_PARAM_0 {
103 pub ProviderAddressChange: WNV_PROVIDER_ADDRESS_CHANGE_PARAM,
104 pub CustomerAddressChange: WNV_CUSTOMER_ADDRESS_CHANGE_PARAM,
105 }
106 #[cfg(feature = "Win32_Networking_WinSock")]
107 impl ::core::marker::Copy for WNV_OBJECT_CHANGE_PARAM_0 {}
108 #[cfg(feature = "Win32_Networking_WinSock")]
109 impl ::core::clone::Clone for WNV_OBJECT_CHANGE_PARAM_0 {
110 fn clone(&self) -> Self {
111 *self
112 }
113 }
114 #[repr(C)]
115 pub struct WNV_OBJECT_HEADER {
116 pub MajorVersion: u8,
117 pub MinorVersion: u8,
118 pub Size: u32,
119 }
120 impl ::core::marker::Copy for WNV_OBJECT_HEADER {}
121 impl ::core::clone::Clone for WNV_OBJECT_HEADER {
122 fn clone(&self) -> Self {
123 *self
124 }
125 }
126 #[repr(C)]
127 #[doc = "Required features: `\"Win32_Networking_WinSock\"`"]
128 #[cfg(feature = "Win32_Networking_WinSock")]
129 pub struct WNV_POLICY_MISMATCH_PARAM {
130 pub CAFamily: super::super::Networking::WinSock::ADDRESS_FAMILY,
131 pub PAFamily: super::super::Networking::WinSock::ADDRESS_FAMILY,
132 pub VirtualSubnetId: u32,
133 pub CA: WNV_IP_ADDRESS,
134 pub PA: WNV_IP_ADDRESS,
135 }
136 #[cfg(feature = "Win32_Networking_WinSock")]
137 impl ::core::marker::Copy for WNV_POLICY_MISMATCH_PARAM {}
138 #[cfg(feature = "Win32_Networking_WinSock")]
139 impl ::core::clone::Clone for WNV_POLICY_MISMATCH_PARAM {
140 fn clone(&self) -> Self {
141 *self
142 }
143 }
144 #[repr(C)]
145 #[doc = "Required features: `\"Win32_Networking_WinSock\"`"]
146 #[cfg(feature = "Win32_Networking_WinSock")]
147 pub struct WNV_PROVIDER_ADDRESS_CHANGE_PARAM {
148 pub PAFamily: super::super::Networking::WinSock::ADDRESS_FAMILY,
149 pub PA: WNV_IP_ADDRESS,
150 pub AddressState: super::super::Networking::WinSock::NL_DAD_STATE,
151 }
152 #[cfg(feature = "Win32_Networking_WinSock")]
153 impl ::core::marker::Copy for WNV_PROVIDER_ADDRESS_CHANGE_PARAM {}
154 #[cfg(feature = "Win32_Networking_WinSock")]
155 impl ::core::clone::Clone for WNV_PROVIDER_ADDRESS_CHANGE_PARAM {
156 fn clone(&self) -> Self {
157 *self
158 }
159 }
160 #[repr(C)]
161 #[doc = "Required features: `\"Win32_Networking_WinSock\"`"]
162 #[cfg(feature = "Win32_Networking_WinSock")]
163 pub struct WNV_REDIRECT_PARAM {
164 pub CAFamily: super::super::Networking::WinSock::ADDRESS_FAMILY,
165 pub PAFamily: super::super::Networking::WinSock::ADDRESS_FAMILY,
166 pub NewPAFamily: super::super::Networking::WinSock::ADDRESS_FAMILY,
167 pub VirtualSubnetId: u32,
168 pub CA: WNV_IP_ADDRESS,
169 pub PA: WNV_IP_ADDRESS,
170 pub NewPA: WNV_IP_ADDRESS,
171 }
172 #[cfg(feature = "Win32_Networking_WinSock")]
173 impl ::core::marker::Copy for WNV_REDIRECT_PARAM {}
174 #[cfg(feature = "Win32_Networking_WinSock")]
175 impl ::core::clone::Clone for WNV_REDIRECT_PARAM {
176 fn clone(&self) -> Self {
177 *self
178 }
179 }