From ef1e2ab328087c61a6878c1e84f4fc5d710aebce Mon Sep 17 00:00:00 2001 From: dotnet-bot Date: Fri, 30 Jan 2015 14:14:42 -0800 Subject: Initial commit to populate CoreCLR repo [tfs-changeset: 1407945] --- src/vm/invalidoverlappedwrappers.h | 71 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 src/vm/invalidoverlappedwrappers.h (limited to 'src/vm/invalidoverlappedwrappers.h') 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)) + -- cgit v1.2.3