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
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
)]
26 [MethodImpl(MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
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
)]
39 [MethodImpl(MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
40 DomainType
GetDomainType();