mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 08:54:05 +00:00
kernelbase: Add stub for QueryIoRingCapabilities().
This commit is contained in:
parent
27fc318161
commit
4021dde40d
|
@ -36,6 +36,7 @@
|
|||
#include "shlwapi.h"
|
||||
#include "ddk/ntddk.h"
|
||||
#include "ddk/ntddser.h"
|
||||
#include "ioringapi.h"
|
||||
|
||||
#include "kernelbase.h"
|
||||
#include "wine/exception.h"
|
||||
|
@ -4483,3 +4484,14 @@ BOOL WINAPI DECLSPEC_HOTPATCH WaitCommEvent( HANDLE handle, DWORD *events, OVERL
|
|||
return DeviceIoControl( handle, IOCTL_SERIAL_WAIT_ON_MASK, NULL, 0, events, sizeof(*events),
|
||||
NULL, overlapped );
|
||||
}
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
* QueryIoRingCapabilities (kernelbase.@)
|
||||
*/
|
||||
HRESULT WINAPI QueryIoRingCapabilities(IORING_CAPABILITIES *caps)
|
||||
{
|
||||
FIXME( "caps %p stub.\n", caps );
|
||||
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
|
|
@ -1232,6 +1232,7 @@
|
|||
@ stdcall QueryDosDeviceW(wstr ptr long)
|
||||
@ stdcall QueryFullProcessImageNameA(ptr long ptr ptr)
|
||||
@ stdcall QueryFullProcessImageNameW(ptr long ptr ptr)
|
||||
@ stdcall QueryIoRingCapabilities(ptr)
|
||||
# @ stub QueryIdleProcessorCycleTime
|
||||
# @ stub QueryIdleProcessorCycleTimeEx
|
||||
@ stdcall QueryInterruptTime(ptr)
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
TESTDLL = kernelbase.dll
|
||||
|
||||
C_SRCS = \
|
||||
file.c \
|
||||
path.c \
|
||||
process.c \
|
||||
sync.c
|
||||
|
|
57
dlls/kernelbase/tests/file.c
Normal file
57
dlls/kernelbase/tests/file.c
Normal file
|
@ -0,0 +1,57 @@
|
|||
/*
|
||||
* Copyright (C) 2023 Paul Gofman for CodeWeavers
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <ntstatus.h>
|
||||
#define WIN32_NO_STATUS
|
||||
#include <windef.h>
|
||||
#include <winbase.h>
|
||||
#include <winerror.h>
|
||||
#include <ioringapi.h>
|
||||
|
||||
#include "wine/test.h"
|
||||
|
||||
static HRESULT (WINAPI *pQueryIoRingCapabilities)(IORING_CAPABILITIES *);
|
||||
|
||||
static void test_ioring_caps(void)
|
||||
{
|
||||
IORING_CAPABILITIES caps;
|
||||
HRESULT hr;
|
||||
|
||||
if (!pQueryIoRingCapabilities)
|
||||
{
|
||||
win_skip("QueryIoRingCapabilities is not available, skipping tests.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
memset(&caps, 0xcc, sizeof(caps));
|
||||
hr = pQueryIoRingCapabilities(&caps);
|
||||
todo_wine ok(hr == S_OK, "got %#lx.\n", hr);
|
||||
}
|
||||
|
||||
START_TEST(file)
|
||||
{
|
||||
HMODULE hmod;
|
||||
|
||||
hmod = LoadLibraryA("kernelbase.dll");
|
||||
pQueryIoRingCapabilities = (void *)GetProcAddress(hmod, "QueryIoRingCapabilities");
|
||||
|
||||
test_ioring_caps();
|
||||
}
|
Loading…
Reference in a new issue