added samples
[windows-sources.git] / sdk / samples / CrossTechnologySamples / VistaBridge / vistabridgelibrary / interop / inetworklistmanager.cs
blob9797cb00b67da92be5be76f8f83a47d4a041148e
1 using System;
2 using System.Collections;
3 using System.Runtime.CompilerServices;
4 using System.Runtime.InteropServices;
5 using Microsoft.SDK.Samples.VistaBridge.Library.Network;
6 namespace Microsoft.SDK.Samples.VistaBridge.Interop
8 [ComImport]
9 [Guid("DCB00000-570F-4A9B-8D69-199FDBA5723B")]
10 [TypeLibType((short)0x1040)]
11 internal interface INetworkListManager
13 [return: MarshalAs(UnmanagedType.Interface)]
14 [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
15 IEnumerable GetNetworks([In] NetworkConnectivityLevels Flags);
17 [return: MarshalAs(UnmanagedType.Interface)]
18 [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
19 INetwork GetNetwork([In] Guid gdNetworkId);
21 [return: MarshalAs(UnmanagedType.Interface)]
22 [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
23 IEnumerable GetNetworkConnections();
25 [return: MarshalAs(UnmanagedType.Interface)]
26 [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
27 INetworkConnection GetNetworkConnection([In] Guid gdNetworkConnectionId);
29 bool IsConnectedToInternet
31 [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
32 get;
35 bool IsConnected
37 [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
38 get;
41 [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
42 Connectivity GetConnectivity();