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
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
)]
37 [MethodImpl(MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
41 [MethodImpl(MethodImplOptions
.InternalCall
, MethodCodeType
= MethodCodeType
.Runtime
)]
42 Connectivity
GetConnectivity();