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