43 references to SafeNativeMethods
System.Messaging (43)
System\Messaging\AccessControlList.cs (2)
166
int err =
SafeNativeMethods
.SetEntriesInAclW(ACECount, (IntPtr)mem.AddrOfPinnedObject(), oldAcl, out newAcl);
185
SafeNativeMethods
.LocalFree(acl);
System\Messaging\Cursor.cs (1)
22
int status =
SafeNativeMethods
.MQCreateCursor(queue.MQInfo.ReadHandle, out result);
System\Messaging\Interop\SafeHandles.cs (4)
23
SafeNativeMethods
.MQCloseQueue(this.handle);
58
SafeNativeMethods
.MQCloseCursor(this.handle);
93
SafeNativeMethods
.MQLocateEnd(this.handle);
132
SafeNativeMethods
.MQFreeSecurityContext(this.handle);
System\Messaging\Interop\UnsafeNativeMethods.cs (6)
48
SafeNativeMethods
.ReceiveCallback receiveCallback, CursorHandle cursorHandle, IntPtr transaction);
52
SafeNativeMethods
.ReceiveCallback receiveCallback, CursorHandle cursorHandle, ITransaction transaction);
57
SafeNativeMethods
.ReceiveCallback receiveCallback, IntPtr transaction);
60
SafeNativeMethods
.ReceiveCallback receiveCallback, IntPtr transaction)
75
SafeNativeMethods
.ReceiveCallback receiveCallback, ITransaction transaction);
78
SafeNativeMethods
.ReceiveCallback receiveCallback, ITransaction transaction)
System\Messaging\Message.cs (1)
1660
SafeNativeMethods
.MQFreeMemory(memoryHandle);
System\Messaging\MessageEnumerator.cs (1)
90
int status =
SafeNativeMethods
.MQCreateCursor(this.owner.MQInfo.ReadHandle, out result);
System\Messaging\MessageQueue.cs (20)
423
SafeNativeMethods
.MQFreeMemory(handle);
456
SafeNativeMethods
.GetComputerName(sb, new int[] { sb.Capacity });
641
status =
SafeNativeMethods
.MQInstanceToFormatName(this.id.ToByteArray(), newFormatName, ref result);
723
SafeNativeMethods
.MQFreeMemory(handle);
753
SafeNativeMethods
.MQFreeMemory(handle);
1024
SafeNativeMethods
.MQFreeMemory(handle);
1190
SafeNativeMethods
.MQFreeMemory(handle);
1916
SafeNativeMethods
.MQFreeMemory(handle);
1924
SafeNativeMethods
.MQFreeMemory(handle);
2051
SafeNativeMethods
.MQFreeMemory(stringPointer);
2054
SafeNativeMethods
.MQFreeMemory(basePointer);
2546
if (!
SafeNativeMethods
.GetHandleInformation(handle, out handleInformation))
2622
int status =
SafeNativeMethods
.MQCreateCursor(this.MQInfo.ReadHandle, out cursorHandle);
3360
status =
SafeNativeMethods
.MQPathNameToFormatName(realPath, newFormatName, ref result);
3672
private
SafeNativeMethods
.ReceiveCallback onMessageReceived;
3702
this.onMessageReceived = new
SafeNativeMethods
.ReceiveCallback(this.OnMessageReceived);
4044
SafeNativeMethods
.ReceiveCallback receiveCallback, CursorHandle cursorHandle, IntPtr transaction)
4074
SafeNativeMethods
.ReceiveCallback receiveCallback, CursorHandle cursorHandle, ITransaction transaction)
4088
NativeOverlapped* overlapped,
SafeNativeMethods
.ReceiveCallback receiveCallback, IntPtr transaction)
4114
NativeOverlapped* overlapped,
SafeNativeMethods
.ReceiveCallback receiveCallback, ITransaction transaction)
System\Messaging\MessageQueueEnumerator.cs (3)
196
status =
SafeNativeMethods
.MQLocateNext(this.Handle, ref propertyCount, array);
210
SafeNativeMethods
.MQFreeMemory(array[0].ptr);
211
SafeNativeMethods
.MQFreeMemory(array[1].ptr);
System\Messaging\MessageQueueException.cs (4)
86
int result =
SafeNativeMethods
.FormatMessage(
SafeNativeMethods
.FORMAT_MESSAGE_IGNORE_INSERTS |
87
SafeNativeMethods
.FORMAT_MESSAGE_FROM_SYSTEM |
88
SafeNativeMethods
.FORMAT_MESSAGE_ARGUMENT_ARRAY,
System\Messaging\MessageQueueTransaction.cs (1)
105
int status =
SafeNativeMethods
.MQBeginTransaction(out this.internalTransaction);