Debian Codegraph @

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

raw
1 #[cfg(feature = "Win32_Foundation")]
2 ::windows_targets::link!("ondemandconnroutehelper.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn FreeInterfaceContextTable(interfacecontexttable : *const NET_INTERFACE_CONTEXT_TABLE) -> ());
3 #[cfg(feature = "Win32_Foundation")]
4 ::windows_targets::link!("ondemandconnroutehelper.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn GetInterfaceContextTableForHostName(hostname : ::windows_sys::core::PCWSTR, proxyname : ::windows_sys::core::PCWSTR, flags : u32, connectionprofilefilterrawdata : *const u8, connectionprofilefilterrawdatasize : u32, interfacecontexttable : *mut *mut NET_INTERFACE_CONTEXT_TABLE) -> ::windows_sys::core::HRESULT);
5 ::windows_targets::link!("ondemandconnroutehelper.dll" "system" fn OnDemandGetRoutingHint(destinationhostname : ::windows_sys::core::PCWSTR, interfaceindex : *mut u32) -> ::windows_sys::core::HRESULT);
6 #[cfg(feature = "Win32_Foundation")]
7 ::windows_targets::link!("ondemandconnroutehelper.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn OnDemandRegisterNotification(callback : ONDEMAND_NOTIFICATION_CALLBACK, callbackcontext : *const ::core::ffi::c_void, registrationhandle : *mut super::super::Foundation:: HANDLE) -> ::windows_sys::core::HRESULT);
8 #[cfg(feature = "Win32_Foundation")]
9 ::windows_targets::link!("ondemandconnroutehelper.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn OnDemandUnRegisterNotification(registrationhandle : super::super::Foundation:: HANDLE) -> ::windows_sys::core::HRESULT);
10 ::windows_targets::link!("wcmapi.dll" "system" fn WcmFreeMemory(pmemory : *mut ::core::ffi::c_void) -> ());
11 ::windows_targets::link!("wcmapi.dll" "system" fn WcmGetProfileList(preserved : *const ::core::ffi::c_void, ppprofilelist : *mut *mut WCM_PROFILE_INFO_LIST) -> u32);
12 ::windows_targets::link!("wcmapi.dll" "system" fn WcmQueryProperty(pinterface : *const ::windows_sys::core::GUID, strprofilename : ::windows_sys::core::PCWSTR, property : WCM_PROPERTY, preserved : *const ::core::ffi::c_void, pdwdatasize : *mut u32, ppdata : *mut *mut u8) -> u32);
13 #[cfg(feature = "Win32_Foundation")]
14 ::windows_targets::link!("wcmapi.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn WcmSetProfileList(pprofilelist : *const WCM_PROFILE_INFO_LIST, dwposition : u32, fignoreunknownprofiles : super::super::Foundation:: BOOL, preserved : *const ::core::ffi::c_void) -> u32);
15 ::windows_targets::link!("wcmapi.dll" "system" fn WcmSetProperty(pinterface : *const ::windows_sys::core::GUID, strprofilename : ::windows_sys::core::PCWSTR, property : WCM_PROPERTY, preserved : *const ::core::ffi::c_void, dwdatasize : u32, pbdata : *const u8) -> u32);
16 pub const NET_INTERFACE_FLAG_CONNECT_IF_NEEDED: u32 = 1u32;
17 pub const NET_INTERFACE_FLAG_NONE: u32 = 0u32;
18 pub const WCM_API_VERSION: u32 = 1u32;
19 pub const WCM_API_VERSION_1_0: u32 = 1u32;
20 pub const WCM_CONNECTION_COST_APPROACHINGDATALIMIT: WCM_CONNECTION_COST = 524288i32;
21 pub const WCM_CONNECTION_COST_CONGESTED: WCM_CONNECTION_COST = 131072i32;
22 pub const WCM_CONNECTION_COST_FIXED: WCM_CONNECTION_COST = 2i32;
23 pub const WCM_CONNECTION_COST_OVERDATALIMIT: WCM_CONNECTION_COST = 65536i32;
24 pub const WCM_CONNECTION_COST_ROAMING: WCM_CONNECTION_COST = 262144i32;
25 pub const WCM_CONNECTION_COST_SOURCE_DEFAULT: WCM_CONNECTION_COST_SOURCE = 0i32;
26 pub const WCM_CONNECTION_COST_SOURCE_GP: WCM_CONNECTION_COST_SOURCE = 1i32;
27 pub const WCM_CONNECTION_COST_SOURCE_OPERATOR: WCM_CONNECTION_COST_SOURCE = 3i32;
28 pub const WCM_CONNECTION_COST_SOURCE_USER: WCM_CONNECTION_COST_SOURCE = 2i32;
29 pub const WCM_CONNECTION_COST_UNKNOWN: WCM_CONNECTION_COST = 0i32;
30 pub const WCM_CONNECTION_COST_UNRESTRICTED: WCM_CONNECTION_COST = 1i32;
31 pub const WCM_CONNECTION_COST_VARIABLE: WCM_CONNECTION_COST = 4i32;
32 pub const WCM_MAX_PROFILE_NAME: u32 = 256u32;
33 pub const WCM_UNKNOWN_DATAPLAN_STATUS: u32 = 4294967295u32;
34 pub const wcm_global_property_domain_policy: WCM_PROPERTY = 0i32;
35 pub const wcm_global_property_minimize_policy: WCM_PROPERTY = 1i32;
36 pub const wcm_global_property_powermanagement_policy: WCM_PROPERTY = 3i32;
37 pub const wcm_global_property_roaming_policy: WCM_PROPERTY = 2i32;
38 pub const wcm_intf_property_connection_cost: WCM_PROPERTY = 4i32;
39 pub const wcm_intf_property_dataplan_status: WCM_PROPERTY = 5i32;
40 pub const wcm_intf_property_hotspot_profile: WCM_PROPERTY = 6i32;
41 pub const wcm_media_ethernet: WCM_MEDIA_TYPE = 1i32;
42 pub const wcm_media_invalid: WCM_MEDIA_TYPE = 4i32;
43 pub const wcm_media_max: WCM_MEDIA_TYPE = 5i32;
44 pub const wcm_media_mbn: WCM_MEDIA_TYPE = 3i32;
45 pub const wcm_media_unknown: WCM_MEDIA_TYPE = 0i32;
46 pub const wcm_media_wlan: WCM_MEDIA_TYPE = 2i32;
47 pub type WCM_CONNECTION_COST = i32;
48 pub type WCM_CONNECTION_COST_SOURCE = i32;
49 pub type WCM_MEDIA_TYPE = i32;
50 pub type WCM_PROPERTY = i32;
51 #[repr(C)]
52 pub struct NET_INTERFACE_CONTEXT {
53 pub InterfaceIndex: u32,
54 pub ConfigurationName: ::windows_sys::core::PWSTR,
55 }
56 impl ::core::marker::Copy for NET_INTERFACE_CONTEXT {}
57 impl ::core::clone::Clone for NET_INTERFACE_CONTEXT {
58 fn clone(&self) -> Self {
59 *self
60 }
61 }
62 #[repr(C)]
63 #[doc = "Required features: `\"Win32_Foundation\"`"]
64 #[cfg(feature = "Win32_Foundation")]
65 pub struct NET_INTERFACE_CONTEXT_TABLE {
66 pub InterfaceContextHandle: super::super::Foundation::HANDLE,
67 pub NumberOfEntries: u32,
68 pub InterfaceContextArray: *mut NET_INTERFACE_CONTEXT,
69 }
70 #[cfg(feature = "Win32_Foundation")]
71 impl ::core::marker::Copy for NET_INTERFACE_CONTEXT_TABLE {}
72 #[cfg(feature = "Win32_Foundation")]
73 impl ::core::clone::Clone for NET_INTERFACE_CONTEXT_TABLE {
74 fn clone(&self) -> Self {
75 *self
76 }
77 }
78 #[repr(C)]
79 #[doc = "Required features: `\"Win32_Foundation\"`"]
80 #[cfg(feature = "Win32_Foundation")]
81 pub struct WCM_BILLING_CYCLE_INFO {
82 pub StartDate: super::super::Foundation::FILETIME,
83 pub Duration: WCM_TIME_INTERVAL,
84 pub Reset: super::super::Foundation::BOOL,
85 }
86 #[cfg(feature = "Win32_Foundation")]
87 impl ::core::marker::Copy for WCM_BILLING_CYCLE_INFO {}
88 #[cfg(feature = "Win32_Foundation")]
89 impl ::core::clone::Clone for WCM_BILLING_CYCLE_INFO {
90 fn clone(&self) -> Self {
91 *self
92 }
93 }
94 #[repr(C)]
95 pub struct WCM_CONNECTION_COST_DATA {
96 pub ConnectionCost: u32,
97 pub CostSource: WCM_CONNECTION_COST_SOURCE,
98 }
99 impl ::core::marker::Copy for WCM_CONNECTION_COST_DATA {}
100 impl ::core::clone::Clone for WCM_CONNECTION_COST_DATA {
101 fn clone(&self) -> Self {
102 *self
103 }
104 }
105 #[repr(C)]
106 #[doc = "Required features: `\"Win32_Foundation\"`"]
107 #[cfg(feature = "Win32_Foundation")]
108 pub struct WCM_DATAPLAN_STATUS {
109 pub UsageData: WCM_USAGE_DATA,
110 pub DataLimitInMegabytes: u32,
111 pub InboundBandwidthInKbps: u32,
112 pub OutboundBandwidthInKbps: u32,
113 pub BillingCycle: WCM_BILLING_CYCLE_INFO,
114 pub MaxTransferSizeInMegabytes: u32,
115 pub Reserved: u32,
116 }
117 #[cfg(feature = "Win32_Foundation")]
118 impl ::core::marker::Copy for WCM_DATAPLAN_STATUS {}
119 #[cfg(feature = "Win32_Foundation")]
120 impl ::core::clone::Clone for WCM_DATAPLAN_STATUS {
121 fn clone(&self) -> Self {
122 *self
123 }
124 }
125 #[repr(C)]
126 #[doc = "Required features: `\"Win32_Foundation\"`"]
127 #[cfg(feature = "Win32_Foundation")]
128 pub struct WCM_POLICY_VALUE {
129 pub fValue: super::super::Foundation::BOOL,
130 pub fIsGroupPolicy: super::super::Foundation::BOOL,
131 }
132 #[cfg(feature = "Win32_Foundation")]
133 impl ::core::marker::Copy for WCM_POLICY_VALUE {}
134 #[cfg(feature = "Win32_Foundation")]
135 impl ::core::clone::Clone for WCM_POLICY_VALUE {
136 fn clone(&self) -> Self {
137 *self
138 }
139 }
140 #[repr(C)]
141 pub struct WCM_PROFILE_INFO {
142 pub strProfileName: [u16; 256],
143 pub AdapterGUID: ::windows_sys::core::GUID,
144 pub Media: WCM_MEDIA_TYPE,
145 }
146 impl ::core::marker::Copy for WCM_PROFILE_INFO {}
147 impl ::core::clone::Clone for WCM_PROFILE_INFO {
148 fn clone(&self) -> Self {
149 *self
150 }
151 }
152 #[repr(C)]
153 pub struct WCM_PROFILE_INFO_LIST {
154 pub dwNumberOfItems: u32,
155 pub ProfileInfo: [WCM_PROFILE_INFO; 1],
156 }
157 impl ::core::marker::Copy for WCM_PROFILE_INFO_LIST {}
158 impl ::core::clone::Clone for WCM_PROFILE_INFO_LIST {
159 fn clone(&self) -> Self {
160 *self
161 }
162 }
163 #[repr(C)]
164 pub struct WCM_TIME_INTERVAL {
165 pub wYear: u16,
166 pub wMonth: u16,
167 pub wDay: u16,
168 pub wHour: u16,
169 pub wMinute: u16,
170 pub wSecond: u16,
171 pub wMilliseconds: u16,
172 }
173 impl ::core::marker::Copy for WCM_TIME_INTERVAL {}
174 impl ::core::clone::Clone for WCM_TIME_INTERVAL {
175 fn clone(&self) -> Self {
176 *self
177 }
178 }
179 #[repr(C)]
180 #[doc = "Required features: `\"Win32_Foundation\"`"]
181 #[cfg(feature = "Win32_Foundation")]
182 pub struct WCM_USAGE_DATA {
183 pub UsageInMegabytes: u32,
184 pub LastSyncTime: super::super::Foundation::FILETIME,
185 }
186 #[cfg(feature = "Win32_Foundation")]
187 impl ::core::marker::Copy for WCM_USAGE_DATA {}
188 #[cfg(feature = "Win32_Foundation")]
189 impl ::core::clone::Clone for WCM_USAGE_DATA {
190 fn clone(&self) -> Self {
191 *self
192 }
193 }
194 pub type ONDEMAND_NOTIFICATION_CALLBACK = ::core::option::Option<unsafe extern "system" fn(param0: *const ::core::ffi::c_void) -> ()>;