[MSAFD] Add an initial implementation of SIO_GET_EXTENSION_FUNCTION_POINTER IOCTL

Also stub the related functions the IOCTL will return, namely: WSAID_ACCEPTEX,
WSAID_CONNECTEX, WSAID_DISCONNECTEX, WSAID_GETACCEPTEXSOCKADDRS

This will allow Steam client not to fail in an ASSERT
related to the Steam client PlatformSocketsInit function.

Even though, this doesn't fix Steam running on ReactOS since its UI requires
a Windows 7 API from Kernel32: SetThreadErrorMode().

Nota: its crash got fixed thanks to the Wine sync done recently.

CORE-14966
This commit is contained in:
Pierre Schweitzer 2019-02-16 13:46:40 +01:00
parent cc820b7f9f
commit 2b1f6c8b0d
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B
3 changed files with 159 additions and 1 deletions

View file

@ -53,4 +53,65 @@ WSPJoinLeaf(
return (SOCKET)0;
}
BOOL
WSPAPI
WSPAcceptEx(
IN SOCKET sListenSocket,
IN SOCKET sAcceptSocket,
OUT PVOID lpOutputBuffer,
IN DWORD dwReceiveDataLength,
IN DWORD dwLocalAddressLength,
IN DWORD dwRemoteAddressLength,
OUT LPDWORD lpdwBytesReceived,
IN OUT LPOVERLAPPED lpOverlapped)
{
UNIMPLEMENTED;
return FALSE;
}
BOOL
WSPAPI
WSPConnectEx(
IN SOCKET s,
IN const struct sockaddr *name,
IN int namelen,
IN PVOID lpSendBuffer,
IN DWORD dwSendDataLength,
OUT LPDWORD lpdwBytesSent,
IN OUT LPOVERLAPPED lpOverlapped)
{
UNIMPLEMENTED;
return FALSE;
}
BOOL
WSPAPI
WSPDisconnectEx(
IN SOCKET hSocket,
IN LPOVERLAPPED lpOverlapped,
IN DWORD dwFlags,
IN DWORD reserved)
{
UNIMPLEMENTED;
return FALSE;
}
VOID
WSPAPI
WSPGetAcceptExSockaddrs(
IN PVOID lpOutputBuffer,
IN DWORD dwReceiveDataLength,
IN DWORD dwLocalAddressLength,
IN DWORD dwRemoteAddressLength,
OUT struct sockaddr **LocalSockaddr,
OUT LPINT LocalSockaddrLength,
OUT struct sockaddr **RemoteSockaddr,
OUT LPINT RemoteSockaddrLength)
{
UNIMPLEMENTED;
}
/* EOF */