mirror of
https://github.com/reactos/reactos.git
synced 2024-09-10 12:54:51 +00:00
![Amine Khaldi](/assets/img/avatar_default.png)
* Create a branch for some evul shell experiments. svn path=/branches/shell-experiments/; revision=61927
55 lines
1.3 KiB
C
55 lines
1.3 KiB
C
/*
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
* PROJECT: ReactOS WinSock DLL
|
|
* FILE: stubs.c
|
|
* PURPOSE: WSAIoctl wrappers for Microsoft extensions to Winsock
|
|
* PROGRAMMERS: KJK::Hyperion <hackbunny@reactos.com>
|
|
* REVISIONS:
|
|
*/
|
|
|
|
#include "precomp.h"
|
|
|
|
#include <winsock2.h>
|
|
#include <mswsock.h>
|
|
|
|
/*
|
|
* @implemented
|
|
*/
|
|
BOOL
|
|
WINAPI
|
|
TransmitFile(SOCKET Socket,
|
|
HANDLE File,
|
|
DWORD NumberOfBytesToWrite,
|
|
DWORD NumberOfBytesPerSend,
|
|
LPOVERLAPPED Overlapped,
|
|
LPTRANSMIT_FILE_BUFFERS TransmitBuffers,
|
|
DWORD Flags)
|
|
{
|
|
static GUID TransmitFileGUID = WSAID_TRANSMITFILE;
|
|
LPFN_TRANSMITFILE pfnTransmitFile;
|
|
DWORD cbBytesReturned;
|
|
|
|
if (WSAIoctl(Socket,
|
|
SIO_GET_EXTENSION_FUNCTION_POINTER,
|
|
&TransmitFileGUID,
|
|
sizeof(TransmitFileGUID),
|
|
&pfnTransmitFile,
|
|
sizeof(pfnTransmitFile),
|
|
&cbBytesReturned,
|
|
NULL,
|
|
NULL) == SOCKET_ERROR)
|
|
{
|
|
return FALSE;
|
|
}
|
|
|
|
return pfnTransmitFile(Socket,
|
|
File,
|
|
NumberOfBytesToWrite,
|
|
NumberOfBytesPerSend,
|
|
Overlapped,
|
|
TransmitBuffers,
|
|
Flags);
|
|
}
|
|
|
|
/* EOF */
|