added SSCLI 1.0
[windows-sources.git] / sdk / samples / CrossTechnologySamples / VistaBridge / vistabridgelibrary / interop / inetworkconnection.cs
blob25c94f6ad1fc6457fa6ce53be0db845807e92237
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;
7 namespace Microsoft.SDK.Samples.VistaBridge.Interop
9 [ComImport]
10 [TypeLibType((short)0x1040)]
11 [Guid("DCB00005-570F-4A9B-8D69-199FDBA5723B")]
12 internal interface INetworkConnection
14 [return: MarshalAs(UnmanagedType.Interface)]
15 [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
16 INetwork GetNetwork();
18 bool IsConnectedToInternet
20 [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
21 get;
24 bool IsConnected
26 [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
27 get;
30 [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
31 Connectivity GetConnectivity();
33 [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
34 Guid GetConnectionId();
36 [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
37 Guid GetAdapterId();
39 [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
40 DomainType GetDomainType();