179 references to NativeOverlapped
mscorlib (30)
microsoft\win32\win32native.cs (3)
1075unsafe internal static extern int ReadFile(SafeFileHandle handle, byte* bytes, int numBytesToRead, IntPtr numBytesRead_mustBeZero, NativeOverlapped* overlapped); 1091internal static unsafe extern int WriteFile(SafeFileHandle handle, byte* bytes, int numBytesToWrite, IntPtr numBytesWritten_mustBeZero, NativeOverlapped* lpOverlapped); 1100internal static unsafe extern bool CancelIoEx(SafeFileHandle handle, NativeOverlapped* lpOverlapped);
system\io\filestream.cs (7)
93private NativeOverlapped* _overlapped; 94internal NativeOverlapped* OverLapped { [SecurityCritical]get { return _overlapped; } } 317unsafe private static void AsyncFSCallback(uint errorCode, uint numBytes, NativeOverlapped* pOverlapped) 2027NativeOverlapped* intOverlapped = asyncResult.OverLapped; 2282NativeOverlapped* intOverlapped = asyncResult.OverLapped; 2486private unsafe int ReadFileNative(SafeFileHandle handle, byte[] bytes, int offset, int count, NativeOverlapped* overlapped, out int hr) 2542private unsafe int WriteFileNative(SafeFileHandle handle, byte[] bytes, int offset, int count, NativeOverlapped* overlapped, out int hr) {
system\runtime\interopservices\windowsruntime\WindowsRuntimeBufferHelper.cs (2)
32private unsafe extern static void StoreOverlappedPtrInCCW(ObjectHandleOnStack windowsRuntimeBuffer, NativeOverlapped* overlapped); 38internal unsafe static void StoreOverlappedInCCW(Object windowsRuntimeBuffer, NativeOverlapped* overlapped) {
system\threading\overlapped.cs (15)
72NativeOverlapped* _pOVERLAP; 106NativeOverlapped* pOVERLAP // ptr to OVERLAP structure 166internal NativeOverlapped m_nativeOverlapped; 198unsafe internal NativeOverlapped* Pack(IOCompletionCallback iocb, Object userData) 233unsafe internal NativeOverlapped* UnsafePack(IOCompletionCallback iocb, Object userData) 265unsafe private extern NativeOverlapped* AllocateNativeOverlapped(); 270unsafe internal static extern void FreeNativeOverlapped(NativeOverlapped* nativeOverlappedPtr); 275unsafe internal static extern OverlappedData GetOverlappedFromNative(NativeOverlapped* nativeOverlappedPtr); 280unsafe internal static extern void CheckVMForIOPacket(out NativeOverlapped* pOVERLAP, out uint errorCode, out uint numBytes); 372unsafe public NativeOverlapped* Pack(IOCompletionCallback iocb) 381unsafe public NativeOverlapped* Pack(IOCompletionCallback iocb, Object userData) 391unsafe public NativeOverlapped* UnsafePack(IOCompletionCallback iocb) 400unsafe public NativeOverlapped* UnsafePack(IOCompletionCallback iocb, Object userData) 411unsafe public static Overlapped Unpack(NativeOverlapped* nativeOverlappedPtr) 424unsafe public static void Free(NativeOverlapped* nativeOverlappedPtr)
system\threading\threadpool.cs (3)
1354NativeOverlapped* pOVERLAP // ptr to OVERLAP structure 1785unsafe private static extern bool PostQueuedCompletionStatus(NativeOverlapped* overlapped); 1789unsafe public static bool UnsafeQueueNativeOverlapped(NativeOverlapped* overlapped)
System (50)
compmod\microsoft\win32\UnsafeNativeMethods.cs (5)
402NativeOverlapped* overlappedPointer, HandleRef lpCompletionRoutine); 575unsafe internal static extern int ReadFile(SafeFileHandle handle, byte* bytes, int numBytesToRead, IntPtr numBytesRead, NativeOverlapped* overlapped); 583unsafe internal static extern int WriteFile(SafeFileHandle handle, byte* bytes, int numBytesToWrite, IntPtr numBytesWritten, NativeOverlapped* lpOverlapped); 606NativeOverlapped* lpOverlapped // overlapped structure 620NativeOverlapped* lpOverlapped,
net\System\Net\_ListenerAsyncResult.cs (1)
108private static unsafe void WaitCallback(uint errorCode, uint numBytes, NativeOverlapped* nativeOverlapped)
net\System\Net\_ListenerRequestStream.cs (2)
368internal NativeOverlapped* m_pOverlapped; 415private static unsafe void Callback(uint errorCode, uint numBytes, NativeOverlapped* nativeOverlapped) {
net\System\Net\_ListenerResponseStream.cs (2)
480internal NativeOverlapped* m_pOverlapped; 613private static unsafe void Callback(uint errorCode, uint numBytes, NativeOverlapped* nativeOverlapped) {
net\System\Net\_SafeNetHandles.cs (5)
2347internal unsafe SafeNativeOverlapped(NativeOverlapped* handle) 2371((NativeOverlapped*)handleSnapshot)->InternalHigh = IntPtr.Zero; 2372((NativeOverlapped*)handleSnapshot)->InternalLow = IntPtr.Zero; 2373((NativeOverlapped*)handleSnapshot)->EventHandle = IntPtr.Zero; 2387Overlapped.Free((NativeOverlapped*)oldHandle);
net\System\Net\HttpListener.cs (9)
160private NativeOverlapped* m_NativeOverlapped; 174NativeOverlapped* nativeOverlapped = m_NativeOverlapped; 199NativeOverlapped* nativeOverlapped = m_NativeOverlapped; 218internal NativeOverlapped* NativeOverlapped 2677NativeOverlapped* m_NativeOverlapped; 2685internal NativeOverlapped* NativeOverlapped{ 2747internal unsafe void IOCompleted(uint errorCode, uint numBytes, NativeOverlapped* nativeOverlapped) 2752private static unsafe void IOCompleted(DisconnectAsyncResult asyncResult, uint errorCode, uint numBytes, NativeOverlapped* nativeOverlapped) 2762private static unsafe void WaitCallback(uint errorCode, uint numBytes, NativeOverlapped* nativeOverlapped) {
net\System\Net\HttpListenerRequest.cs (3)
37private NativeOverlapped* m_pOverlapped; 42internal NativeOverlapped* NativeOverlapped 177private static unsafe void WaitCallback(uint errorCode, uint numBytes, NativeOverlapped* nativeOverlapped) {
net\System\Net\Sockets\_BaseOverlappedAsyncResult.cs (1)
302private unsafe static void CompletionPortCallback(uint errorCode, uint numBytes, NativeOverlapped* nativeOverlapped) {
net\System\Net\Sockets\Socket.cs (1)
10033private unsafe void CompletionPortCallback(uint errorCode, uint numBytes, NativeOverlapped* nativeOverlapped) {
net\System\Net\UnsafeNativeMethods.cs (8)
114internal static unsafe extern uint CancelIoEx(CriticalHandle handle, NativeOverlapped* overlapped); 2141internal static extern uint HttpReceiveRequestEntityBody(CriticalHandle requestQueueHandle, ulong requestId, uint flags, void* pEntityBuffer, uint entityBufferLength, out uint bytesReturned, NativeOverlapped* pOverlapped); 2147internal static extern uint HttpReceiveClientCertificate(CriticalHandle requestQueueHandle, ulong connectionId, uint flags, HTTP_SSL_CLIENT_CERT_INFO* pSslClientCertInfo, uint sslClientCertInfoSize, uint* pBytesReceived, NativeOverlapped* pOverlapped); 2151internal static extern uint HttpReceiveClientCertificate(CriticalHandle requestQueueHandle, ulong connectionId, uint flags, byte* pSslClientCertInfo, uint sslClientCertInfoSize, uint* pBytesReceived, NativeOverlapped* pOverlapped); 2155internal static extern uint HttpReceiveHttpRequest(CriticalHandle requestQueueHandle, ulong requestId, uint flags, HTTP_REQUEST* pRequestBuffer, uint requestBufferLength, uint* pBytesReturned, NativeOverlapped* pOverlapped); 2159internal static extern uint HttpSendHttpResponse(CriticalHandle requestQueueHandle, ulong requestId, uint flags, HTTP_RESPONSE* pHttpResponse, void* pCachePolicy, uint* pBytesSent, SafeLocalFree pRequestBuffer, uint requestBufferLength, NativeOverlapped* pOverlapped, void* pLogData); 2163internal static extern uint HttpSendResponseEntityBody(CriticalHandle requestQueueHandle, ulong requestId, uint flags, ushort entityChunkCount, HTTP_DATA_CHUNK* pEntityChunks, uint* pBytesSent, SafeLocalFree pRequestBuffer, uint requestBufferLength, NativeOverlapped* pOverlapped, void* pLogData); 2175internal static extern uint HttpWaitForDisconnect(CriticalHandle requestQueueHandle, ulong connectionId, NativeOverlapped* pOverlapped);
net\System\Net\WebSockets\WebSocketHttpListenerDuplexStream.cs (1)
1263private unsafe void CompletionPortCallback(uint errorCode, uint numBytes, NativeOverlapped* nativeOverlapped)
services\io\system\io\FileSystemWatcher.cs (2)
464private unsafe void CompletionStatusChanged(uint errorCode, uint numBytes, NativeOverlapped * overlappedPointer) { 715NativeOverlapped* overlappedPointer = overlapped.Pack(new IOCompletionCallback(this.CompletionStatusChanged), buffer);
sys\system\io\ports\SerialStream.cs (10)
998NativeOverlapped* overlappedPtr = afsar._overlapped; 1053NativeOverlapped* overlappedPtr = afsar._overlapped; 1444NativeOverlapped* intOverlapped = overlapped.Pack(IOCallback, array); 1499NativeOverlapped* intOverlapped = overlapped.Pack(IOCallback, array); 1533private unsafe int ReadFileNative(byte[] bytes, int offset, int count, NativeOverlapped* overlapped, out int hr) 1581private unsafe int WriteFileNative(byte[] bytes, int offset, int count, NativeOverlapped* overlapped, out int hr) 1633unsafe private static void AsyncFSCallback(uint errorCode, uint numBytes, NativeOverlapped* pOverlapped) 1715NativeOverlapped* intOverlapped = null; 1798private unsafe void FreeNativeOverlappedCallback(uint errorCode, uint numBytes, NativeOverlapped* pOverlapped) { 1946internal NativeOverlapped* _overlapped;
System.Core (20)
Microsoft\Win32\UnsafeNativeMethods.cs (5)
170out int numBytesWritten, NativeOverlapped* lpOverlapped); 333unsafe internal static extern bool ConnectNamedPipe(SafePipeHandle handle, NativeOverlapped* overlapped); 446IntPtr numBytesRead_mustBeZero, NativeOverlapped* overlapped); 464IntPtr numBytesWritten_mustBeZero, NativeOverlapped* lpOverlapped); 1491internal static unsafe extern bool CancelIoEx(SafeHandle handle, NativeOverlapped* lpOverlapped);
System\IO\LogStream.cs (1)
248unsafe private int WriteFileNative(byte[] bytes, int offset, int count, NativeOverlapped* overlapped, out int hr) {
System\IO\Pipes\IOCancellationHelper.cs (3)
20private NativeOverlapped* _overlapped; 31public void AllowCancellation(SafeHandle handle, NativeOverlapped* overlapped) { 85NativeOverlapped* overlapped = this._overlapped;
System\IO\Pipes\Pipe.cs (3)
673NativeOverlapped* intOverlapped = overlapped.Pack(WaitForConnectionCallback, null); 881unsafe private static void AsyncWaitForConnectionCallback(uint errorCode, uint numBytes, NativeOverlapped* pOverlapped) { 1422internal NativeOverlapped* _overlapped;
System\IO\Pipes\PipeStream.cs (8)
314NativeOverlapped* intOverlapped; 403NativeOverlapped* overlappedPtr = afsar._overlapped; 533NativeOverlapped* intOverlapped = overlapped.Pack(IOCallback, buffer); 604NativeOverlapped* overlappedPtr = afsar._overlapped; 620NativeOverlapped* overlapped, out int hr) { 670NativeOverlapped* overlapped, out int hr) { 1220unsafe private static void AsyncPSCallback(uint errorCode, uint numBytes, NativeOverlapped* pOverlapped) { 1284internal NativeOverlapped* _overlapped;
System.IO.Log (26)
System\IO\Log\LogReserveAndAppendState.cs (1)
592NativeOverlapped* overlapped = null;
System\IO\Log\LogWriteRestartAreaState.cs (1)
473NativeOverlapped* overlapped;
System\IO\Log\OverlappedAsyncResult.cs (3)
42NativeOverlapped* nativeOverlapped; 95internal NativeOverlapped* NativeOverlapped 185static void CompletionCallback(uint errorCode, uint numBytes, NativeOverlapped* nativeOverlapped)
System\IO\Log\UnsafeNativeMethods.cs (21)
596NativeOverlapped* overlapped) 943NativeOverlapped* pOverlapped) 993NativeOverlapped* pOverlapped) 1018NativeOverlapped* pOverlapped) 1729NativeOverlapped* lpOverlapped) 1901NativeOverlapped* overlapped); 1912NativeOverlapped* overlapped); 1971NativeOverlapped* overlapped); 1983NativeOverlapped* pOverlapped); 2000NativeOverlapped* pOverlapped); 2016NativeOverlapped* pOverlapped); 2033NativeOverlapped* pOverlapped); 2048NativeOverlapped* pOverlapped); 2063NativeOverlapped* pOverlapped); 2097NativeOverlapped* pOverlapped); 2110NativeOverlapped* pOverlapped); 2128NativeOverlapped* pverlapped); 2137NativeOverlapped* lpOverlapped); 2146NativeOverlapped* lpOverlapped); 2398NativeOverlapped* pOverlapped); 2418NativeOverlapped* pOverlapped);
System.Messaging (15)
System\Messaging\Interop\SafeNativeMethods.cs (1)
24public unsafe delegate void ReceiveCallback(int result, IntPtr handle, int timeout, int action, IntPtr propertiesPointer, NativeOverlapped* overlappedPointer, IntPtr cursorHandle);
System\Messaging\Interop\UnsafeNativeMethods.cs (6)
47public unsafe static extern int MQReceiveMessage(MessageQueueHandle handle, uint timeout, int action, MessagePropertyVariants.MQPROPS properties, NativeOverlapped* overlapped, 51public unsafe static extern int MQReceiveMessage(MessageQueueHandle handle, uint timeout, int action, MessagePropertyVariants.MQPROPS properties, NativeOverlapped* overlapped, 56private unsafe static extern int IntMQReceiveMessageByLookupId(MessageQueueHandle handle, long lookupId, int action, MessagePropertyVariants.MQPROPS properties, NativeOverlapped* overlapped, 59public unsafe static int MQReceiveMessageByLookupId(MessageQueueHandle handle, long lookupId, int action, MessagePropertyVariants.MQPROPS properties, NativeOverlapped* overlapped, 74private unsafe static extern int IntMQReceiveMessageByLookupId(MessageQueueHandle handle, long lookupId, int action, MessagePropertyVariants.MQPROPS properties, NativeOverlapped* overlapped, 77public unsafe static int MQReceiveMessageByLookupId(MessageQueueHandle handle, long lookupId, int action, MessagePropertyVariants.MQPROPS properties, NativeOverlapped* overlapped,
System\Messaging\MessageQueue.cs (8)
3778NativeOverlapped* overlappedPointer = null; 3853private unsafe void OnCompletionStatusChanged(uint errorCode, uint numBytes, NativeOverlapped* overlappedPointer) 3884private unsafe void OnMessageReceived(int result, IntPtr handle, int timeout, int action, IntPtr propertiesPointer, NativeOverlapped* overlappedPointer, IntPtr cursorHandle) 3894private unsafe void RaiseCompletionEvent(int result, NativeOverlapped* overlappedPointer) 4043internal unsafe int StaleSafeReceiveMessage(uint timeout, int action, MessagePropertyVariants.MQPROPS properties, NativeOverlapped* overlapped, 4073private unsafe int StaleSafeReceiveMessage(uint timeout, int action, MessagePropertyVariants.MQPROPS properties, NativeOverlapped* overlapped, 4088NativeOverlapped* overlapped, SafeNativeMethods.ReceiveCallback receiveCallback, IntPtr transaction) 4114NativeOverlapped* overlapped, SafeNativeMethods.ReceiveCallback receiveCallback, ITransaction transaction)
System.Runtime.Remoting (5)
channels\ipc\ipcport.cs (4)
226NativeOverlapped* intOverlapped; 252unsafe private static void AsyncFSCallback(uint errorCode, uint numBytes, NativeOverlapped* pOverlapped) 284NativeOverlapped* overlappedPtr = ar._overlapped; 334internal NativeOverlapped* _overlapped;
channels\ipc\win32namedpipes.cs (1)
148NativeOverlapped* lpOverlapped // overlapped buffer
System.ServiceModel (30)
System\ServiceModel\Channels\MsmqQueue.cs (4)
717int action, NativeOverlapped* nativeOverlapped, 757unsafe NativeOverlapped* nativeOverlapped = null; 846int action, IntPtr props, NativeOverlapped* nativeOverlapped, IntPtr cursor) 852unsafe static void OnPortedCompletion(uint error, uint numBytes, NativeOverlapped* nativeOverlapped)
System\ServiceModel\Channels\OverlappedContext.cs (5)
27NativeOverlapped* nativeOverlapped; 126NativeOverlapped* nativePtr = this.nativeOverlapped; 343public NativeOverlapped* NativeOverlapped 348NativeOverlapped* ptr = this.nativeOverlapped; 372static void CompleteCallback(uint error, uint numBytes, NativeOverlapped* nativeOverlapped)
System\ServiceModel\Channels\PipeConnection.cs (2)
1593NativeOverlapped* nativeOverlapped, out int bytesWritten) 1609NativeOverlapped* nativeOverlapped, out int bytesRead)
System\ServiceModel\Channels\UnsafeNativeMethods.cs (19)
480int action, IntPtr props, NativeOverlapped* nativeOverlapped, IntPtr cursor); 508NativeOverlapped* lpOverlapped 599NativeOverlapped* overlapped, 610NativeOverlapped* overlapped, 618NativeOverlapped* overlapped) 657NativeOverlapped* overlapped 679NativeOverlapped* lpOverlapped 713NativeOverlapped* nativeOverlapped, 721NativeOverlapped* overlapped, 974NativeOverlapped* nativeOverlapped, IntPtr receiveCallback, IntPtr cursorHandle, IntPtr transaction); 979NativeOverlapped* nativeOverlapped, IntPtr receiveCallback, IntPtr cursorHandle, IntPtr transaction); 984NativeOverlapped* nativeOverlapped, IntPtr receiveCallback, IntPtr cursorHandle, IDtcTransaction transaction); 989NativeOverlapped* nativeOverlapped, IntPtr receiveCallback, IntPtr cursorHandle, IDtcTransaction transaction); 994NativeOverlapped* nativeOverlapped, MQReceiveCallback receiveCallback, IntPtr cursorHandle, IntPtr transaction); 999NativeOverlapped* nativeOverlapped, IntPtr receiveCallback, IntPtr cursorHandle, ITransaction transaction); 1004IntPtr properties, NativeOverlapped* nativeOverlapped, IntPtr receiveCallback, IDtcTransaction transaction); 1009IntPtr properties, NativeOverlapped* nativeOverlapped, IntPtr receiveCallback, IntPtr transaction); 1014IntPtr properties, NativeOverlapped* nativeOverlapped, IntPtr receiveCallback, ITransaction transaction); 1040public unsafe static extern int MQGetOverlappedResult(NativeOverlapped* nativeOverlapped);
System.ServiceModel.Internals (3)
System\Runtime\Fx.cs (1)
1279void UnhandledExceptionFrame(uint error, uint bytesRead, NativeOverlapped* nativeOverlapped)
System\Runtime\IOThreadScheduler.cs (2)
598readonly NativeOverlapped* nativeOverlapped; 608void IOCallback(uint errorCode, uint numBytes, NativeOverlapped* nativeOverlapped)