455 references to UnsafeNativeMethods
System.ServiceModel (455)
System\ServiceModel\Activation\SharedMemory.cs (14)
32int errorCode = UnsafeNativeMethods.ERROR_SUCCESS; 33byte[] binarySecurityDescriptor = SecurityDescriptorHelper.FromSecurityIdentifiers(allowedSids, UnsafeNativeMethods.GENERIC_READ); 35UnsafeNativeMethods.SECURITY_ATTRIBUTES securityAttributes = new UnsafeNativeMethods.SECURITY_ATTRIBUTES(); 39fileMapping = UnsafeNativeMethods.CreateFileMapping((IntPtr)(-1), securityAttributes, UnsafeNativeMethods.PAGE_READWRITE, 0, sizeof(SharedMemoryContents), name); 81handle = UnsafeNativeMethods.MapViewOfFile(fileMapping, writable ? UnsafeNativeMethods.FILE_MAP_WRITE : UnsafeNativeMethods.FILE_MAP_READ, 0, 0, (IntPtr)sizeof(SharedMemoryContents)); 93if (!writable && errorCode == UnsafeNativeMethods.ERROR_FILE_NOT_FOUND) 111throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new Win32Exception(UnsafeNativeMethods.ERROR_FILE_NOT_FOUND)); 120SafeFileMappingHandle fileMapping = UnsafeNativeMethods.OpenFileMapping(UnsafeNativeMethods.FILE_MAP_READ, false, ListenerConstants.GlobalPrefix + name); 126if (errorCode == UnsafeNativeMethods.ERROR_FILE_NOT_FOUND)
System\ServiceModel\Activation\Utility.cs (2)
220if (!success || error != UnsafeNativeMethods.ERROR_SUCCESS) 305int error = UnsafeNativeMethods.ERROR_SUCCESS;
System\ServiceModel\Channels\AppContainerInfo.cs (14)
122currentAppContainerSid = UnsafeNativeMethods.GetAppContainerSid(tokenHandle); 147return UnsafeNativeMethods.RunningInAppContainer(tokenHandle); 171uint packageFamilyNameLength = UnsafeNativeMethods.MAX_PATH; 172StringBuilder packageFamilyNameBuilder = new StringBuilder((int)UnsafeNativeMethods.MAX_PATH); 174int errorCode = UnsafeNativeMethods.PackageFamilyNameFromFullName(name, ref packageFamilyNameLength, packageFamilyNameBuilder); 175if (errorCode != UnsafeNativeMethods.ERROR_SUCCESS) 185int hresult = UnsafeNativeMethods.DeriveAppContainerSidFromAppContainerName( 195StringBuilder namedObjectPath = new StringBuilder((int)UnsafeNativeMethods.MAX_PATH); 197if (!UnsafeNativeMethods.GetAppContainerNamedObjectPath( 200UnsafeNativeMethods.MAX_PATH, 214UnsafeNativeMethods.FreeSid(appContainerSid); 230return UnsafeNativeMethods.GetSessionId(tokenHandle); 250if (!UnsafeNativeMethods.OpenProcessToken( 251UnsafeNativeMethods.GetCurrentProcess(),
System\ServiceModel\Channels\DnsCache.cs (1)
53machineName = UnsafeNativeMethods.GetComputerName(ComputerNameFormat.PhysicalNetBIOS);
System\ServiceModel\Channels\HttpChannelHelpers.cs (6)
3209case UnsafeNativeMethods.ERROR_NO_TRACKING_SERVICE: 3212case UnsafeNativeMethods.ERROR_NETNAME_DELETED: 3215case UnsafeNativeMethods.ERROR_INVALID_HANDLE: 3218case UnsafeNativeMethods.ERROR_NOT_ENOUGH_MEMORY: 3219case UnsafeNativeMethods.ERROR_OUTOFMEMORY: 3220case UnsafeNativeMethods.ERROR_NO_SYSTEM_RESOURCES:
System\ServiceModel\Channels\Msmq.cs (6)
93return new MsmqDefaultLockingQueue(receiver.MsmqReceiveParameters.AddressTranslator.UriToFormatName(receiver.ListenUri), UnsafeNativeMethods.MQ_RECEIVE_ACCESS); 97return new MsmqSubqueueLockingQueue(receiver.MsmqReceiveParameters.AddressTranslator.UriToFormatName(receiver.ListenUri), receiver.ListenUri.Host, UnsafeNativeMethods.MQ_RECEIVE_ACCESS); 102return new MsmqQueue(receiver.MsmqReceiveParameters.AddressTranslator.UriToFormatName(receiver.ListenUri), UnsafeNativeMethods.MQ_RECEIVE_ACCESS); 117errorStrings = UnsafeNativeMethods.LoadLibraryEx("MQUTIL.DLL", IntPtr.Zero, UnsafeNativeMethods.LOAD_LIBRARY_AS_DATAFILE | UnsafeNativeMethods.LOAD_LIBRARY_SEARCH_SYSTEM32);
System\ServiceModel\Channels\Msmq4PoisonHandler.cs (6)
61this.mainQueueForMove = new MsmqQueue(this.mainQueueName, UnsafeNativeMethods.MQ_MOVE_ACCESS); 63this.poisonQueue = new MsmqQueue(this.poisonQueueName, UnsafeNativeMethods.MQ_MOVE_ACCESS); 64this.retryQueueForMove = new MsmqQueue(this.retryQueueName, UnsafeNativeMethods.MQ_MOVE_ACCESS); 65this.retryQueueForPeek = new MsmqQueue(this.retryQueueName, UnsafeNativeMethods.MQ_RECEIVE_ACCESS); 333this.lookupId = new LongProperty(this, UnsafeNativeMethods.PROPID_M_LOOKUPID); 334this.lastMoveTime = new IntProperty(this, UnsafeNativeMethods.PROPID_M_LAST_MOVE_TIME);
System\ServiceModel\Channels\MsmqDefaultLockingQueue.cs (11)
54else if (error == UnsafeNativeMethods.MQ_ERROR_IO_TIMEOUT) 58else if (error == UnsafeNativeMethods.MQ_ERROR_OPERATION_CANCELLED) 62else if (error == UnsafeNativeMethods.MQ_ERROR_INVALID_HANDLE) 91retCode = UnsafeNativeMethods.MQBeginTransaction(out internalTrans); 107retCode = UnsafeNativeMethods.MQReceiveMessage(handle.DangerousGetHandle(), timeoutIntervalInMilliseconds, 108UnsafeNativeMethods.MQ_ACTION_RECEIVE, nativePropertiesPointer, null, IntPtr.Zero, IntPtr.Zero, internalTrans); 109if (retCode == UnsafeNativeMethods.MQ_ERROR_IO_TIMEOUT) 234MsmqTransactionMode.CurrentOrThrow, UnsafeNativeMethods.MQ_LOOKUP_RECEIVE_CURRENT); 384retCode = UnsafeNativeMethods.MQBeginTransaction(out internalTrans); 390retCode = UnsafeNativeMethods.MQReceiveMessageByLookupId(handle, lookupId, UnsafeNativeMethods.MQ_LOOKUP_RECEIVE_CURRENT,
System\ServiceModel\Channels\MsmqDiagnostics.cs (1)
246if (UnsafeNativeMethods.PROPID_M_MSGID_SIZE != messageId.Buffer.Length)
System\ServiceModel\Channels\MsmqInputMessage.cs (13)
46this.body = new BufferProperty(this, UnsafeNativeMethods.PROPID_M_BODY, 48this.bodyLength = new IntProperty(this, UnsafeNativeMethods.PROPID_M_BODY_SIZE); 49this.messageId = new BufferProperty(this, UnsafeNativeMethods.PROPID_M_MSGID, 50UnsafeNativeMethods.PROPID_M_MSGID_SIZE); 51this.lookupId = new LongProperty(this, UnsafeNativeMethods.PROPID_M_LOOKUPID); 52this.cls = new ShortProperty(this, UnsafeNativeMethods.PROPID_M_CLASS); 53this.senderId = new BufferProperty(this, UnsafeNativeMethods.PROPID_M_SENDERID, initialSenderIdSize); 54this.senderIdLength = new IntProperty(this, UnsafeNativeMethods.PROPID_M_SENDERID_LEN); 55this.senderCertificate = new BufferProperty(this, UnsafeNativeMethods.PROPID_M_SENDER_CERT, 57this.senderCertificateLength = new IntProperty(this, UnsafeNativeMethods.PROPID_M_SENDER_CERT_LEN); 60this.lastMovedTime = new IntProperty(this, UnsafeNativeMethods.PROPID_M_LAST_MOVE_TIME); 61this.abortCount = new IntProperty(this, UnsafeNativeMethods.PROPID_M_ABORT_COUNT); 62this.moveCount = new IntProperty(this, UnsafeNativeMethods.PROPID_M_MOVE_COUNT);
System\ServiceModel\Channels\MsmqOutputChannel.cs (1)
97UnsafeNativeMethods.MQ_SEND_ACCESS);
System\ServiceModel\Channels\MsmqOutputMessage.cs (39)
44this.body = new BufferProperty(this, UnsafeNativeMethods.PROPID_M_BODY, bodySize); 45this.messageId = new BufferProperty(this, UnsafeNativeMethods.PROPID_M_MSGID, UnsafeNativeMethods.PROPID_M_MSGID_SIZE); 47EnsureBodyTypeProperty(UnsafeNativeMethods.VT_VECTOR | UnsafeNativeMethods.VT_UI1); 48EnsureJournalProperty((byte)UnsafeNativeMethods.MQMSG_JOURNAL, factory.UseSourceJournal); 50this.delivery = new ByteProperty(this, UnsafeNativeMethods.PROPID_M_DELIVERY); 53this.delivery.Value = (byte)UnsafeNativeMethods.MQMSG_DELIVERY_RECOVERABLE; 57this.delivery.Value = (byte)UnsafeNativeMethods.MQMSG_DELIVERY_EXPRESS; 67UnsafeNativeMethods.PROPID_M_TIME_TO_BE_RECEIVED, totalSeconds); 73EnsureJournalProperty((byte)UnsafeNativeMethods.MQMSG_DEADLETTER, false); 76EnsureJournalProperty((byte)UnsafeNativeMethods.MQMSG_DEADLETTER, true); 79EnsureJournalProperty((byte)UnsafeNativeMethods.MQMSG_DEADLETTER, true); 86EnsureSenderIdTypeProperty(UnsafeNativeMethods.MQMSG_SENDERID_TYPE_SID); 88this.authLevel = new IntProperty(this, UnsafeNativeMethods.PROPID_M_AUTH_LEVEL, 89UnsafeNativeMethods.MQMSG_AUTH_LEVEL_ALWAYS); 93UnsafeNativeMethods.PROPID_M_HASH_ALG, 98this.privLevel = new IntProperty(this, UnsafeNativeMethods.PROPID_M_PRIV_LEVEL, 99UnsafeNativeMethods.MQMSG_PRIV_LEVEL_BODY_ENHANCED); 103UnsafeNativeMethods.PROPID_M_ENCRYPTION_ALG, 109this.authLevel = new IntProperty(this, UnsafeNativeMethods.PROPID_M_AUTH_LEVEL, 110UnsafeNativeMethods.MQMSG_AUTH_LEVEL_ALWAYS); 114UnsafeNativeMethods.PROPID_M_HASH_ALG, 119this.privLevel = new IntProperty(this, UnsafeNativeMethods.PROPID_M_PRIV_LEVEL, 120UnsafeNativeMethods.MQMSG_PRIV_LEVEL_BODY_ENHANCED); 124UnsafeNativeMethods.PROPID_M_ENCRYPTION_ALG, 128EnsureSenderIdTypeProperty(UnsafeNativeMethods.MQMSG_SENDERID_TYPE_NONE); 129this.senderCert = new BufferProperty(this, UnsafeNativeMethods.PROPID_M_SENDER_CERT); 133this.authLevel = new IntProperty(this, UnsafeNativeMethods.PROPID_M_AUTH_LEVEL, 134UnsafeNativeMethods.MQMSG_AUTH_LEVEL_NONE); 136EnsureSenderIdTypeProperty(UnsafeNativeMethods.MQMSG_SENDERID_TYPE_NONE); 139this.trace = new ByteProperty(this, UnsafeNativeMethods.PROPID_M_TRACE, (byte)(factory.UseMsmqTracing ? 140UnsafeNativeMethods.MQMSG_SEND_ROUTE_TO_REPORT_QUEUE : UnsafeNativeMethods.MQMSG_TRACE_NONE)); 172this.bodyType = new IntProperty(this, UnsafeNativeMethods.PROPID_M_BODY_TYPE); 183this.deadLetterQueue = new StringProperty(this, UnsafeNativeMethods.PROPID_M_DEADLETTER_QUEUE, value); 196this.senderIdType = new IntProperty(this, UnsafeNativeMethods.PROPID_M_SENDERID_TYPE); 206UnsafeNativeMethods.PROPID_M_TIME_TO_REACH_QUEUE); 216this.journal = new ByteProperty(this, UnsafeNativeMethods.PROPID_M_JOURNAL);
System\ServiceModel\Channels\MsmqOutputSessionChannel.cs (1)
165UnsafeNativeMethods.MQ_SEND_ACCESS);
System\ServiceModel\Channels\MsmqQueue.cs (69)
40this.shareMode = UnsafeNativeMethods.MQ_DENY_NONE; 117return UnsafeNativeMethods.GetHandleInformation(handle, out flags) != 0; 124int error = UnsafeNativeMethods.MQOpenQueue(this.formatName, this.accessMode, 172int error = UnsafeNativeMethods.MQGetPrivateComputerInformation(null, 195return SupportsAccessMode(formatName, UnsafeNativeMethods.MQ_RECEIVE_ACCESS, out ex); 201return SupportsAccessMode(formatName, UnsafeNativeMethods.MQ_SEND_ACCESS, out ex); 207return SupportsAccessMode(formatName, UnsafeNativeMethods.MQ_MOVE_ACCESS, out ex); 213error = UnsafeNativeMethods.MQOpenQueue(formatName, accessMode, 255if (UnsafeNativeMethods.MQGetQueueProperties(formatName, 258isTransactional = properties.Transaction.Value != UnsafeNativeMethods.MQ_TRANSACTIONAL_NONE; 279case UnsafeNativeMethods.MQ_ERROR_STALE_HANDLE: 280case UnsafeNativeMethods.MQ_ERROR_INVALID_HANDLE: 281case UnsafeNativeMethods.MQ_ERROR_INVALID_PARAMETER: 282case UnsafeNativeMethods.MQ_ERROR_QUEUE_DELETED: 293case UnsafeNativeMethods.MQ_ERROR_BUFFER_OVERFLOW: 294case UnsafeNativeMethods.MQ_INFORMATION_FORMATNAME_BUFFER_TOO_SMALL: 295case UnsafeNativeMethods.MQ_ERROR_FORMATNAME_BUFFER_TOO_SMALL: 296case UnsafeNativeMethods.MQ_ERROR_SENDERID_BUFFER_TOO_SMALL: 297case UnsafeNativeMethods.MQ_ERROR_SECURITY_DESCRIPTOR_TOO_SMALL: 298case UnsafeNativeMethods.MQ_ERROR_USER_BUFFER_TOO_SMALL: 299case UnsafeNativeMethods.MQ_ERROR_SENDER_CERT_BUFFER_TOO_SMALL: 300case UnsafeNativeMethods.MQ_ERROR_RESULT_BUFFER_TOO_SMALL: 301case UnsafeNativeMethods.MQ_ERROR_LABEL_BUFFER_TOO_SMALL: 302case UnsafeNativeMethods.MQ_ERROR_SYMM_KEY_BUFFER_TOO_SMALL: 303case UnsafeNativeMethods.MQ_ERROR_SIGNATURE_BUFFER_TOO_SMALL: 304case UnsafeNativeMethods.MQ_ERROR_PROV_NAME_BUFFER_TOO_SMALL: 317error = UnsafeNativeMethods.MQMarkMessageRejected(handle, lookupId); 341return UnsafeNativeMethods.MQMoveMessage(sourceQueueHandle, destinationQueueHandle, 351return UnsafeNativeMethods.MQMoveMessage(sourceQueueHandle, destinationQueueHandle, 369error = UnsafeNativeMethods.MQMoveMessage(sourceQueueHandle, destinationQueueHandle, 380if (error == UnsafeNativeMethods.MQ_ERROR_MESSAGE_NOT_FOUND) 382else if (error == UnsafeNativeMethods.MQ_ERROR_MESSAGE_LOCKED_UNDER_TRANSACTION) 400return TryReceiveInternal(message, timeout, transactionMode, UnsafeNativeMethods.MQ_ACTION_RECEIVE); 420else if (error == UnsafeNativeMethods.MQ_ERROR_IO_TIMEOUT) 424else if (error == UnsafeNativeMethods.MQ_ERROR_OPERATION_CANCELLED) 428else if (error == UnsafeNativeMethods.MQ_ERROR_INVALID_HANDLE) 444return this.TryReceiveByLookupId(lookupId, message, transactionMode, UnsafeNativeMethods.MQ_LOOKUP_RECEIVE_CURRENT); 475else if (UnsafeNativeMethods.MQ_ERROR_MESSAGE_NOT_FOUND == error) 479else if (UnsafeNativeMethods.MQ_ERROR_MESSAGE_LOCKED_UNDER_TRANSACTION == error) 504return UnsafeNativeMethods.MQReceiveMessageByLookupId(handle, lookupId, action, nativePropertiesPointer, null, IntPtr.Zero, dtcTransaction); 513return UnsafeNativeMethods.MQReceiveMessageByLookupId(handle, lookupId, action, nativePropertiesPointer, null, IntPtr.Zero, (IntPtr)GetTransactionConstant(transactionMode)); 535return UnsafeNativeMethods.MQReceiveMessageByLookupId(handle, lookupId, action, nativePropertiesPointer, null, IntPtr.Zero, (IntPtr)GetTransactionConstant(transactionMode)); 557return UnsafeNativeMethods.MQReceiveMessage(handle.DangerousGetHandle(), timeoutInMilliseconds, 567return UnsafeNativeMethods.MQReceiveMessage(handle.DangerousGetHandle(), timeoutInMilliseconds, 590return UnsafeNativeMethods.MQReceiveMessage(handle.DangerousGetHandle(), timeoutInMilliseconds, 617UnsafeNativeMethods.MQ_ACTION_PEEK_CURRENT); 642return UnsafeNativeMethods.MQ_NO_TRANSACTION; 645return UnsafeNativeMethods.MQ_SINGLE_MESSAGE; 663return UnsafeNativeMethods.MQSendMessage(handle, nativePropertiesPointer, 673return UnsafeNativeMethods.MQSendMessage(handle, nativePropertiesPointer, 696error = UnsafeNativeMethods.MQSendMessage(handle, nativePropertiesPointer, 718UnsafeNativeMethods.MQReceiveCallback receiveCallback) 722return UnsafeNativeMethods.MQReceiveMessage(handle, timeoutInMilliseconds, action, 724IntPtr.Zero, (IntPtr)UnsafeNativeMethods.MQ_NO_TRANSACTION); 731UnsafeNativeMethods.MQ_ACTION_RECEIVE, callback, state); 743UnsafeNativeMethods.MQ_ACTION_PEEK_CURRENT, callback, state); 761unsafe static UnsafeNativeMethods.MQReceiveCallback onNonPortedCompletion; 819onNonPortedCompletion = new UnsafeNativeMethods.MQReceiveCallback(OnNonPortedCompletion); 830error = UnsafeNativeMethods.MQ_ERROR_OPERATION_CANCELLED; 834if (error != UnsafeNativeMethods.MQ_INFORMATION_OPERATION_PENDING) 858error = (uint)UnsafeNativeMethods.MQGetOverlappedResult(nativeOverlapped); 877if (error == UnsafeNativeMethods.MQ_ERROR_IO_TIMEOUT) 881else if (error == UnsafeNativeMethods.MQ_ERROR_OPERATION_CANCELLED) 927this.transaction = new ByteProperty(this, UnsafeNativeMethods.PROPID_Q_TRANSACTION); 944this.version = new IntProperty(this, UnsafeNativeMethods.PROPID_PC_VERSION); 945this.activeDirectory = new BooleanProperty(this, UnsafeNativeMethods.PROPID_PC_DS_ENABLED); 990int error = UnsafeNativeMethods.MQPathNameToFormatName(queuePath, buffer, ref len); 991if (UnsafeNativeMethods.MQ_ERROR_FORMATNAME_BUFFER_TOO_SMALL == error) 994error = UnsafeNativeMethods.MQPathNameToFormatName(queuePath, buffer, ref len);
System\ServiceModel\Channels\MsmqReceiveHelper.cs (1)
128this.msmqRuntimeNativeLibrary = Environment.SystemDirectory + "\\" + UnsafeNativeMethods.MQRT;
System\ServiceModel\Channels\MsmqSubqueueLockingQueue.cs (27)
47this.lockQueueForReceive = new MsmqQueue(this.lockQueueName, UnsafeNativeMethods.MQ_RECEIVE_ACCESS, UnsafeNativeMethods.MQ_DENY_RECEIVE_SHARE); 48this.lockQueueForMove = new MsmqQueue(this.lockQueueName, UnsafeNativeMethods.MQ_MOVE_ACCESS); 49this.mainQueueForMove = new MsmqQueue(this.formatName, UnsafeNativeMethods.MQ_MOVE_ACCESS); 81MsmqError.GetErrorString(UnsafeNativeMethods.MQ_ERROR_UNSUPPORTED_FORMATNAME_OPERATION)), 82UnsafeNativeMethods.MQ_ERROR_UNSUPPORTED_FORMATNAME_OPERATION)); 118this.lockQueueForReceive = new MsmqQueue(this.lockQueueName, UnsafeNativeMethods.MQ_RECEIVE_ACCESS, UnsafeNativeMethods.MQ_DENY_RECEIVE_SHARE); 119this.lockQueueForMove = new MsmqQueue(this.lockQueueName, UnsafeNativeMethods.MQ_MOVE_ACCESS); 167lookupIdReceiveResult = this.lockQueueForReceive.TryReceiveByLookupId(lookupId, message, MsmqTransactionMode.None, UnsafeNativeMethods.MQ_LOOKUP_PEEK_CURRENT); 292int accessMode = UnsafeNativeMethods.MQ_RECEIVE_ACCESS; 293int shareMode = UnsafeNativeMethods.MQ_DENY_RECEIVE_SHARE; 307if (error == UnsafeNativeMethods.MQ_ERROR_SHARING_VIOLATION || 308error == UnsafeNativeMethods.MQ_ERROR_QUEUE_NOT_FOUND) 358UnsafeNativeMethods.MQMSGPROPS props = new UnsafeNativeMethods.MQMSGPROPS(); 359UnsafeNativeMethods.MQPROPVARIANT prop = new UnsafeNativeMethods.MQPROPVARIANT(); 360UnsafeNativeMethods.MQPROPVARIANT retProp; 368ids[0] = UnsafeNativeMethods.PROPID_MGMT_QUEUE_SUBQUEUE_NAMES; 369prop.vt = UnsafeNativeMethods.VT_NULL; 381if (UnsafeNativeMethods.MQMgmtGetInfo(this.hostname, "queue=" + this.formatName, propsHandle.AddrOfPinnedObject()) == 0) 383retProp = (UnsafeNativeMethods.MQPROPVARIANT)Marshal.PtrToStructure(props.variants, typeof(UnsafeNativeMethods.MQPROPVARIANT)); 391UnsafeNativeMethods.MQFreeMemory(stringArrays[i]); 393UnsafeNativeMethods.MQFreeMemory(retProp.stringArraysValue.stringArrays); 418this.lookupId = new LongProperty(this, UnsafeNativeMethods.PROPID_M_LOOKUPID);
System\ServiceModel\Channels\NativeMsmqMessage.cs (15)
18UnsafeNativeMethods.MQPROPVARIANT[] variants; 19UnsafeNativeMethods.MQMSGPROPS nativeProperties; 31this.nativeProperties = new UnsafeNativeMethods.MQMSGPROPS(); 33this.variants = new UnsafeNativeMethods.MQPROPVARIANT[propertyCount]; 130UnsafeNativeMethods.MQPROPVARIANT[] variants; 169protected UnsafeNativeMethods.MQPROPVARIANT[] Variants 178: base(message, id, UnsafeNativeMethods.VT_UI1) 204: base(message, id, UnsafeNativeMethods.VT_UI2) 231: base(message, id, UnsafeNativeMethods.VT_BOOL) 257: base(message, id, UnsafeNativeMethods.VT_UI4) 283: base(message, id, UnsafeNativeMethods.VT_UI8) 312: base(message, id, UnsafeNativeMethods.VT_UI1 | UnsafeNativeMethods.VT_VECTOR) 430: base(message, id, UnsafeNativeMethods.VT_LPWSTR) 550byte[] bytes = new byte[UnsafeNativeMethods.PROPID_M_MSGID_SIZE];
System\ServiceModel\Channels\OverlappedContext.cs (1)
282if (!UnsafeNativeMethods.HasOverlappedIoCompleted(this.nativeOverlapped))
System\ServiceModel\Channels\PeerUnsafeNativeMethods.cs (1)
86int error = UnsafeNativeMethods.ERROR_SUCCESS;
System\ServiceModel\Channels\PipeConnection.cs (86)
279if (UnsafeNativeMethods.ReadFile(this.pipe.DangerousGetHandle(), this.readOverlapped.BufferPtr + offset, size, IntPtr.Zero, this.readOverlapped.NativeOverlapped) == 0) 282if (error != UnsafeNativeMethods.ERROR_IO_PENDING && error != UnsafeNativeMethods.ERROR_MORE_DATA) 373if (UnsafeNativeMethods.WriteFile(this.pipe.DangerousGetHandle(), this.writeOverlapped.BufferPtr + offset, size, IntPtr.Zero, this.writeOverlapped.NativeOverlapped) == 0) 376if (error != UnsafeNativeMethods.ERROR_IO_PENDING) 657bool success = UnsafeNativeMethods.DuplicateHandle(sourceProcessHandle, this.pipe, targetProcessHandle, out duplicatedHandle, 0, false, UnsafeNativeMethods.DUPLICATE_SAME_ACCESS); 835return error == UnsafeNativeMethods.ERROR_NO_DATA || 836error == UnsafeNativeMethods.ERROR_BROKEN_PIPE; 867if (UnsafeNativeMethods.GetOverlappedResult(this.pipe.DangerousGetHandle(), this.readOverlapped.NativeOverlapped, out numBytes, 0) == 0) 877if (error != 0 && error != UnsafeNativeMethods.ERROR_MORE_DATA) 935if (UnsafeNativeMethods.GetOverlappedResult(this.pipe.DangerousGetHandle(), this.writeOverlapped.NativeOverlapped, out numBytes, 0) == 0) 1376if (UnsafeNativeMethods.ReadFile(this.pipe.DangerousGetHandle(), this.readOverlapped.BufferPtr + offset, size, IntPtr.Zero, this.readOverlapped.NativeOverlapped) == 0) 1379if (error != UnsafeNativeMethods.ERROR_IO_PENDING) 1382if (error != UnsafeNativeMethods.ERROR_MORE_DATA) 1474if (UnsafeNativeMethods.WriteFile(this.pipe.DangerousGetHandle(), this.writeOverlapped.BufferPtr + offset, size, IntPtr.Zero, this.writeOverlapped.NativeOverlapped) == 0) 1477if (error != UnsafeNativeMethods.ERROR_IO_PENDING) 1595if (UnsafeNativeMethods.GetOverlappedResult(pipe.DangerousGetHandle(), nativeOverlapped, out bytesWritten, 0) == 0) 1611if (UnsafeNativeMethods.GetOverlappedResult(pipe.DangerousGetHandle(), nativeOverlapped, out bytesRead, 0) == 0) 1614if (error == UnsafeNativeMethods.ERROR_MORE_DATA) 1801const int access = UnsafeNativeMethods.GENERIC_READ | UnsafeNativeMethods.GENERIC_WRITE; 1804int flags = UnsafeNativeMethods.FILE_FLAG_OVERLAPPED; 1808flags |= UnsafeNativeMethods.SECURITY_QOS_PRESENT | UnsafeNativeMethods.SECURITY_ANONYMOUS; 1810PipeHandle pipeHandle = UnsafeNativeMethods.CreateFile(resolvedAddress, access, 0, IntPtr.Zero, 1811UnsafeNativeMethods.OPEN_EXISTING, flags, IntPtr.Zero); 1819int mode = UnsafeNativeMethods.PIPE_READMODE_MESSAGE; 1820if (UnsafeNativeMethods.SetNamedPipeHandleState(pipeHandle, ref mode, IntPtr.Zero, IntPtr.Zero) == 0) 1832if (error == UnsafeNativeMethods.ERROR_FILE_NOT_FOUND || error == UnsafeNativeMethods.ERROR_PIPE_BUSY) 1842if (error == UnsafeNativeMethods.ERROR_PIPE_BUSY) 1991this.maxInstances = Math.Min(maxConnections, UnsafeNativeMethods.PIPE_UNLIMITED_INSTANCES); 2050int openMode = UnsafeNativeMethods.PIPE_ACCESS_DUPLEX | UnsafeNativeMethods.FILE_FLAG_OVERLAPPED; 2053openMode |= UnsafeNativeMethods.FILE_FLAG_FIRST_PIPE_INSTANCE; 2060binarySecurityDescriptor = SecurityDescriptorHelper.FromSecurityIdentifiers(allowedSids, UnsafeNativeMethods.GENERIC_READ | UnsafeNativeMethods.GENERIC_WRITE); 2074UnsafeNativeMethods.SECURITY_ATTRIBUTES securityAttributes = new UnsafeNativeMethods.SECURITY_ATTRIBUTES(); 2078pipeHandle = UnsafeNativeMethods.CreateNamedPipe( 2081UnsafeNativeMethods.PIPE_TYPE_MESSAGE | UnsafeNativeMethods.PIPE_READMODE_MESSAGE, 2093if (error == UnsafeNativeMethods.ERROR_ACCESS_DENIED) 2097else if (error == UnsafeNativeMethods.ERROR_ALREADY_EXISTS) 2172PipeSharedMemory.CreatePipeNameInUseException(UnsafeNativeMethods.ERROR_ACCESS_DENIED, pipeUri)); 2269if (UnsafeNativeMethods.ConnectNamedPipe(pipeHandle, overlapped.NativeOverlapped) == 0) 2274case UnsafeNativeMethods.ERROR_NO_DATA: 2275if (UnsafeNativeMethods.DisconnectNamedPipe(pipeHandle) != 0) 2284case UnsafeNativeMethods.ERROR_PIPE_CONNECTED: 2287case UnsafeNativeMethods.ERROR_IO_PENDING: 2360if (this.result != null && UnsafeNativeMethods.GetOverlappedResult(this.pipeHandle, 2398worldCreatorOwnerWithReadAndWriteDescriptorDenyNetwork = FromSecurityIdentifiersFull(null, UnsafeNativeMethods.GENERIC_READ | UnsafeNativeMethods.GENERIC_WRITE); 2399worldCreatorOwnerWithReadDescriptorDenyNetwork = FromSecurityIdentifiersFull(null, UnsafeNativeMethods.GENERIC_READ); 2406if (accessRights == (UnsafeNativeMethods.GENERIC_READ | UnsafeNativeMethods.GENERIC_WRITE)) 2411if (accessRights == UnsafeNativeMethods.GENERIC_READ) 2427UnsafeNativeMethods.GENERIC_ALL, InheritanceFlags.None, PropagationFlags.None); 2475if ((everyoneAccessRights & UnsafeNativeMethods.GENERIC_WRITE) != 0) 2477everyoneAccessRights &= ~UnsafeNativeMethods.GENERIC_WRITE; 2480const int clientWriteAccess = UnsafeNativeMethods.FILE_WRITE_ATTRIBUTES | UnsafeNativeMethods.FILE_WRITE_DATA | UnsafeNativeMethods.FILE_WRITE_EA; 2485everyoneAccessRights &= ~UnsafeNativeMethods.FILE_CREATE_PIPE_INSTANCE; 2528throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreatePipeNameInUseException(UnsafeNativeMethods.ERROR_ACCESS_DENIED, pipeUri)); 2540binarySecurityDescriptor = SecurityDescriptorHelper.FromSecurityIdentifiers(allowedSids, UnsafeNativeMethods.GENERIC_READ); 2554UnsafeNativeMethods.SECURITY_ATTRIBUTES securityAttributes = new UnsafeNativeMethods.SECURITY_ATTRIBUTES(); 2557fileMapping = UnsafeNativeMethods.CreateFileMapping((IntPtr)(-1), securityAttributes, 2558UnsafeNativeMethods.PAGE_READWRITE, 0, sizeof(SharedMemoryContents), sharedMemoryName); 2565if (error == UnsafeNativeMethods.ERROR_ACCESS_DENIED) 2578if (error == UnsafeNativeMethods.ERROR_ALREADY_EXISTS) 2609SafeFileMappingHandle fileMapping = UnsafeNativeMethods.OpenFileMapping( 2610UnsafeNativeMethods.FILE_MAP_READ, false, sharedMemoryName); 2615if (error == UnsafeNativeMethods.ERROR_FILE_NOT_FOUND) 2617fileMapping = UnsafeNativeMethods.OpenFileMapping( 2618UnsafeNativeMethods.FILE_MAP_READ, false, "Global\\" + sharedMemoryName); 2623if (error == UnsafeNativeMethods.ERROR_FILE_NOT_FOUND) 2726SafeViewOfFileHandle handle = UnsafeNativeMethods.MapViewOfFile(fileMapping, 2727writable ? UnsafeNativeMethods.FILE_MAP_WRITE : UnsafeNativeMethods.FILE_MAP_READ, 2888if (UnsafeNativeMethods.FormatMessage(UnsafeNativeMethods.FORMAT_MESSAGE_IGNORE_INSERTS | 2889UnsafeNativeMethods.FORMAT_MESSAGE_FROM_SYSTEM | UnsafeNativeMethods.FORMAT_MESSAGE_ARGUMENT_ARRAY,
System\ServiceModel\Channels\SharedConnectionListener.cs (4)
1110if (exception.NativeErrorCode == UnsafeNativeMethods.ERROR_FILE_NOT_FOUND) 1115else if (exception.NativeErrorCode == UnsafeNativeMethods.ERROR_ACCESS_DENIED) 1186if (win32Exception.NativeErrorCode == UnsafeNativeMethods.ERROR_SERVICE_DISABLED) 1191else if (win32Exception.NativeErrorCode != UnsafeNativeMethods.ERROR_SERVICE_ALREADY_RUNNING)
System\ServiceModel\Channels\SharedHttpTransportManager.cs (8)
414case UnsafeNativeMethods.ERROR_NOT_ENOUGH_MEMORY: 415case UnsafeNativeMethods.ERROR_OUTOFMEMORY: 416case UnsafeNativeMethods.ERROR_NO_SYSTEM_RESOURCES: 607case UnsafeNativeMethods.ERROR_ALREADY_EXISTS: 610case UnsafeNativeMethods.ERROR_SHARING_VIOLATION: 613case UnsafeNativeMethods.ERROR_ACCESS_DENIED: 616case UnsafeNativeMethods.ERROR_ALLOTTED_SPACE_EXCEEDED: 619case UnsafeNativeMethods.ERROR_INVALID_PARAMETER:
System\ServiceModel\Channels\SocketConnection.cs (25)
719if (socketException.ErrorCode == UnsafeNativeMethods.ERROR_INVALID_HANDLE) 732if (socketException.ErrorCode == UnsafeNativeMethods.WSAECONNABORTED && 751if (socketException.ErrorCode == UnsafeNativeMethods.WSAENETRESET || 752socketException.ErrorCode == UnsafeNativeMethods.WSAECONNABORTED || 753socketException.ErrorCode == UnsafeNativeMethods.WSAECONNRESET) 777else if (socketException.ErrorCode == UnsafeNativeMethods.WSAETIMEDOUT) 1583if (socketException.ErrorCode == UnsafeNativeMethods.ERROR_INVALID_HANDLE) 1588if (socketException.ErrorCode == UnsafeNativeMethods.WSAEADDRNOTAVAIL || 1589socketException.ErrorCode == UnsafeNativeMethods.WSAECONNREFUSED || 1590socketException.ErrorCode == UnsafeNativeMethods.WSAENETDOWN || 1591socketException.ErrorCode == UnsafeNativeMethods.WSAENETUNREACH || 1592socketException.ErrorCode == UnsafeNativeMethods.WSAEHOSTDOWN || 1593socketException.ErrorCode == UnsafeNativeMethods.WSAEHOSTUNREACH || 1594socketException.ErrorCode == UnsafeNativeMethods.WSAETIMEDOUT) 1605else if (socketException.ErrorCode == UnsafeNativeMethods.WSAENOBUFS) 1609else if (socketException.ErrorCode == UnsafeNativeMethods.ERROR_NOT_ENOUGH_MEMORY || 1610socketException.ErrorCode == UnsafeNativeMethods.ERROR_NO_SYSTEM_RESOURCES || 1611socketException.ErrorCode == UnsafeNativeMethods.ERROR_OUTOFMEMORY) 2120if (socketException.ErrorCode == UnsafeNativeMethods.WSAEADDRINUSE) 2143if (socketException.ErrorCode == UnsafeNativeMethods.ERROR_INVALID_HANDLE) 2147if (socketException.ErrorCode == UnsafeNativeMethods.WSAEADDRINUSE) 2286(exception.ErrorCode == UnsafeNativeMethods.WSAECONNRESET) || 2287(exception.ErrorCode == UnsafeNativeMethods.WSAEMFILE) || 2288(exception.ErrorCode == UnsafeNativeMethods.WSAENOBUFS) || 2289(exception.ErrorCode == UnsafeNativeMethods.WSAETIMEDOUT)
System\ServiceModel\Channels\UnsafeNativeMethods.cs (11)
811uint returnLength = UnsafeNativeMethods.GetTokenInformationLength( 818if (!UnsafeNativeMethods.GetTokenInformation( 852if (error != UnsafeNativeMethods.ERROR_INSUFFICIENT_BUFFER) 868if (!UnsafeNativeMethods.GetTokenInformation( 886if (!UnsafeNativeMethods.GetTokenInformation( 1213bool success = UnsafeNativeMethods.GetNamedPipeClientProcessId(this, out pid); 1223return UnsafeNativeMethods.CloseHandle(handle) != 0; 1237return UnsafeNativeMethods.CloseHandle(handle) != 0; 1257[DllImport(UnsafeNativeMethods.KERNEL32, CharSet = CharSet.Unicode)] 1283if (UnsafeNativeMethods.UnmapViewOfFile(handle) != 0) 1299return UnsafeNativeMethods.MQCloseQueue(handle) >= 0;
System\ServiceModel\ComIntegration\OuterProxyWrapper.cs (2)
56SafeLibraryHandle tempLibrary = UnsafeNativeMethods.LoadLibrary(file); 78IntPtr procaddr = UnsafeNativeMethods.GetProcAddress(monikerSupportLibrary, functionName);
System\ServiceModel\Dispatcher\SyncMethodInvoker.cs (2)
107if (System.ServiceModel.Channels.UnsafeNativeMethods.QueryPerformanceCounter(out startCounter) == 0) 191if (startCounter >= 0 && System.ServiceModel.Channels.UnsafeNativeMethods.QueryPerformanceCounter(out stopCounter) != 0)
System\ServiceModel\HttpBindingBase.cs (1)
366if (!UnsafeNativeMethods.IsTailoredApplication.Value)
System\ServiceModel\MsmqEncryptionAlgorithm.cs (2)
26return UnsafeNativeMethods.CALG_RC4; 28return UnsafeNativeMethods.CALG_AES;
System\ServiceModel\MsmqException.cs (39)
74case UnsafeNativeMethods.MQ_ERROR_ACCESS_DENIED: 76case UnsafeNativeMethods.MQ_ERROR_NO_INTERNAL_USER_CERT: 78case UnsafeNativeMethods.MQ_ERROR_QUEUE_DELETED: 80case UnsafeNativeMethods.MQ_ERROR_QUEUE_NOT_FOUND: 82case UnsafeNativeMethods.MQ_ERROR_CERTIFICATE_NOT_PROVIDED: 84case UnsafeNativeMethods.MQ_ERROR_INVALID_CERTIFICATE: 86case UnsafeNativeMethods.MQ_ERROR_CANNOT_CREATE_CERT_STORE: 88case UnsafeNativeMethods.MQ_ERROR_CORRUPTED_PERSONAL_CERT_STORE: 90case UnsafeNativeMethods.MQ_ERROR_COULD_NOT_GET_USER_SID: 92case UnsafeNativeMethods.MQ_ERROR_ILLEGAL_FORMATNAME: 94case UnsafeNativeMethods.MQ_ERROR_ILLEGAL_QUEUE_PATHNAME: 96case UnsafeNativeMethods.MQ_ERROR_UNSUPPORTED_FORMATNAME_OPERATION: 98case UnsafeNativeMethods.MQ_ERROR_CANNOT_HASH_DATA_EX: 100case UnsafeNativeMethods.MQ_ERROR_CANNOT_SIGN_DATA_EX: 102case UnsafeNativeMethods.MQ_ERROR_FAIL_VERIFY_SIGNATURE_EX: 104case UnsafeNativeMethods.MQ_ERROR_BAD_SECURITY_CONTEXT: 106case UnsafeNativeMethods.MQ_ERROR_PRIVILEGE_NOT_HELD: 108case UnsafeNativeMethods.MQ_ERROR_SHARING_VIOLATION: 111case UnsafeNativeMethods.MQ_ERROR_DTC_CONNECT: 113case UnsafeNativeMethods.MQ_ERROR_IO_TIMEOUT: 115case UnsafeNativeMethods.MQ_ERROR_QUEUE_NOT_AVAILABLE: 117case UnsafeNativeMethods.MQ_ERROR_REMOTE_MACHINE_NOT_AVAILABLE: 119case UnsafeNativeMethods.MQ_ERROR_SERVICE_NOT_AVAILABLE: 121case UnsafeNativeMethods.MQ_ERROR_INSUFFICIENT_RESOURCES: 123case UnsafeNativeMethods.MQ_ERROR_MESSAGE_STORAGE_FAILED: 125case UnsafeNativeMethods.MQ_ERROR_TRANSACTION_ENLIST: 127case UnsafeNativeMethods.MQ_ERROR_TRANSACTION_IMPORT: 129case UnsafeNativeMethods.MQ_ERROR_TRANSACTION_USAGE: 131case UnsafeNativeMethods.MQ_ERROR_STALE_HANDLE: 134case UnsafeNativeMethods.MQ_ERROR_ILLEGAL_MQQMPROPS: 136case UnsafeNativeMethods.MQ_ERROR_INSUFFICIENT_PROPERTIES: 167int formatFlags = UnsafeNativeMethods.FORMAT_MESSAGE_IGNORE_INSERTS 168| UnsafeNativeMethods.FORMAT_MESSAGE_ARGUMENT_ARRAY 169| UnsafeNativeMethods.FORMAT_MESSAGE_FROM_HMODULE; 171result = (0 != UnsafeNativeMethods.FormatMessage( 182int formatFlags = UnsafeNativeMethods.FORMAT_MESSAGE_IGNORE_INSERTS 183| UnsafeNativeMethods.FORMAT_MESSAGE_ARGUMENT_ARRAY 184| UnsafeNativeMethods.FORMAT_MESSAGE_FROM_SYSTEM; 186result = (0 != UnsafeNativeMethods.FormatMessage(
System\ServiceModel\MsmqIntegration\MsmqIntegrationInputMessage.cs (24)
47this.acknowledge = new ByteProperty(this, UnsafeNativeMethods.PROPID_M_ACKNOWLEDGE); 48this.adminQueue = new StringProperty(this, UnsafeNativeMethods.PROPID_M_ADMIN_QUEUE, initialQueueNameLength); 49this.adminQueueLength = new IntProperty(this, UnsafeNativeMethods.PROPID_M_ADMIN_QUEUE_LEN, initialQueueNameLength); 50this.appSpecific = new IntProperty(this, UnsafeNativeMethods.PROPID_M_APPSPECIFIC); 51this.arrivedTime = new IntProperty(this, UnsafeNativeMethods.PROPID_M_ARRIVEDTIME); 52this.senderIdType = new IntProperty(this, UnsafeNativeMethods.PROPID_M_SENDERID_TYPE); 53this.authenticated = new ByteProperty(this, UnsafeNativeMethods.PROPID_M_AUTHENTICATED); 54this.bodyType = new IntProperty(this, UnsafeNativeMethods.PROPID_M_BODY_TYPE); 55this.correlationId = new BufferProperty(this, UnsafeNativeMethods.PROPID_M_CORRELATIONID, 56UnsafeNativeMethods.PROPID_M_CORRELATIONID_SIZE); 57this.destinationQueue = new StringProperty(this, UnsafeNativeMethods.PROPID_M_DEST_FORMAT_NAME, initialQueueNameLength); 58this.destinationQueueLength = new IntProperty(this, UnsafeNativeMethods.PROPID_M_DEST_FORMAT_NAME_LEN, initialQueueNameLength); 59this.extension = new BufferProperty(this, UnsafeNativeMethods.PROPID_M_EXTENSION, 61this.extensionLength = new IntProperty(this, UnsafeNativeMethods.PROPID_M_EXTENSION_LEN, initialExtensionLength); 62this.label = new StringProperty(this, UnsafeNativeMethods.PROPID_M_LABEL, initialLabelLength); 63this.labelLength = new IntProperty(this, UnsafeNativeMethods.PROPID_M_LABEL_LEN, initialLabelLength); 64this.priority = new ByteProperty(this, UnsafeNativeMethods.PROPID_M_PRIORITY); 65this.responseFormatName = new StringProperty(this, UnsafeNativeMethods.PROPID_M_RESP_FORMAT_NAME, initialQueueNameLength); 66this.responseFormatNameLength = new IntProperty(this, UnsafeNativeMethods.PROPID_M_RESP_FORMAT_NAME_LEN, initialQueueNameLength); 67this.sentTime = new IntProperty(this, UnsafeNativeMethods.PROPID_M_SENTTIME); 68this.timeToReachQueue = new IntProperty(this, UnsafeNativeMethods.PROPID_M_TIME_TO_REACH_QUEUE); 69this.privacyLevel = new IntProperty(this, UnsafeNativeMethods.PROPID_M_PRIV_LEVEL); 100if (this.Class.Value == UnsafeNativeMethods.MQMSG_CLASS_NORMAL) 102else if (this.Class.Value == UnsafeNativeMethods.MQMSG_CLASS_REPORT)
System\ServiceModel\MsmqIntegration\MsmqIntegrationOutputChannel.cs (9)
75this.msmqQueue = new MsmqQueue(this.factory.AddressTranslator.UriToFormatName(this.RemoteAddress.Uri), UnsafeNativeMethods.MQ_SEND_ACCESS); 221this.appSpecific = new IntProperty(this, UnsafeNativeMethods.PROPID_M_APPSPECIFIC, property.AppSpecific.Value); 227this.correlationId = new BufferProperty(this, UnsafeNativeMethods.PROPID_M_CORRELATIONID, MsmqMessageId.FromString(property.CorrelationId)); 230this.extension = new BufferProperty(this, UnsafeNativeMethods.PROPID_M_EXTENSION, property.Extension); 233this.label = new StringProperty(this, UnsafeNativeMethods.PROPID_M_LABEL, property.Label); 236this.priority = new ByteProperty(this, UnsafeNativeMethods.PROPID_M_PRIORITY, (byte)property.Priority.Value); 249this.acknowledge = new ByteProperty(this, UnsafeNativeMethods.PROPID_M_ACKNOWLEDGE); 264this.adminQueue = new StringProperty(this, UnsafeNativeMethods.PROPID_M_ADMIN_QUEUE, queueName); 280this.responseQueue = new StringProperty(this, UnsafeNativeMethods.PROPID_M_RESP_FORMAT_NAME, queueName);
System\ServiceModel\MsmqSecureHashAlgorithm.cs (4)
31return UnsafeNativeMethods.CALG_MD5; 33return UnsafeNativeMethods.CALG_SHA1; 35return UnsafeNativeMethods.CALG_SHA_256; 37return UnsafeNativeMethods.CALG_SHA_512;
System\ServiceModel\NetHttpBinding.cs (1)
288if ((this.MessageEncoding == NetHttpMessageEncoding.Mtom) && UnsafeNativeMethods.IsTailoredApplication.Value)
System\ServiceModel\NetHttpsBinding.cs (1)
190if ((this.MessageEncoding == NetHttpMessageEncoding.Mtom) && UnsafeNativeMethods.IsTailoredApplication.Value)
System\ServiceModel\NetTcpBinding.cs (1)
279if (!UnsafeNativeMethods.IsTailoredApplication.Value)
System\ServiceModel\Security\SecurityUtilsEx.cs (2)
32bool readPolicy = (System.ServiceModel.Channels.UnsafeNativeMethods.ERROR_SUCCESS == System.ServiceModel.Channels.UnsafeNativeMethods.BCryptGetFipsAlgorithmMode(out fipsEnabled));
System\ServiceModel\Security\WindowsClientCredential.cs (1)
43if (((value == TokenImpersonationLevel.None) || (value == TokenImpersonationLevel.Anonymous)) && System.ServiceModel.Channels.UnsafeNativeMethods.IsTailoredApplication.Value)
System\ServiceModel\Security\WindowsSspiNegotiation.cs (3)
476uint status = UnsafeNativeMethods.SspiExcludePackage(ppAuthIdentity, "NTLM", out ppNewAuthIdentity); 487UnsafeNativeMethods.SspiFreeAuthIdentity(ppNewAuthIdentity); 500UnsafeNativeMethods.SspiFreeAuthIdentity(ppAuthIdentity);