winhttp: Add WinHttpWebSocket* function stubs.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alistair Leslie-Hughes 2020-06-11 10:21:38 +02:00 committed by Alexandre Julliard
parent 93aea5d86f
commit 0a90d0431d
3 changed files with 50 additions and 0 deletions

View File

@ -3013,6 +3013,44 @@ BOOL WINAPI WinHttpWriteData( HINTERNET hrequest, LPCVOID buffer, DWORD to_write
return !ret;
}
HINTERNET WINAPI WinHttpWebSocketCompleteUpgrade( HINTERNET hrequest, DWORD_PTR context )
{
FIXME("%p, %08lx\n", hrequest, context);
return NULL;
}
DWORD WINAPI WinHttpWebSocketSend( HINTERNET hsocket, WINHTTP_WEB_SOCKET_BUFFER_TYPE type, void *buf, DWORD len )
{
FIXME("%p, %u, %p, %u\n", hsocket, type, buf, len);
return ERROR_INVALID_PARAMETER;
}
DWORD WINAPI WinHttpWebSocketReceive( HINTERNET hsocket, void *buf, DWORD len, DWORD *read,
WINHTTP_WEB_SOCKET_BUFFER_TYPE *type )
{
FIXME("%p, %p, %u, %p, %p\n", hsocket, buf, len, read, type);
return ERROR_INVALID_PARAMETER;
}
DWORD WINAPI WinHttpWebSocketShutdown( HINTERNET hsocket, USHORT status, void *reason, DWORD len )
{
FIXME("%p, %u, %p, %u\n", hsocket, status, reason, len);
return ERROR_INVALID_PARAMETER;
}
DWORD WINAPI WinHttpWebSocketClose( HINTERNET hsocket, USHORT status, void *reason, DWORD len )
{
FIXME("%p, %u, %p, %u\n", hsocket, status, reason, len);
return ERROR_INVALID_PARAMETER;
}
DWORD WINAPI WinHttpWebSocketQueryCloseStatus( HINTERNET hsocket, USHORT *status, void *reason, DWORD len,
DWORD *consumed )
{
FIXME("%p, %p, %p, %u, %p\n", hsocket, status, reason, len, consumed);
return ERROR_INVALID_PARAMETER;
}
enum request_state
{
REQUEST_STATE_INITIALIZED,

View File

@ -28,4 +28,10 @@
@ stdcall WinHttpSetTimeouts(ptr long long long long)
@ stdcall WinHttpTimeFromSystemTime(ptr ptr)
@ stdcall WinHttpTimeToSystemTime(wstr ptr)
@ stdcall WinHttpWebSocketClose(ptr long ptr long)
@ stdcall WinHttpWebSocketCompleteUpgrade(ptr ptr)
@ stdcall WinHttpWebSocketQueryCloseStatus(ptr ptr ptr long ptr)
@ stdcall WinHttpWebSocketReceive(ptr ptr long ptr ptr)
@ stdcall WinHttpWebSocketSend(ptr long ptr long)
@ stdcall WinHttpWebSocketShutdown(ptr long ptr long)
@ stdcall WinHttpWriteData(ptr ptr long ptr)

View File

@ -853,6 +853,12 @@ WINHTTP_STATUS_CALLBACK WINAPI WinHttpSetStatusCallback(HINTERNET,WINHTTP_STATUS
BOOL WINAPI WinHttpSetTimeouts(HINTERNET,int,int,int,int);
BOOL WINAPI WinHttpTimeFromSystemTime(const SYSTEMTIME *,LPWSTR);
BOOL WINAPI WinHttpTimeToSystemTime(LPCWSTR,SYSTEMTIME*);
DWORD WINAPI WinHttpWebSocketClose(HINTERNET,USHORT,void *,DWORD);
HINTERNET WINAPI WinHttpWebSocketCompleteUpgrade(HINTERNET,DWORD_PTR);
DWORD WINAPI WinHttpWebSocketQueryCloseStatus(HINTERNET,USHORT*,void*,DWORD,DWORD*);
DWORD WINAPI WinHttpWebSocketReceive(HINTERNET,void*,DWORD,DWORD*,WINHTTP_WEB_SOCKET_BUFFER_TYPE*);
DWORD WINAPI WinHttpWebSocketSend(HINTERNET,WINHTTP_WEB_SOCKET_BUFFER_TYPE,void*,DWORD);
DWORD WINAPI WinHttpWebSocketShutdown(HINTERNET,USHORT,void*,DWORD);
BOOL WINAPI WinHttpWriteData(HINTERNET,LPCVOID,DWORD,LPDWORD);
DWORD WINAPI WinHttpWriteProxySettings(HINTERNET,BOOL,WINHTTP_PROXY_SETTINGS*);