37 references to UnsafeNativeMethods
System.Messaging (37)
System\Messaging\AccessControlList.cs (2)
145
if (!
UnsafeNativeMethods
.LookupAccountName(ace.Trustee.SystemName, name, (IntPtr)0, ref sidSize, null, ref domainSize, out sidtype)) {
154
if (!
UnsafeNativeMethods
.LookupAccountName(ace.Trustee.SystemName, name, entries[i].data, ref sidSize, domainName, ref domainSize, out sidtype))
System\Messaging\Message.cs (1)
1651
int status =
UnsafeNativeMethods
.MQGetMachineProperties(null, handle.AddrOfPinnedObject(), machineProperties.Lock());
System\Messaging\MessageQueue.cs (32)
1680
status =
UnsafeNativeMethods
.MQCreateQueue(IntPtr.Zero, properties.Lock(), formatName, ref formatNameLen);
1741
status =
UnsafeNativeMethods
.MQDeleteQueue(queue.FormatName);
1855
int status =
UnsafeNativeMethods
.MQGetQueueProperties(FormatName, Properties.Lock());
1910
int status =
UnsafeNativeMethods
.MQGetMachineProperties(machineName, IntPtr.Zero, machineProperties.Lock());
2036
int status =
UnsafeNativeMethods
.MQMgmtGetInfo(machineName, "MACHINE", properties.Lock());
3125
int status =
UnsafeNativeMethods
.MQSetQueueProperties(FormatName, Properties.Lock());
3392
int result =
UnsafeNativeMethods
.MQSetQueueSecurity(FormatName, NativeMethods.DACL_SECURITY_INFORMATION, null);
3468
mqResult =
UnsafeNativeMethods
.MQGetQueueSecurity(FormatName,
3479
mqResult =
UnsafeNativeMethods
.MQGetQueueSecurity(FormatName,
3493
bool success =
UnsafeNativeMethods
.GetSecurityDescriptorDacl(sdHandle.AddrOfPinnedObject(),
3505
UnsafeNativeMethods
.InitializeSecurityDescriptor(newSecurityDescriptor,
3510
success =
UnsafeNativeMethods
.SetSecurityDescriptorDacl(newSecurityDescriptor,
3518
int result =
UnsafeNativeMethods
.MQSetQueueSecurity(FormatName,
3993
int status =
UnsafeNativeMethods
.MQPurgeQueue(MQInfo.ReadHandle);
3997
status =
UnsafeNativeMethods
.MQPurgeQueue(MQInfo.ReadHandle);
4022
int status =
UnsafeNativeMethods
.MQSendMessage(MQInfo.WriteHandle, properties, transaction);
4026
status =
UnsafeNativeMethods
.MQSendMessage(MQInfo.WriteHandle, properties, transaction);
4034
int status =
UnsafeNativeMethods
.MQSendMessage(MQInfo.WriteHandle, properties, transaction);
4038
status =
UnsafeNativeMethods
.MQSendMessage(MQInfo.WriteHandle, properties, transaction);
4064
int status =
UnsafeNativeMethods
.MQReceiveMessage(MQInfo.ReadHandle, timeout, action, properties, overlapped, receiveCallback, cursorHandle, transaction);
4068
status =
UnsafeNativeMethods
.MQReceiveMessage(MQInfo.ReadHandle, timeout, action, properties, overlapped, receiveCallback, cursorHandle, transaction);
4076
int status =
UnsafeNativeMethods
.MQReceiveMessage(MQInfo.ReadHandle, timeout, action, properties, overlapped, receiveCallback, cursorHandle, transaction);
4080
status =
UnsafeNativeMethods
.MQReceiveMessage(MQInfo.ReadHandle, timeout, action, properties, overlapped, receiveCallback, cursorHandle, transaction);
4103
int status =
UnsafeNativeMethods
.MQReceiveMessageByLookupId(MQInfo.ReadHandle, lookupId, action, properties, overlapped, receiveCallback, transaction);
4107
status =
UnsafeNativeMethods
.MQReceiveMessageByLookupId(MQInfo.ReadHandle, lookupId, action, properties, overlapped, receiveCallback, transaction);
4117
int status =
UnsafeNativeMethods
.MQReceiveMessageByLookupId(MQInfo.ReadHandle, lookupId, action, properties, overlapped, receiveCallback, transaction);
4121
status =
UnsafeNativeMethods
.MQReceiveMessageByLookupId(MQInfo.ReadHandle, lookupId, action, properties, overlapped, receiveCallback, transaction);
4325
int status =
UnsafeNativeMethods
.MQOpenQueue(this.formatName, accessMode.GetReadAccessMode(), shareMode, out result);
4356
int status =
UnsafeNativeMethods
.MQOpenQueue(this.formatName, accessMode.GetWriteAccessMode(), 0, out result);
4391
int status =
UnsafeNativeMethods
.MQOpenQueue(this.formatName, accessMode.GetReadAccessMode(), shareMode, out result);
4418
int status =
UnsafeNativeMethods
.MQOpenQueue(this.formatName, accessMode.GetWriteAccessMode(), 0, out result);
4443
int status =
UnsafeNativeMethods
.MQGetQueueProperties(formatName, props.Lock());
System\Messaging\MessageQueueEnumerator.cs (2)
155
status =
UnsafeNativeMethods
.MQLocateBegin(null, this.criteria.Reference, columns.GetColumnsRef(), out enumHandle);
157
status =
UnsafeNativeMethods
.MQLocateBegin(null, null, columns.GetColumnsRef(), out enumHandle);