| 1 |
/* |
| 2 |
* Copyright (C) 2021 Alistair Leslie-Hughes |
| 3 |
* Copyright (C) 2023 Mohamad Al-Jaf |
| 4 |
* |
| 5 |
* This library is free software; you can redistribute it and/or |
| 6 |
* modify it under the terms of the GNU Lesser General Public |
| 7 |
* License as published by the Free Software Foundation; either |
| 8 |
* version 2.1 of the License, or (at your option) any later version. |
| 9 |
* |
| 10 |
* This library is distributed in the hope that it will be useful, |
| 11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 |
* Lesser General Public License for more details. |
| 14 |
* |
| 15 |
* You should have received a copy of the GNU Lesser General Public |
| 16 |
* License along with this library; if not, write to the Free Software |
| 17 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA |
| 18 |
*/ |
| 19 |
|
| 20 |
#ifdef __WIDL__ |
| 21 |
#pragma winrt ns_prefix |
| 22 |
#endif |
| 23 |
|
| 24 |
import "inspectable.idl"; |
| 25 |
import "asyncinfo.idl"; |
| 26 |
import "eventtoken.idl"; |
| 27 |
import "windowscontracts.idl"; |
| 28 |
import "windows.foundation.idl"; |
| 29 |
import "windows.networking.idl"; |
| 30 |
import "windows.storage.streams.idl"; |
| 31 |
|
| 32 |
namespace Windows.Foundation |
| 33 |
{ |
| 34 |
interface IClosable; |
| 35 |
|
| 36 |
runtimeclass Uri; |
| 37 |
} |
| 38 |
|
| 39 |
namespace Windows.Networking |
| 40 |
{ |
| 41 |
typedef enum DomainNameType DomainNameType; |
| 42 |
typedef enum HostNameSortOptions HostNameSortOptions; |
| 43 |
|
| 44 |
runtimeclass EndpointPair; |
| 45 |
runtimeclass HostName; |
| 46 |
} |
| 47 |
|
| 48 |
namespace Windows.Networking.Connectivity |
| 49 |
{ |
| 50 |
runtimeclass ConnectionCost; |
| 51 |
runtimeclass ConnectionProfile; |
| 52 |
runtimeclass DataPlanStatus; |
| 53 |
runtimeclass DataPlanUsage; |
| 54 |
runtimeclass DataUsage; |
| 55 |
runtimeclass IPInformation; |
| 56 |
runtimeclass LanIdentifier; |
| 57 |
runtimeclass LanIdentifierData; |
| 58 |
runtimeclass NetworkAdapter; |
| 59 |
runtimeclass NetworkInformation; |
| 60 |
runtimeclass NetworkItem; |
| 61 |
runtimeclass NetworkSecuritySettings; |
| 62 |
runtimeclass ProxyConfiguration; |
| 63 |
runtimeclass WwanConnectionProfileDetails; |
| 64 |
runtimeclass WlanConnectionProfileDetails; |
| 65 |
runtimeclass NetworkUsage; |
| 66 |
runtimeclass ConnectivityInterval; |
| 67 |
|
| 68 |
typedef enum NetworkAuthenticationType NetworkAuthenticationType; |
| 69 |
typedef enum NetworkConnectivityLevel NetworkConnectivityLevel; |
| 70 |
typedef enum NetworkCostType NetworkCostType; |
| 71 |
typedef enum NetworkEncryptionType NetworkEncryptionType; |
| 72 |
typedef enum NetworkTypes NetworkTypes; |
| 73 |
typedef enum RoamingStates RoamingStates; |
| 74 |
typedef enum DomainConnectivityLevel DomainConnectivityLevel; |
| 75 |
typedef enum DataUsageGranularity DataUsageGranularity; |
| 76 |
typedef enum TriStates TriStates; |
| 77 |
typedef enum WwanNetworkRegistrationState WwanNetworkRegistrationState; |
| 78 |
typedef enum WwanDataClass WwanDataClass; |
| 79 |
|
| 80 |
typedef struct NetworkUsageStates NetworkUsageStates; |
| 81 |
|
| 82 |
declare |
| 83 |
{ |
| 84 |
interface Windows.Foundation.AsyncOperationCompletedHandler<Windows.Networking.Connectivity.ConnectionProfile *>; |
| 85 |
interface Windows.Foundation.AsyncOperationCompletedHandler<Windows.Networking.Connectivity.ProxyConfiguration *>; |
| 86 |
interface Windows.Foundation.IAsyncOperation<Windows.Networking.Connectivity.ConnectionProfile *>; |
| 87 |
interface Windows.Foundation.IAsyncOperation<Windows.Networking.Connectivity.ProxyConfiguration *>; |
| 88 |
interface Windows.Foundation.Collections.IIterable<Windows.Networking.EndpointPair *>; |
| 89 |
interface Windows.Foundation.Collections.IVectorView<Windows.Networking.Connectivity.ConnectionProfile *>; |
| 90 |
interface Windows.Foundation.Collections.IVectorView<Windows.Networking.Connectivity.LanIdentifier *>; |
| 91 |
interface Windows.Foundation.Collections.IVectorView<Windows.Networking.HostName *>; |
| 92 |
interface Windows.Foundation.Collections.IVectorView<Windows.Networking.EndpointPair *>; |
| 93 |
interface Windows.Foundation.Collections.IVectorView<Windows.Networking.Connectivity.NetworkUsage*>; |
| 94 |
interface Windows.Foundation.IAsyncOperation<Windows.Foundation.Collections.IVectorView<Windows.Networking.Connectivity.NetworkUsage*>*>; |
| 95 |
interface Windows.Foundation.Collections.IVectorView<Windows.Networking.Connectivity.ConnectivityInterval*>; |
| 96 |
interface Windows.Foundation.IAsyncOperation<Windows.Foundation.Collections.IVectorView<Windows.Networking.Connectivity.ConnectivityInterval*>*>; |
| 97 |
interface Windows.Foundation.AsyncOperationCompletedHandler<Windows.Foundation.Collections.IVectorView<Windows.Networking.Connectivity.ConnectivityInterval*>*>; |
| 98 |
interface Windows.Foundation.AsyncOperationCompletedHandler<Windows.Foundation.Collections.IVectorView<Windows.Networking.Connectivity.NetworkUsage*>*>; |
| 99 |
} |
| 100 |
|
| 101 |
[ |
| 102 |
contractversion(2.0), |
| 103 |
] |
| 104 |
apicontract WwanContract |
| 105 |
{ |
| 106 |
} |
| 107 |
|
| 108 |
[ |
| 109 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 110 |
] |
| 111 |
enum NetworkAuthenticationType |
| 112 |
{ |
| 113 |
None = 0, |
| 114 |
Unknown = 1, |
| 115 |
Open80211 = 2, |
| 116 |
SharedKey80211 = 3, |
| 117 |
Wpa = 4, |
| 118 |
WpaPsk = 5, |
| 119 |
WpaNone = 6, |
| 120 |
Rsna = 7, |
| 121 |
RsnaPsk = 8, |
| 122 |
Ihv = 9, |
| 123 |
}; |
| 124 |
|
| 125 |
[ |
| 126 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 127 |
] |
| 128 |
enum NetworkConnectivityLevel |
| 129 |
{ |
| 130 |
None = 0, |
| 131 |
LocalAccess = 1, |
| 132 |
ConstrainedInternetAccess = 2, |
| 133 |
InternetAccess = 3, |
| 134 |
}; |
| 135 |
|
| 136 |
[ |
| 137 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 138 |
] |
| 139 |
enum NetworkCostType |
| 140 |
{ |
| 141 |
Unknown = 0, |
| 142 |
Unrestricted = 1, |
| 143 |
Fixed = 2, |
| 144 |
Variable = 3, |
| 145 |
}; |
| 146 |
|
| 147 |
[ |
| 148 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 149 |
] |
| 150 |
enum NetworkEncryptionType |
| 151 |
{ |
| 152 |
None = 0, |
| 153 |
Unknown = 1, |
| 154 |
Wep = 2, |
| 155 |
Wep40 = 3, |
| 156 |
Wep104 = 4, |
| 157 |
Tkip = 5, |
| 158 |
Ccmp = 6, |
| 159 |
WpaUseGroup = 7, |
| 160 |
RsnUseGroup = 8, |
| 161 |
Ihv = 9, |
| 162 |
}; |
| 163 |
|
| 164 |
[ |
| 165 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 166 |
flags, |
| 167 |
] |
| 168 |
enum NetworkTypes |
| 169 |
{ |
| 170 |
None = 0x0, |
| 171 |
Internet = 0x1, |
| 172 |
PrivateNetwork = 0x2, |
| 173 |
}; |
| 174 |
|
| 175 |
[ |
| 176 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 177 |
flags, |
| 178 |
] |
| 179 |
enum RoamingStates |
| 180 |
{ |
| 181 |
None = 0x0, |
| 182 |
NotRoaming = 0x1, |
| 183 |
Roaming = 0x2, |
| 184 |
}; |
| 185 |
|
| 186 |
[ |
| 187 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 188 |
] |
| 189 |
enum DomainConnectivityLevel |
| 190 |
{ |
| 191 |
None = 0, |
| 192 |
Unauthenticated = 1, |
| 193 |
Authenticated = 2 |
| 194 |
}; |
| 195 |
|
| 196 |
[ |
| 197 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 198 |
] |
| 199 |
enum DataUsageGranularity |
| 200 |
{ |
| 201 |
PerMinute = 0, |
| 202 |
PerHour = 1, |
| 203 |
PerDay = 2, |
| 204 |
Total = 3 |
| 205 |
}; |
| 206 |
|
| 207 |
[ |
| 208 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 209 |
] |
| 210 |
enum TriStates |
| 211 |
{ |
| 212 |
DoNotCare = 0, |
| 213 |
No = 1, |
| 214 |
Yes = 2 |
| 215 |
}; |
| 216 |
|
| 217 |
[ |
| 218 |
contract(Windows.Networking.Connectivity.WwanContract, 1.0), |
| 219 |
] |
| 220 |
enum WwanNetworkRegistrationState |
| 221 |
{ |
| 222 |
None = 0, |
| 223 |
Deregistered = 1, |
| 224 |
Searching = 2, |
| 225 |
Home = 3, |
| 226 |
Roaming = 4, |
| 227 |
Partner = 5, |
| 228 |
Denied = 6 |
| 229 |
}; |
| 230 |
|
| 231 |
[ |
| 232 |
contract(Windows.Networking.Connectivity.WwanContract, 1.0), |
| 233 |
flags, |
| 234 |
] |
| 235 |
enum WwanDataClass |
| 236 |
{ |
| 237 |
None = 0x0, |
| 238 |
Gprs = 0x1, |
| 239 |
Edge = 0x2, |
| 240 |
Umts = 0x4, |
| 241 |
Hsdpa = 0x8, |
| 242 |
Hsupa = 0x10, |
| 243 |
LteAdvanced = 0x20, |
| 244 |
Cdma1xRtt = 0x10000, |
| 245 |
Cdma1xEvdo = 0x20000, |
| 246 |
Cdma1xEvdoRevA = 0x40000, |
| 247 |
Cdma1xEvdv = 0x80000, |
| 248 |
Cdma3xRtt = 0x100000, |
| 249 |
Cdma1xEvdoRevB = 0x200000, |
| 250 |
CdmaUmb = 0x400000, |
| 251 |
Custom = 0x80000000 |
| 252 |
}; |
| 253 |
|
| 254 |
[ |
| 255 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 256 |
] |
| 257 |
struct NetworkUsageStates |
| 258 |
{ |
| 259 |
Windows.Networking.Connectivity.TriStates Roaming; |
| 260 |
Windows.Networking.Connectivity.TriStates Shared; |
| 261 |
}; |
| 262 |
|
| 263 |
[ |
| 264 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 265 |
uuid(71ba143f-598e-49d0-84eb-8febaedcc195), |
| 266 |
] |
| 267 |
delegate HRESULT NetworkStatusChangedEventHandler([in] IInspectable *sender); |
| 268 |
|
| 269 |
[ |
| 270 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 271 |
exclusiveto(Windows.Networking.Connectivity.ConnectionCost), |
| 272 |
uuid(bad7d829-3416-4b10-a202-bac0b075bdae), |
| 273 |
] |
| 274 |
interface IConnectionCost : IInspectable |
| 275 |
{ |
| 276 |
[propget] HRESULT NetworkCostType([out, retval] Windows.Networking.Connectivity.NetworkCostType *value); |
| 277 |
[propget] HRESULT Roaming([out, retval] boolean *value); |
| 278 |
[propget] HRESULT OverDataLimit([out, retval] boolean *value); |
| 279 |
[propget] HRESULT ApproachingDataLimit([out, retval] boolean *value); |
| 280 |
} |
| 281 |
|
| 282 |
[ |
| 283 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 284 |
exclusiveto(Windows.Networking.Connectivity.ConnectionProfile), |
| 285 |
uuid(71ba143c-598e-49d0-84eb-8febaedcc195), |
| 286 |
] |
| 287 |
interface IConnectionProfile : IInspectable |
| 288 |
{ |
| 289 |
[propget] HRESULT ProfileName([out, retval] HSTRING *value); |
| 290 |
HRESULT GetNetworkConnectivityLevel([out, retval] Windows.Networking.Connectivity.NetworkConnectivityLevel *value); |
| 291 |
HRESULT GetNetworkNames([out, retval] Windows.Foundation.Collections.IVectorView<HSTRING> **value); |
| 292 |
HRESULT GetConnectionCost([out, retval] Windows.Networking.Connectivity.ConnectionCost **value); |
| 293 |
HRESULT GetDataPlanStatus([out, retval] Windows.Networking.Connectivity.DataPlanStatus **value); |
| 294 |
[propget] HRESULT NetworkAdapter([out, retval] Windows.Networking.Connectivity.NetworkAdapter **value); |
| 295 |
HRESULT GetLocalUsage([in] Windows.Foundation.DateTime start, [in] Windows.Foundation.DateTime end, |
| 296 |
[out, retval] Windows.Networking.Connectivity.DataUsage **value); |
| 297 |
HRESULT GetLocalUsagePerRoamingStates([in] Windows.Foundation.DateTime start, |
| 298 |
[in] Windows.Foundation.DateTime end, [in] Windows.Networking.Connectivity.RoamingStates states, |
| 299 |
[out, retval] Windows.Networking.Connectivity.DataUsage **value); |
| 300 |
[propget] HRESULT NetworkSecuritySettings([out, retval] Windows.Networking.Connectivity.NetworkSecuritySettings **value); |
| 301 |
} |
| 302 |
|
| 303 |
[ |
| 304 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 305 |
exclusiveto(Windows.Networking.Connectivity.ConnectionProfile), |
| 306 |
uuid(e2045145-4c9f-400c-9150-7ec7d6e2888a), |
| 307 |
] |
| 308 |
interface IConnectionProfile2 : IInspectable |
| 309 |
{ |
| 310 |
[propget] HRESULT IsWwanConnectionProfile([out, retval] boolean *value); |
| 311 |
[propget] HRESULT IsWlanConnectionProfile([out, retval] boolean *value); |
| 312 |
[propget] HRESULT WwanConnectionProfileDetails([out, retval] Windows.Networking.Connectivity.WwanConnectionProfileDetails **value); |
| 313 |
[propget] HRESULT WlanConnectionProfileDetails([out, retval] Windows.Networking.Connectivity.WlanConnectionProfileDetails **value); |
| 314 |
[propget] HRESULT ServiceProviderGuid([out, retval] Windows.Foundation.IReference<GUID> **value); |
| 315 |
HRESULT GetSignalBars([out, retval] Windows.Foundation.IReference<BYTE> **value); |
| 316 |
HRESULT GetDomainConnectivityLevel([out, retval] Windows.Networking.Connectivity.DomainConnectivityLevel *value); |
| 317 |
HRESULT GetNetworkUsageAsync([in] Windows.Foundation.DateTime time_start, [in] Windows.Foundation.DateTime time_end, |
| 318 |
[in] Windows.Networking.Connectivity.DataUsageGranularity granularity, [in] Windows.Networking.Connectivity.NetworkUsageStates states, |
| 319 |
[out, retval] Windows.Foundation.IAsyncOperation<Windows.Foundation.Collections.IVectorView<Windows.Networking.Connectivity.NetworkUsage*>*> **value); |
| 320 |
HRESULT GetConnectivityIntervalsAsync([in] Windows.Foundation.DateTime time_start, [in] Windows.Foundation.DateTime time_end, |
| 321 |
[in] Windows.Networking.Connectivity.NetworkUsageStates states, |
| 322 |
[out, retval] Windows.Foundation.IAsyncOperation<Windows.Foundation.Collections.IVectorView<Windows.Networking.Connectivity.ConnectivityInterval*>*> **value); |
| 323 |
} |
| 324 |
|
| 325 |
[ |
| 326 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 327 |
exclusiveto(Windows.Networking.Connectivity.DataPlanStatus), |
| 328 |
uuid(977a8b8c-3885-40f3-8851-42cd2bd568bb), |
| 329 |
] |
| 330 |
interface IDataPlanStatus : IInspectable |
| 331 |
{ |
| 332 |
[propget] HRESULT DataPlanUsage([out, retval] Windows.Networking.Connectivity.DataPlanUsage **value); |
| 333 |
[propget] HRESULT DataLimitInMegabytes([out, retval] Windows.Foundation.IReference<UINT32> **value); |
| 334 |
[propget] HRESULT InboundBitsPerSecond([out, retval] Windows.Foundation.IReference<UINT64> **value); |
| 335 |
[propget] HRESULT OutboundBitsPerSecond([out, retval] Windows.Foundation.IReference<UINT64> **value); |
| 336 |
[propget] HRESULT NextBillingCycle([out, retval] Windows.Foundation.IReference<Windows.Foundation.DateTime> **value); |
| 337 |
[propget] HRESULT MaxTransferSizeInMegabytes([out, retval] Windows.Foundation.IReference<UINT32> **value); |
| 338 |
} |
| 339 |
|
| 340 |
[ |
| 341 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 342 |
exclusiveto(Windows.Networking.Connectivity.DataPlanUsage), |
| 343 |
uuid(b921492d-3b44-47ff-b361-be59e69ed1b0), |
| 344 |
] |
| 345 |
interface IDataPlanUsage : IInspectable |
| 346 |
{ |
| 347 |
[propget] HRESULT MegabytesUsed([out, retval] UINT32 *value); |
| 348 |
[propget] HRESULT LastSyncTime([out, retval] Windows.Foundation.DateTime *value); |
| 349 |
} |
| 350 |
|
| 351 |
[ |
| 352 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 353 |
exclusiveto(Windows.Networking.Connectivity.DataUsage), |
| 354 |
uuid(c1431dd3-b146-4d39-b959-0c69b096c512), |
| 355 |
] |
| 356 |
interface IDataUsage : IInspectable |
| 357 |
{ |
| 358 |
[propget] HRESULT BytesSent([out, retval] UINT64 *value); |
| 359 |
[propget] HRESULT BytesReceived([out, retval] UINT64 *value); |
| 360 |
} |
| 361 |
|
| 362 |
[ |
| 363 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 364 |
exclusiveto(Windows.Networking.Connectivity.IPInformation), |
| 365 |
uuid(d85145e0-138f-47d7-9b3a-36bb488cef33), |
| 366 |
] |
| 367 |
interface IIPInformation : IInspectable |
| 368 |
{ |
| 369 |
[propget] HRESULT NetworkAdapter([out, retval] Windows.Networking.Connectivity.NetworkAdapter **value); |
| 370 |
[propget] HRESULT PrefixLength([out, retval] Windows.Foundation.IReference<BYTE> **value); |
| 371 |
} |
| 372 |
|
| 373 |
[ |
| 374 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 375 |
exclusiveto(Windows.Networking.Connectivity.LanIdentifier), |
| 376 |
uuid(48aa53aa-1108-4546-a6cb-9a74da4b7ba0), |
| 377 |
] |
| 378 |
interface ILanIdentifier : IInspectable |
| 379 |
{ |
| 380 |
[propget] HRESULT InfrastructureId([out, retval] Windows.Networking.Connectivity.LanIdentifierData **value); |
| 381 |
[propget] HRESULT PortId([out, retval] Windows.Networking.Connectivity.LanIdentifierData **value); |
| 382 |
[propget] HRESULT NetworkAdapterId([out, retval] GUID *value); |
| 383 |
} |
| 384 |
|
| 385 |
[ |
| 386 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 387 |
exclusiveto(Windows.Networking.Connectivity.LanIdentifierData), |
| 388 |
uuid(a74e83c3-d639-45be-a36a-c4e4aeaf6d9b), |
| 389 |
] |
| 390 |
interface ILanIdentifierData : IInspectable |
| 391 |
{ |
| 392 |
[propget] HRESULT Type([out, retval] UINT32 *value); |
| 393 |
[propget] HRESULT Value([out,retval] Windows.Foundation.Collections.IVectorView<BYTE> **value); |
| 394 |
} |
| 395 |
|
| 396 |
[ |
| 397 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 398 |
exclusiveto(Windows.Networking.Connectivity.NetworkAdapter), |
| 399 |
uuid(3b542e03-5388-496c-a8a3-affd39aec2e6), |
| 400 |
] |
| 401 |
interface INetworkAdapter : IInspectable |
| 402 |
{ |
| 403 |
[propget] HRESULT OutboundMaxBitsPerSecond([out, retval] UINT64 *value); |
| 404 |
[propget] HRESULT InboundMaxBitsPerSecond([out, retval] UINT64 *value); |
| 405 |
[propget] HRESULT IanaInterfaceType([out, retval] UINT32 *value); |
| 406 |
[propget] HRESULT NetworkItem([out, retval] Windows.Networking.Connectivity.NetworkItem **value); |
| 407 |
[propget] HRESULT NetworkAdapterId([out, retval] GUID *value); |
| 408 |
HRESULT GetConnectedProfileAsync([out, retval] Windows.Foundation.IAsyncOperation<Windows.Networking.Connectivity.ConnectionProfile *> **value); |
| 409 |
} |
| 410 |
|
| 411 |
[ |
| 412 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 413 |
exclusiveto(Windows.Networking.Connectivity.NetworkInformation), |
| 414 |
uuid(5074f851-950d-4165-9c15-365619481eea), |
| 415 |
] |
| 416 |
interface INetworkInformationStatics : IInspectable |
| 417 |
{ |
| 418 |
HRESULT GetConnectionProfiles([out, retval] Windows.Foundation.Collections.IVectorView<Windows.Networking.Connectivity.ConnectionProfile *> **value); |
| 419 |
HRESULT GetInternetConnectionProfile([out, retval] Windows.Networking.Connectivity.ConnectionProfile **value); |
| 420 |
HRESULT GetLanIdentifiers([out, retval] Windows.Foundation.Collections.IVectorView<Windows.Networking.Connectivity.LanIdentifier *> **value); |
| 421 |
HRESULT GetHostNames([out, retval] Windows.Foundation.Collections.IVectorView<Windows.Networking.HostName *> **value); |
| 422 |
HRESULT GetProxyConfigurationAsync([in] Windows.Foundation.Uri *uri, |
| 423 |
[out, retval] Windows.Foundation.IAsyncOperation<Windows.Networking.Connectivity.ProxyConfiguration *> **value); |
| 424 |
HRESULT GetSortedEndpointPairs([in] Windows.Foundation.Collections.IIterable<Windows.Networking.EndpointPair *> *endpoint, |
| 425 |
[in] Windows.Networking.HostNameSortOptions options, |
| 426 |
[out, retval] Windows.Foundation.Collections.IVectorView<Windows.Networking.EndpointPair *> **value); |
| 427 |
[eventadd] HRESULT NetworkStatusChanged([in] Windows.Networking.Connectivity.NetworkStatusChangedEventHandler *handler, |
| 428 |
[out, retval] EventRegistrationToken *cookie); |
| 429 |
[eventremove] HRESULT NetworkStatusChanged([in] EventRegistrationToken cookie); |
| 430 |
} |
| 431 |
|
| 432 |
[ |
| 433 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 434 |
exclusiveto(Windows.Networking.Connectivity.NetworkItem), |
| 435 |
uuid(01bc4d39-f5e0-4567-a28c-42080c831b2b), |
| 436 |
] |
| 437 |
interface INetworkItem : IInspectable |
| 438 |
{ |
| 439 |
[propget] HRESULT NetworkId([out, retval] GUID *value); |
| 440 |
HRESULT GetNetworkTypes([out, retval] NetworkTypes *value); |
| 441 |
} |
| 442 |
|
| 443 |
[ |
| 444 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 445 |
exclusiveto(Windows.Networking.Connectivity.NetworkSecuritySettings), |
| 446 |
uuid(7ca07e8d-917b-4b5f-b84d-28f7a5ac5402), |
| 447 |
] |
| 448 |
interface INetworkSecuritySettings : IInspectable |
| 449 |
{ |
| 450 |
[propget] HRESULT NetworkAuthenticationType([out, retval] Windows.Networking.Connectivity.NetworkAuthenticationType *value); |
| 451 |
[propget] HRESULT NetworkEncryptionType([out, retval] Windows.Networking.Connectivity.NetworkEncryptionType *value); |
| 452 |
} |
| 453 |
|
| 454 |
[ |
| 455 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 456 |
exclusiveto(Windows.Networking.Connectivity.ProxyConfiguration), |
| 457 |
uuid(ef3a60b4-9004-4dd6-b7d8-b3e502f4aad0), |
| 458 |
] |
| 459 |
interface IProxyConfiguration : IInspectable |
| 460 |
{ |
| 461 |
[propget] HRESULT ProxyUris([out, retval] Windows.Foundation.Collections.IVectorView<Windows.Foundation.Uri *> **value); |
| 462 |
[propget] HRESULT CanConnectDirectly([out, retval] boolean *value); |
| 463 |
} |
| 464 |
|
| 465 |
[ |
| 466 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 467 |
exclusiveto(Windows.Networking.Connectivity.NetworkUsage), |
| 468 |
uuid(49da8fce-9985-4927-bf5b-072b5c65f8d9), |
| 469 |
] |
| 470 |
interface INetworkUsage : IInspectable |
| 471 |
{ |
| 472 |
[propget] HRESULT BytesSent([out, retval] UINT64 *value); |
| 473 |
[propget] HRESULT BytesReceived([out, retval] UINT64 *value); |
| 474 |
[propget] HRESULT ConnectionDuration([out, retval] Windows.Foundation.TimeSpan *duration); |
| 475 |
} |
| 476 |
|
| 477 |
[ |
| 478 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 479 |
exclusiveto(Windows.Networking.Connectivity.ConnectivityInterval), |
| 480 |
uuid(4faa3fff-6746-4824-a964-eed8e87f8709), |
| 481 |
] |
| 482 |
interface IConnectivityInterval : IInspectable |
| 483 |
{ |
| 484 |
[propget] HRESULT StartTime([out, retval] Windows.Foundation.DateTime *time_start); |
| 485 |
[propget] HRESULT ConnectionDuration([out, retval] Windows.Foundation.TimeSpan *duration); |
| 486 |
} |
| 487 |
|
| 488 |
[ |
| 489 |
contract(Windows.Networking.Connectivity.WwanContract, 1.0), |
| 490 |
exclusiveto(Windows.Networking.Connectivity.WwanConnectionProfileDetails), |
| 491 |
uuid(0e4da8fe-835f-4df3-82fd-df556ebc09ef), |
| 492 |
] |
| 493 |
interface IWwanConnectionProfileDetails : IInspectable |
| 494 |
{ |
| 495 |
[propget] HRESULT HomeProviderId([out, retval] HSTRING *value); |
| 496 |
[propget] HRESULT AccessPointName([out, retval] HSTRING *value); |
| 497 |
HRESULT GetNetworkRegistrationState([out, retval] Windows.Networking.Connectivity.WwanNetworkRegistrationState *value); |
| 498 |
HRESULT GetCurrentDataClass([out, retval] Windows.Networking.Connectivity.WwanDataClass *value); |
| 499 |
} |
| 500 |
|
| 501 |
[ |
| 502 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 503 |
exclusiveto(Windows.Networking.Connectivity.WlanConnectionProfileDetails), |
| 504 |
uuid(562098cb-b35a-4bf1-a884-b7557e88ff86), |
| 505 |
] |
| 506 |
interface IWlanConnectionProfileDetails : IInspectable |
| 507 |
{ |
| 508 |
HRESULT GetConnectedSsid([out] [retval] HSTRING *value); |
| 509 |
} |
| 510 |
|
| 511 |
[ |
| 512 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 513 |
marshaling_behavior(agile), |
| 514 |
] |
| 515 |
runtimeclass ConnectionCost |
| 516 |
{ |
| 517 |
[default] interface Windows.Networking.Connectivity.IConnectionCost; |
| 518 |
/* [contract(Windows.Foundation.UniversalApiContract, 1.0)] interface Windows.Networking.Connectivity.IConnectionCost2; */ |
| 519 |
} |
| 520 |
|
| 521 |
[ |
| 522 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 523 |
marshaling_behavior(agile), |
| 524 |
] |
| 525 |
runtimeclass ConnectionProfile |
| 526 |
{ |
| 527 |
[default] interface Windows.Networking.Connectivity.IConnectionProfile; |
| 528 |
[contract(Windows.Foundation.UniversalApiContract, 1.0)] interface Windows.Networking.Connectivity.IConnectionProfile2; |
| 529 |
/* [contract(Windows.Foundation.UniversalApiContract, 1.0)] interface Windows.Networking.Connectivity.IConnectionProfile3; */ |
| 530 |
/* [contract(Windows.Foundation.UniversalApiContract, 5.0)] interface Windows.Networking.Connectivity.IConnectionProfile4; */ |
| 531 |
/* [contract(Windows.Foundation.UniversalApiContract, 7.0)] interface Windows.Networking.Connectivity.IConnectionProfile5; */ |
| 532 |
} |
| 533 |
|
| 534 |
[ |
| 535 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 536 |
marshaling_behavior(agile), |
| 537 |
] |
| 538 |
runtimeclass DataPlanStatus |
| 539 |
{ |
| 540 |
[default] interface Windows.Networking.Connectivity.IDataPlanStatus; |
| 541 |
} |
| 542 |
|
| 543 |
[ |
| 544 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 545 |
marshaling_behavior(agile), |
| 546 |
] |
| 547 |
runtimeclass DataPlanUsage |
| 548 |
{ |
| 549 |
[default] interface Windows.Networking.Connectivity.IDataPlanUsage; |
| 550 |
} |
| 551 |
|
| 552 |
[ |
| 553 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 554 |
marshaling_behavior(agile), |
| 555 |
] |
| 556 |
runtimeclass DataUsage |
| 557 |
{ |
| 558 |
[default] interface Windows.Networking.Connectivity.IDataUsage; |
| 559 |
} |
| 560 |
|
| 561 |
[ |
| 562 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 563 |
marshaling_behavior(agile), |
| 564 |
] |
| 565 |
runtimeclass IPInformation |
| 566 |
{ |
| 567 |
[default] interface Windows.Networking.Connectivity.IIPInformation; |
| 568 |
} |
| 569 |
|
| 570 |
[ |
| 571 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 572 |
marshaling_behavior(agile), |
| 573 |
] |
| 574 |
runtimeclass LanIdentifier |
| 575 |
{ |
| 576 |
[default] interface Windows.Networking.Connectivity.ILanIdentifier; |
| 577 |
} |
| 578 |
|
| 579 |
[ |
| 580 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 581 |
marshaling_behavior(agile), |
| 582 |
] |
| 583 |
runtimeclass LanIdentifierData |
| 584 |
{ |
| 585 |
[default] interface Windows.Networking.Connectivity.ILanIdentifierData; |
| 586 |
} |
| 587 |
|
| 588 |
[ |
| 589 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 590 |
marshaling_behavior(agile), |
| 591 |
] |
| 592 |
runtimeclass NetworkAdapter |
| 593 |
{ |
| 594 |
[default] interface Windows.Networking.Connectivity.INetworkAdapter; |
| 595 |
} |
| 596 |
|
| 597 |
[ |
| 598 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 599 |
marshaling_behavior(agile), |
| 600 |
static(Windows.Networking.Connectivity.INetworkInformationStatics, Windows.Foundation.UniversalApiContract, 1.0), |
| 601 |
] |
| 602 |
runtimeclass NetworkInformation |
| 603 |
{ |
| 604 |
} |
| 605 |
|
| 606 |
[ |
| 607 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 608 |
marshaling_behavior(agile), |
| 609 |
] |
| 610 |
runtimeclass NetworkItem |
| 611 |
{ |
| 612 |
[default] interface Windows.Networking.Connectivity.INetworkItem; |
| 613 |
} |
| 614 |
|
| 615 |
[ |
| 616 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 617 |
marshaling_behavior(agile), |
| 618 |
] |
| 619 |
runtimeclass NetworkSecuritySettings |
| 620 |
{ |
| 621 |
[default] interface Windows.Networking.Connectivity.INetworkSecuritySettings; |
| 622 |
} |
| 623 |
|
| 624 |
[ |
| 625 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 626 |
marshaling_behavior(agile), |
| 627 |
] |
| 628 |
runtimeclass ProxyConfiguration |
| 629 |
{ |
| 630 |
[default] interface Windows.Networking.Connectivity.IProxyConfiguration; |
| 631 |
} |
| 632 |
|
| 633 |
[ |
| 634 |
contract(Windows.Networking.Connectivity.WwanContract, 1.0), |
| 635 |
marshaling_behavior(agile), |
| 636 |
] |
| 637 |
runtimeclass WwanConnectionProfileDetails |
| 638 |
{ |
| 639 |
[default] interface Windows.Networking.Connectivity.IWwanConnectionProfileDetails; |
| 640 |
/* [contract(Windows.Networking.Connectivity.WwanContract, 2.0)] interface Windows.Networking.Connectivity.IWwanConnectionProfileDetails2; */ |
| 641 |
} |
| 642 |
|
| 643 |
[ |
| 644 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 645 |
marshaling_behavior(agile), |
| 646 |
] |
| 647 |
runtimeclass WlanConnectionProfileDetails |
| 648 |
{ |
| 649 |
[default] interface Windows.Networking.Connectivity.IWlanConnectionProfileDetails; |
| 650 |
} |
| 651 |
|
| 652 |
[ |
| 653 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 654 |
marshaling_behavior(agile), |
| 655 |
] |
| 656 |
runtimeclass NetworkUsage |
| 657 |
{ |
| 658 |
[default] interface Windows.Networking.Connectivity.INetworkUsage; |
| 659 |
} |
| 660 |
|
| 661 |
[ |
| 662 |
contract(Windows.Foundation.UniversalApiContract, 1.0), |
| 663 |
marshaling_behavior(agile), |
| 664 |
] |
| 665 |
runtimeclass ConnectivityInterval |
| 666 |
{ |
| 667 |
[default] interface Windows.Networking.Connectivity.IConnectivityInterval; |
| 668 |
} |
| 669 |
} |