//Copyright (c) Microsoft Corporation. All rights reserved. using System; using System.Collections; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace Microsoft.WindowsAPICodePack.Net { [ComImport] [Guid("DCB00000-570F-4A9B-8D69-199FDBA5723B")] [TypeLibType((short)0x1040)] internal interface INetworkListManager { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] IEnumerable GetNetworks([In] NetworkConnectivityLevels Flags); [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] INetwork GetNetwork([In] Guid gdNetworkId); [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] IEnumerable GetNetworkConnections(); [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] INetworkConnection GetNetworkConnection([In] Guid gdNetworkConnectionId); bool IsConnectedToInternet { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] get; } bool IsConnected { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] get; } [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] Connectivity GetConnectivity(); } }
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)