diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:18:58 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:18:58 +0000 |
commit | a4b7ed7a42c716ab9f05e351f003d589124fd55d (patch) | |
tree | b620cd3f223850b28716e474e80c58059dca5dd4 /vendor/windows-sys/src/Windows/Win32/NetworkManagement/WindowsNetworkVirtualization/mod.rs | |
parent | Adding upstream version 1.67.1+dfsg1. (diff) | |
download | rustc-a4b7ed7a42c716ab9f05e351f003d589124fd55d.tar.xz rustc-a4b7ed7a42c716ab9f05e351f003d589124fd55d.zip |
Adding upstream version 1.68.2+dfsg1.upstream/1.68.2+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | vendor/windows-sys/src/Windows/Win32/NetworkManagement/WindowsNetworkVirtualization/mod.rs | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/vendor/windows-sys/src/Windows/Win32/NetworkManagement/WindowsNetworkVirtualization/mod.rs b/vendor/windows-sys/src/Windows/Win32/NetworkManagement/WindowsNetworkVirtualization/mod.rs index fe68c2179..dba334185 100644 --- a/vendor/windows-sys/src/Windows/Win32/NetworkManagement/WindowsNetworkVirtualization/mod.rs +++ b/vendor/windows-sys/src/Windows/Win32/NetworkManagement/WindowsNetworkVirtualization/mod.rs @@ -1,12 +1,7 @@ -#[cfg_attr(windows, link(name = "windows"))] -extern "system" { - #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsNetworkVirtualization\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn WnvOpen() -> super::super::Foundation::HANDLE; - #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsNetworkVirtualization\"`, `\"Win32_Foundation\"`, `\"Win32_System_IO\"`*"] - #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))] - pub fn WnvRequestNotification(wnvhandle: super::super::Foundation::HANDLE, notificationparam: *mut WNV_NOTIFICATION_PARAM, overlapped: *mut super::super::System::IO::OVERLAPPED, bytestransferred: *mut u32) -> u32; -} +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "wnvapi.dll""system" #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsNetworkVirtualization\"`, `\"Win32_Foundation\"`*"] fn WnvOpen ( ) -> super::super::Foundation:: HANDLE ); +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_IO"))] +::windows_sys::core::link ! ( "wnvapi.dll""system" #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsNetworkVirtualization\"`, `\"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 ); #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsNetworkVirtualization\"`*"] pub const WNV_API_MAJOR_VERSION_1: u32 = 1u32; #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsNetworkVirtualization\"`*"] @@ -44,10 +39,10 @@ pub const WnvObjectTypeMax: WNV_OBJECT_TYPE = 2i32; #[cfg(feature = "Win32_Networking_WinSock")] pub struct WNV_CUSTOMER_ADDRESS_CHANGE_PARAM { pub MACAddress: super::super::Networking::WinSock::DL_EUI48, - pub CAFamily: u16, + pub CAFamily: super::super::Networking::WinSock::ADDRESS_FAMILY, pub CA: WNV_IP_ADDRESS, pub VirtualSubnetId: u32, - pub PAFamily: u16, + pub PAFamily: super::super::Networking::WinSock::ADDRESS_FAMILY, pub PA: WNV_IP_ADDRESS, pub NotificationReason: WNV_CA_NOTIFICATION_TYPE, } @@ -150,8 +145,8 @@ impl ::core::clone::Clone for WNV_OBJECT_HEADER { #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsNetworkVirtualization\"`, `\"Win32_Networking_WinSock\"`*"] #[cfg(feature = "Win32_Networking_WinSock")] pub struct WNV_POLICY_MISMATCH_PARAM { - pub CAFamily: u16, - pub PAFamily: u16, + pub CAFamily: super::super::Networking::WinSock::ADDRESS_FAMILY, + pub PAFamily: super::super::Networking::WinSock::ADDRESS_FAMILY, pub VirtualSubnetId: u32, pub CA: WNV_IP_ADDRESS, pub PA: WNV_IP_ADDRESS, @@ -168,7 +163,7 @@ impl ::core::clone::Clone for WNV_POLICY_MISMATCH_PARAM { #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsNetworkVirtualization\"`, `\"Win32_Networking_WinSock\"`*"] #[cfg(feature = "Win32_Networking_WinSock")] pub struct WNV_PROVIDER_ADDRESS_CHANGE_PARAM { - pub PAFamily: u16, + pub PAFamily: super::super::Networking::WinSock::ADDRESS_FAMILY, pub PA: WNV_IP_ADDRESS, pub AddressState: super::super::Networking::WinSock::NL_DAD_STATE, } @@ -184,9 +179,9 @@ impl ::core::clone::Clone for WNV_PROVIDER_ADDRESS_CHANGE_PARAM { #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsNetworkVirtualization\"`, `\"Win32_Networking_WinSock\"`*"] #[cfg(feature = "Win32_Networking_WinSock")] pub struct WNV_REDIRECT_PARAM { - pub CAFamily: u16, - pub PAFamily: u16, - pub NewPAFamily: u16, + pub CAFamily: super::super::Networking::WinSock::ADDRESS_FAMILY, + pub PAFamily: super::super::Networking::WinSock::ADDRESS_FAMILY, + pub NewPAFamily: super::super::Networking::WinSock::ADDRESS_FAMILY, pub VirtualSubnetId: u32, pub CA: WNV_IP_ADDRESS, pub PA: WNV_IP_ADDRESS, |