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