19 references to UnsafeNativeMethods
System.ServiceModel.NetNamedPipe (19)
System\ServiceModel\Channels\AppContainerInfo.cs (14)
10
using static System.ServiceModel.Channels.
UnsafeNativeMethods
;
88
return
UnsafeNativeMethods
.RunningInAppContainer(tokenHandle);
107
uint packageFamilyNameLength =
UnsafeNativeMethods
.MAX_PATH;
108
StringBuilder packageFamilyNameBuilder = new StringBuilder((int)
UnsafeNativeMethods
.MAX_PATH);
110
int errorCode =
UnsafeNativeMethods
.PackageFamilyNameFromFullName(name, ref packageFamilyNameLength, packageFamilyNameBuilder);
111
if (errorCode !=
UnsafeNativeMethods
.ERROR_SUCCESS)
121
int hresult =
UnsafeNativeMethods
.DeriveAppContainerSidFromAppContainerName(
130
StringBuilder namedObjectPath = new StringBuilder((int)
UnsafeNativeMethods
.MAX_PATH);
132
if (!
UnsafeNativeMethods
.GetAppContainerNamedObjectPath(
135
UnsafeNativeMethods
.MAX_PATH,
149
UnsafeNativeMethods
.FreeSid(appContainerSid);
160
return
UnsafeNativeMethods
.GetSessionId(tokenHandle);
178
if (!
UnsafeNativeMethods
.OpenProcessToken(
179
UnsafeNativeMethods
.GetCurrentProcess(),
System\ServiceModel\Channels\PipeConnection.cs (2)
411
return error ==
UnsafeNativeMethods
.ERROR_NO_DATA ||
412
error ==
UnsafeNativeMethods
.ERROR_BROKEN_PIPE;
System\ServiceModel\Channels\PipeConnectionInitiator.cs (3)
204
if (error ==
UnsafeNativeMethods
.ERROR_FILE_NOT_FOUND || error ==
UnsafeNativeMethods
.ERROR_PIPE_BUSY)
214
if (error ==
UnsafeNativeMethods
.ERROR_PIPE_BUSY)