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