30 references to UnsafePnrpNativeMethods
System.ServiceModel (30)
System\ServiceModel\Channels\PnrpPeerResolver.cs (30)
31
UnsafePnrpNativeMethods
.PeerNameRegistrar registrar = new
UnsafePnrpNativeMethods
.PeerNameRegistrar();
34
const
UnsafePnrpNativeMethods
.PnrpResolveCriteria resolutionScope =
UnsafePnrpNativeMethods
.PnrpResolveCriteria.NearestNonCurrentProcess;
69
using (
UnsafePnrpNativeMethods
.DiscoveryBase db = new
UnsafePnrpNativeMethods
.DiscoveryBase())
139
UnsafePnrpNativeMethods
.CloudInfo[] cloudInfos =
UnsafePnrpNativeMethods
.PeerCloudEnumerator.GetClouds();
146
foreach (
UnsafePnrpNativeMethods
.CloudInfo cloud in cloudInfos)
148
if (cloud.State ==
UnsafePnrpNativeMethods
.PnrpCloudState.Active)
150
if (cloud.Scope ==
UnsafePnrpNativeMethods
.PnrpScope.Global)
155
else if (cloud.Scope ==
UnsafePnrpNativeMethods
.PnrpScope.LinkLocal)
162
else if (cloud.Scope ==
UnsafePnrpNativeMethods
.PnrpScope.SiteLocal)
175
foreach (
UnsafePnrpNativeMethods
.CloudInfo cloud in cloudInfos)
177
if (!((cloud.State ==
UnsafePnrpNativeMethods
.PnrpCloudState.Dead)
178
|| (cloud.State ==
UnsafePnrpNativeMethods
.PnrpCloudState.Disabled)
179
|| (cloud.State ==
UnsafePnrpNativeMethods
.PnrpCloudState.NoNet))
182
if (cloud.Scope ==
UnsafePnrpNativeMethods
.PnrpScope.Global)
187
if (cloud.Scope ==
UnsafePnrpNativeMethods
.PnrpScope.LinkLocal)
193
else if (cloud.Scope ==
UnsafePnrpNativeMethods
.PnrpScope.SiteLocal)
628
UnsafePnrpNativeMethods
.PeerNameResolver resolver;
629
List<
UnsafePnrpNativeMethods
.PeerNameResolver> resolvers = new List<
UnsafePnrpNativeMethods
.PeerNameResolver>();
636
UnsafePnrpNativeMethods
.PnrpResolveCriteria targetScope = resolutionScope;
640
targetScope =
UnsafePnrpNativeMethods
.PnrpResolveCriteria.Any;
650
resolver = new
UnsafePnrpNativeMethods
.PeerNameResolver(
660
resolver = new
UnsafePnrpNativeMethods
.PeerNameResolver(
671
resolver = new
UnsafePnrpNativeMethods
.PeerNameResolver(
692
foreach (
UnsafePnrpNativeMethods
.PeerNameResolver handle in resolvers)
1603
int ret = WSAStartup(
UnsafePnrpNativeMethods
.RequiredWinsockVersion, ref WinsockVersion);