summaryrefslogtreecommitdiff
path: root/src/vm/invalidoverlappedwrappers.h
diff options
context:
space:
mode:
authordotnet-bot <dotnet-bot@microsoft.com>2015-01-30 14:14:42 -0800
committerdotnet-bot <dotnet-bot@microsoft.com>2015-01-30 14:14:42 -0800
commitef1e2ab328087c61a6878c1e84f4fc5d710aebce (patch)
treedee1bbb89e9d722e16b0d1485e3cdd1b6c8e2cfa /src/vm/invalidoverlappedwrappers.h
downloadcoreclr-ef1e2ab328087c61a6878c1e84f4fc5d710aebce.tar.gz
coreclr-ef1e2ab328087c61a6878c1e84f4fc5d710aebce.tar.bz2
coreclr-ef1e2ab328087c61a6878c1e84f4fc5d710aebce.zip
Initial commit to populate CoreCLR repo
[tfs-changeset: 1407945]
Diffstat (limited to 'src/vm/invalidoverlappedwrappers.h')
-rw-r--r--src/vm/invalidoverlappedwrappers.h71
1 files changed, 71 insertions, 0 deletions
diff --git a/src/vm/invalidoverlappedwrappers.h b/src/vm/invalidoverlappedwrappers.h
new file mode 100644
index 0000000000..bc8cb131f0
--- /dev/null
+++ b/src/vm/invalidoverlappedwrappers.h
@@ -0,0 +1,71 @@
+//
+// Copyright (c) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+//
+//
+// InvalidOverlappedWrappers.h
+//
+
+//
+
+
+CREATE_WRAPPER_FUNCTION(HttpApi, ULONG, WINAPI, HttpReceiveHttpRequest,
+ ( HANDLE ReqQueueHandle, ULONGLONG RequestId, ULONG Flags, LPVOID pRequestBuffer, ULONG RequestBufferLength, PULONG pBytesReceived, LPOVERLAPPED overlapped),
+ ( ReqQueueHandle, RequestId, Flags, pRequestBuffer, RequestBufferLength, pBytesReceived, overlapped))
+
+CREATE_WRAPPER_FUNCTION(IpHlpApi, DWORD, WINAPI, NotifyAddrChange,
+ (PHANDLE Handle,LPOVERLAPPED overlapped),
+ (Handle, overlapped))
+
+CREATE_WRAPPER_FUNCTION(IpHlpApi, DWORD, WINAPI, NotifyRouteChange,
+ (PHANDLE Handle,LPOVERLAPPED overlapped),
+ (Handle, overlapped))
+
+CREATE_WRAPPER_FUNCTION(kernel32, BOOL, WINAPI, ReadFile,
+ (HANDLE hFile, LPVOID lpBuffer, DWORD nNumberOfBytesToRead, LPDWORD lpNumberOfBytesRead, LPOVERLAPPED overlapped),
+ (hFile, lpBuffer, nNumberOfBytesToRead, lpNumberOfBytesRead, overlapped))
+
+CREATE_WRAPPER_FUNCTION(kernel32, BOOL, WINAPI, ReadFileEx,
+ (HANDLE hFile, LPVOID lpBuffer, DWORD nNumberOfBytesToRead, LPOVERLAPPED overlapped, LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine),
+ (hFile, lpBuffer, nNumberOfBytesToRead, overlapped, lpCompletionRoutine))
+
+CREATE_WRAPPER_FUNCTION(kernel32, BOOL, WINAPI, WriteFile,
+ (HANDLE hFile, LPCVOID lpBuffer, DWORD nNumberOfBytesToWrite, LPDWORD lpNumberOfBytesWritten, LPOVERLAPPED overlapped),
+ (hFile, lpBuffer, nNumberOfBytesToWrite, lpNumberOfBytesWritten, overlapped))
+
+CREATE_WRAPPER_FUNCTION(kernel32, BOOL, WINAPI, WriteFileEx,
+ (HANDLE hFile, LPCVOID lpBuffer, DWORD nNumberOfBytesToWrite, LPOVERLAPPED overlapped, LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine),
+ (hFile, lpBuffer, nNumberOfBytesToWrite, overlapped, lpCompletionRoutine))
+
+CREATE_WRAPPER_FUNCTION(kernel32, BOOL, WINAPI, ReadDirectoryChangesW,
+ (HANDLE hDirectory, LPVOID lpBuffer, DWORD nBufferLength, BOOL bWatchSubtree, DWORD dwNotifyFilter, LPDWORD lpBytesReturned, LPOVERLAPPED overlapped, LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine),
+ (hDirectory, lpBuffer, nBufferLength, bWatchSubtree, dwNotifyFilter, lpBytesReturned, overlapped, lpCompletionRoutine))
+
+CREATE_WRAPPER_FUNCTION(kernel32, BOOL, WINAPI, PostQueuedCompletionStatus,
+ (HANDLE CompletionPort, DWORD dwNumberOfBytesTransferred, ULONG_PTR dwCompletionKey, LPOVERLAPPED overlapped),
+ (CompletionPort, dwNumberOfBytesTransferred, dwCompletionKey, overlapped))
+
+CREATE_WRAPPER_FUNCTION(MSWSock, BOOL, PASCAL, ConnectEx,
+ (UINT_PTR s, LPVOID name, int namelen, PVOID lpSendBuffer, DWORD dwSendDataLength, LPDWORD lpdwBytesSent, LPOVERLAPPED overlapped),
+ (s, name, namelen, lpSendBuffer, dwSendDataLength, lpdwBytesSent, overlapped))
+
+CREATE_WRAPPER_FUNCTION(WS2_32, int, PASCAL, WSASend,
+ (UINT_PTR s, LPVOID lpBuffers, DWORD dwBufferCount, LPDWORD lpNumberOfBytesSent, DWORD dwFlags, LPOVERLAPPED overlapped, LPVOID lpCompletionRoutine),
+ (s, lpBuffers, dwBufferCount, lpNumberOfBytesSent, dwFlags, overlapped, lpCompletionRoutine))
+
+CREATE_WRAPPER_FUNCTION(WS2_32, int, PASCAL, WSASendTo,
+ (UINT_PTR s, LPVOID lpBuffers, DWORD dwBufferCount, LPDWORD lpNumberOfBytesSent, DWORD dwFlags, LPVOID lpTo, int iToLen, LPOVERLAPPED overlapped, LPVOID lpCompletionRoutine),
+ (s, lpBuffers, dwBufferCount, lpNumberOfBytesSent, dwFlags, lpTo, iToLen, overlapped, lpCompletionRoutine))
+
+CREATE_WRAPPER_FUNCTION(WS2_32, int, PASCAL, WSARecv,
+ (UINT_PTR s, LPVOID lpBuffers, DWORD dwBufferCount, LPDWORD lpNumberOfBytesRecvd, LPDWORD lpFlags, LPOVERLAPPED overlapped, LPVOID lpCompletionRoutine),
+ (s, lpBuffers, dwBufferCount, lpNumberOfBytesRecvd, lpFlags, overlapped, lpCompletionRoutine))
+
+CREATE_WRAPPER_FUNCTION(WS2_32, int, PASCAL, WSARecvFrom,
+ (UINT_PTR s, LPVOID lpBuffers, DWORD dwBufferCount, LPDWORD lpNumberOfBytesRecvd, LPDWORD lpFlags, LPVOID lpFrom, LPINT lpFromlen, LPOVERLAPPED overlapped, LPVOID lpCompletionRoutine),
+ (s, lpBuffers, dwBufferCount, lpNumberOfBytesRecvd, lpFlags, lpFrom, lpFromlen, overlapped, lpCompletionRoutine))
+
+CREATE_WRAPPER_FUNCTION(MQRT, int, PASCAL, MQReceiveMessage,
+ (HANDLE hSource, DWORD dwTimeout, DWORD dwAction, LPVOID pMessageProps, LPOVERLAPPED overlapped, LPVOID fnReceiveCallback, HANDLE hCursor, LPVOID pTransaction),
+ (hSource, dwTimeout, dwAction, pMessageProps, overlapped, fnReceiveCallback, hCursor, pTransaction))
+