diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:18:25 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:18:25 +0000 |
commit | 5363f350887b1e5b5dd21a86f88c8af9d7fea6da (patch) | |
tree | 35ca005eb6e0e9a1ba3bb5dbc033209ad445dc17 /vendor/windows-sys/src/Windows/Win32/NetworkManagement/WindowsConnectionManager | |
parent | Adding debian version 1.66.0+dfsg1-1. (diff) | |
download | rustc-5363f350887b1e5b5dd21a86f88c8af9d7fea6da.tar.xz rustc-5363f350887b1e5b5dd21a86f88c8af9d7fea6da.zip |
Merging upstream version 1.67.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/windows-sys/src/Windows/Win32/NetworkManagement/WindowsConnectionManager')
-rw-r--r-- | vendor/windows-sys/src/Windows/Win32/NetworkManagement/WindowsConnectionManager/mod.rs | 146 |
1 files changed, 73 insertions, 73 deletions
diff --git a/vendor/windows-sys/src/Windows/Win32/NetworkManagement/WindowsConnectionManager/mod.rs b/vendor/windows-sys/src/Windows/Win32/NetworkManagement/WindowsConnectionManager/mod.rs index 1510ed3e4..64b0b29c7 100644 --- a/vendor/windows-sys/src/Windows/Win32/NetworkManagement/WindowsConnectionManager/mod.rs +++ b/vendor/windows-sys/src/Windows/Win32/NetworkManagement/WindowsConnectionManager/mod.rs @@ -1,4 +1,4 @@ -#[link(name = "windows")] +#[cfg_attr(windows, link(name = "windows"))] extern "system" { #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -26,6 +26,76 @@ extern "system" { #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] pub fn WcmSetProperty(pinterface: *const ::windows_sys::core::GUID, strprofilename: ::windows_sys::core::PCWSTR, property: WCM_PROPERTY, preserved: *mut ::core::ffi::c_void, dwdatasize: u32, pbdata: *const u8) -> u32; } +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] +pub const NET_INTERFACE_FLAG_CONNECT_IF_NEEDED: u32 = 1u32; +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] +pub const NET_INTERFACE_FLAG_NONE: u32 = 0u32; +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] +pub const WCM_API_VERSION: u32 = 1u32; +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] +pub const WCM_API_VERSION_1_0: u32 = 1u32; +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] +pub const WCM_MAX_PROFILE_NAME: u32 = 256u32; +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] +pub const WCM_UNKNOWN_DATAPLAN_STATUS: u32 = 4294967295u32; +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] +pub type WCM_CONNECTION_COST = i32; +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] +pub const WCM_CONNECTION_COST_UNKNOWN: WCM_CONNECTION_COST = 0i32; +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] +pub const WCM_CONNECTION_COST_UNRESTRICTED: WCM_CONNECTION_COST = 1i32; +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] +pub const WCM_CONNECTION_COST_FIXED: WCM_CONNECTION_COST = 2i32; +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] +pub const WCM_CONNECTION_COST_VARIABLE: WCM_CONNECTION_COST = 4i32; +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] +pub const WCM_CONNECTION_COST_OVERDATALIMIT: WCM_CONNECTION_COST = 65536i32; +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] +pub const WCM_CONNECTION_COST_CONGESTED: WCM_CONNECTION_COST = 131072i32; +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] +pub const WCM_CONNECTION_COST_ROAMING: WCM_CONNECTION_COST = 262144i32; +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] +pub const WCM_CONNECTION_COST_APPROACHINGDATALIMIT: WCM_CONNECTION_COST = 524288i32; +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] +pub type WCM_CONNECTION_COST_SOURCE = i32; +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] +pub const WCM_CONNECTION_COST_SOURCE_DEFAULT: WCM_CONNECTION_COST_SOURCE = 0i32; +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] +pub const WCM_CONNECTION_COST_SOURCE_GP: WCM_CONNECTION_COST_SOURCE = 1i32; +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] +pub const WCM_CONNECTION_COST_SOURCE_USER: WCM_CONNECTION_COST_SOURCE = 2i32; +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] +pub const WCM_CONNECTION_COST_SOURCE_OPERATOR: WCM_CONNECTION_COST_SOURCE = 3i32; +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] +pub type WCM_MEDIA_TYPE = i32; +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] +pub const wcm_media_unknown: WCM_MEDIA_TYPE = 0i32; +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] +pub const wcm_media_ethernet: WCM_MEDIA_TYPE = 1i32; +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] +pub const wcm_media_wlan: WCM_MEDIA_TYPE = 2i32; +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] +pub const wcm_media_mbn: WCM_MEDIA_TYPE = 3i32; +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] +pub const wcm_media_invalid: WCM_MEDIA_TYPE = 4i32; +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] +pub const wcm_media_max: WCM_MEDIA_TYPE = 5i32; +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] +pub type WCM_PROPERTY = i32; +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] +pub const wcm_global_property_domain_policy: WCM_PROPERTY = 0i32; +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] +pub const wcm_global_property_minimize_policy: WCM_PROPERTY = 1i32; +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] +pub const wcm_global_property_roaming_policy: WCM_PROPERTY = 2i32; +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] +pub const wcm_global_property_powermanagement_policy: WCM_PROPERTY = 3i32; +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] +pub const wcm_intf_property_connection_cost: WCM_PROPERTY = 4i32; +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] +pub const wcm_intf_property_dataplan_status: WCM_PROPERTY = 5i32; +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] +pub const wcm_intf_property_hotspot_profile: WCM_PROPERTY = 6i32; #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] pub struct NET_INTERFACE_CONTEXT { @@ -54,16 +124,6 @@ impl ::core::clone::Clone for NET_INTERFACE_CONTEXT_TABLE { *self } } -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] -pub const NET_INTERFACE_FLAG_CONNECT_IF_NEEDED: u32 = 1u32; -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] -pub const NET_INTERFACE_FLAG_NONE: u32 = 0u32; -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] -pub type ONDEMAND_NOTIFICATION_CALLBACK = ::core::option::Option<unsafe extern "system" fn(param0: *const ::core::ffi::c_void)>; -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] -pub const WCM_API_VERSION: u32 = 1u32; -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] -pub const WCM_API_VERSION_1_0: u32 = 1u32; #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -80,24 +140,6 @@ impl ::core::clone::Clone for WCM_BILLING_CYCLE_INFO { *self } } -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] -pub type WCM_CONNECTION_COST = i32; -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] -pub const WCM_CONNECTION_COST_UNKNOWN: WCM_CONNECTION_COST = 0i32; -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] -pub const WCM_CONNECTION_COST_UNRESTRICTED: WCM_CONNECTION_COST = 1i32; -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] -pub const WCM_CONNECTION_COST_FIXED: WCM_CONNECTION_COST = 2i32; -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] -pub const WCM_CONNECTION_COST_VARIABLE: WCM_CONNECTION_COST = 4i32; -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] -pub const WCM_CONNECTION_COST_OVERDATALIMIT: WCM_CONNECTION_COST = 65536i32; -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] -pub const WCM_CONNECTION_COST_CONGESTED: WCM_CONNECTION_COST = 131072i32; -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] -pub const WCM_CONNECTION_COST_ROAMING: WCM_CONNECTION_COST = 262144i32; -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] -pub const WCM_CONNECTION_COST_APPROACHINGDATALIMIT: WCM_CONNECTION_COST = 524288i32; #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] pub struct WCM_CONNECTION_COST_DATA { @@ -110,16 +152,6 @@ impl ::core::clone::Clone for WCM_CONNECTION_COST_DATA { *self } } -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] -pub type WCM_CONNECTION_COST_SOURCE = i32; -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] -pub const WCM_CONNECTION_COST_SOURCE_DEFAULT: WCM_CONNECTION_COST_SOURCE = 0i32; -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] -pub const WCM_CONNECTION_COST_SOURCE_GP: WCM_CONNECTION_COST_SOURCE = 1i32; -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] -pub const WCM_CONNECTION_COST_SOURCE_USER: WCM_CONNECTION_COST_SOURCE = 2i32; -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] -pub const WCM_CONNECTION_COST_SOURCE_OPERATOR: WCM_CONNECTION_COST_SOURCE = 3i32; #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -140,22 +172,6 @@ impl ::core::clone::Clone for WCM_DATAPLAN_STATUS { *self } } -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] -pub const WCM_MAX_PROFILE_NAME: u32 = 256u32; -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] -pub type WCM_MEDIA_TYPE = i32; -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] -pub const wcm_media_unknown: WCM_MEDIA_TYPE = 0i32; -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] -pub const wcm_media_ethernet: WCM_MEDIA_TYPE = 1i32; -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] -pub const wcm_media_wlan: WCM_MEDIA_TYPE = 2i32; -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] -pub const wcm_media_mbn: WCM_MEDIA_TYPE = 3i32; -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] -pub const wcm_media_invalid: WCM_MEDIA_TYPE = 4i32; -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] -pub const wcm_media_max: WCM_MEDIA_TYPE = 5i32; #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -196,22 +212,6 @@ impl ::core::clone::Clone for WCM_PROFILE_INFO_LIST { *self } } -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] -pub type WCM_PROPERTY = i32; -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] -pub const wcm_global_property_domain_policy: WCM_PROPERTY = 0i32; -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] -pub const wcm_global_property_minimize_policy: WCM_PROPERTY = 1i32; -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] -pub const wcm_global_property_roaming_policy: WCM_PROPERTY = 2i32; -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] -pub const wcm_global_property_powermanagement_policy: WCM_PROPERTY = 3i32; -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] -pub const wcm_intf_property_connection_cost: WCM_PROPERTY = 4i32; -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] -pub const wcm_intf_property_dataplan_status: WCM_PROPERTY = 5i32; -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] -pub const wcm_intf_property_hotspot_profile: WCM_PROPERTY = 6i32; #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] pub struct WCM_TIME_INTERVAL { @@ -229,8 +229,6 @@ impl ::core::clone::Clone for WCM_TIME_INTERVAL { *self } } -#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] -pub const WCM_UNKNOWN_DATAPLAN_STATUS: u32 = 4294967295u32; #[repr(C)] #[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`, `\"Win32_Foundation\"`*"] #[cfg(feature = "Win32_Foundation")] @@ -246,3 +244,5 @@ impl ::core::clone::Clone for WCM_USAGE_DATA { *self } } +#[doc = "*Required features: `\"Win32_NetworkManagement_WindowsConnectionManager\"`*"] +pub type ONDEMAND_NOTIFICATION_CALLBACK = ::core::option::Option<unsafe extern "system" fn(param0: *const ::core::ffi::c_void)>; |