httpapi: Add stub for HttpCloseServerSession.
Signed-off-by: Yussur-Mustafa Oraji <yussur.oraji@hotmail.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
12a9b6d407
commit
776e74549d
|
@ -7,6 +7,7 @@
|
|||
@ stub HttpCreateFilter
|
||||
@ stdcall HttpCreateHttpHandle(ptr long)
|
||||
@ stdcall HttpCreateServerSession(long ptr long)
|
||||
@ stdcall HttpCloseServerSession(int64)
|
||||
@ stub HttpDeleteConfigGroup
|
||||
@ stdcall HttpDeleteServiceConfiguration(ptr long ptr long ptr)
|
||||
@ stub HttpFilterAccept
|
||||
|
|
|
@ -192,3 +192,12 @@ ULONG WINAPI HttpCreateServerSession( HTTPAPI_VERSION version, HTTP_SERVER_SESSI
|
|||
FIXME( "({%d,%d}, %p, %d): stub!\n", version.HttpApiMajorVersion, version.HttpApiMinorVersion, id, reserved );
|
||||
return ERROR_ACCESS_DENIED;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
* HttpCloseServerSession (HTTPAPI.@)
|
||||
*/
|
||||
ULONG WINAPI HttpCloseServerSession( HTTP_SERVER_SESSION_ID id )
|
||||
{
|
||||
FIXME( "(%s): stub!\n", wine_dbgstr_longlong(id));
|
||||
return ERROR_INVALID_PARAMETER;
|
||||
}
|
||||
|
|
|
@ -92,30 +92,37 @@ static void test_HttpCreateServerSession(void)
|
|||
version.HttpApiMajorVersion = 1;
|
||||
version.HttpApiMinorVersion = 0;
|
||||
ret = pHttpCreateServerSession(version, NULL, 0);
|
||||
todo_wine
|
||||
ok(ret == ERROR_INVALID_PARAMETER, "Unexpected return value %u.\n", ret);
|
||||
|
||||
version.HttpApiMajorVersion = 1;
|
||||
version.HttpApiMinorVersion = 1;
|
||||
ret = pHttpCreateServerSession(version, &session, 0);
|
||||
todo_wine
|
||||
ok(ret == ERROR_REVISION_MISMATCH, "Unexpected return value %u.\n", ret);
|
||||
|
||||
version.HttpApiMajorVersion = 3;
|
||||
version.HttpApiMinorVersion = 0;
|
||||
ret = pHttpCreateServerSession(version, &session, 0);
|
||||
todo_wine
|
||||
ok(ret == ERROR_REVISION_MISMATCH, "Unexpected return value %u.\n", ret);
|
||||
|
||||
version.HttpApiMajorVersion = 2;
|
||||
version.HttpApiMinorVersion = 0;
|
||||
ret = pHttpCreateServerSession(version, &session, 0);
|
||||
todo_wine
|
||||
ok(!ret, "Unexpected return value %u.\n", ret);
|
||||
ret = pHttpCloseServerSession(session);
|
||||
todo_wine
|
||||
ok(!ret, "Unexpected return value %u.\n", ret);
|
||||
|
||||
version.HttpApiMajorVersion = 1;
|
||||
version.HttpApiMinorVersion = 0;
|
||||
ret = pHttpCreateServerSession(version, &session, 0);
|
||||
todo_wine
|
||||
ok(!ret, "Unexpected return value %u.\n", ret);
|
||||
ret = pHttpCloseServerSession(session);
|
||||
todo_wine
|
||||
ok(!ret, "Unexpected return value %u.\n", ret);
|
||||
|
||||
ret = pHttpCloseServerSession(0xdead);
|
||||
|
|
|
@ -60,6 +60,7 @@ ULONG WINAPI HttpTerminate(ULONG,PVOID);
|
|||
ULONG WINAPI HttpAddUrl(HANDLE,PCWSTR,PVOID);
|
||||
ULONG WINAPI HttpCreateHttpHandle(PHANDLE,ULONG);
|
||||
ULONG WINAPI HttpCreateServerSession(HTTPAPI_VERSION,PHTTP_SERVER_SESSION_ID,ULONG);
|
||||
ULONG WINAPI HttpCloseServerSession(HTTP_SERVER_SESSION_ID);
|
||||
ULONG WINAPI HttpDeleteServiceConfiguration(HANDLE,HTTP_SERVICE_CONFIG_ID,PVOID,ULONG,LPOVERLAPPED);
|
||||
ULONG WINAPI HttpQueryServiceConfiguration(HANDLE,HTTP_SERVICE_CONFIG_ID,PVOID,ULONG,PVOID,ULONG,PULONG,LPOVERLAPPED);
|
||||
ULONG WINAPI HttpSetServiceConfiguration(HANDLE,HTTP_SERVICE_CONFIG_ID,PVOID,ULONG,LPOVERLAPPED);
|
||||
|
|
Loading…
Reference in New Issue