From 9a80befba38a93cda15aaf4268558a3960c2d78d Mon Sep 17 00:00:00 2001 From: Louis Lenders Date: Thu, 30 Nov 2023 09:08:30 +0100 Subject: [PATCH] shcore: Add stub for CreateRandomAccessStreamOverStream. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55867 --- dlls/shcore/main.c | 10 ++++++++++ dlls/shcore/shcore.spec | 2 +- include/Makefile.in | 1 + include/shcore.h | 32 ++++++++++++++++++++++++++++++++ 4 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 include/shcore.h diff --git a/dlls/shcore/main.c b/dlls/shcore/main.c index 494da202283..653694a04dc 100644 --- a/dlls/shcore/main.c +++ b/dlls/shcore/main.c @@ -29,6 +29,7 @@ #include "ocidl.h" #include "featurestagingapi.h" #include "shellscalingapi.h" +#include "shcore.h" #define WINSHLWAPI #include "shlwapi.h" @@ -2529,3 +2530,12 @@ HRESULT WINAPI RegisterScaleChangeEvent(HANDLE handle, DWORD_PTR *cookie) FIXME("(%p, %p) stub\n", handle, cookie); return E_NOTIMPL; } + +/************************************************************************* + * CreateRandomAccessStreamOverStream [SHCORE.@] + */ +HRESULT WINAPI CreateRandomAccessStreamOverStream(IStream *stream, BSOS_OPTIONS options, REFIID riid, void **ppv) +{ + FIXME("(%p, %d, %s, %p) stub\n", stream, options, debugstr_guid(riid), ppv); + return E_NOTIMPL; +} diff --git a/dlls/shcore/shcore.spec b/dlls/shcore/shcore.spec index c5de17de590..fc265d8215a 100644 --- a/dlls/shcore/shcore.spec +++ b/dlls/shcore/shcore.spec @@ -1,7 +1,7 @@ 1 stub -noname SHCreateReadOnlySharedMemoryStream @ stdcall CommandLineToArgvW(wstr ptr) @ stub CreateRandomAccessStreamOnFile -@ stub CreateRandomAccessStreamOverStream +@ stdcall CreateRandomAccessStreamOverStream(ptr long ptr ptr) @ stub CreateStreamOverRandomAccessStream @ stdcall -private DllCanUnloadNow() @ stub DllGetActivationFactory diff --git a/include/Makefile.in b/include/Makefile.in index 97b4d0e90f6..d4a166e265c 100644 --- a/include/Makefile.in +++ b/include/Makefile.in @@ -695,6 +695,7 @@ SOURCES = \ sesprp.idl \ setupapi.h \ sfc.h \ + shcore.h \ shdeprecated.idl \ shdispid.h \ shellapi.h \ diff --git a/include/shcore.h b/include/shcore.h new file mode 100644 index 00000000000..7893261b953 --- /dev/null +++ b/include/shcore.h @@ -0,0 +1,32 @@ +/* + * Copyright 2023 Louis Lenders + * + * 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 + */ + +#ifndef SHCORE_H +#define SHCORE_H + +#include + +typedef enum BSOS_OPTIONS +{ + BSOS_DEFAULT, + BSOS_PREFERDESTINATIONSTREAM +} BSOS_OPTIONS; + +HRESULT WINAPI CreateRandomAccessStreamOverStream(IStream *stream, BSOS_OPTIONS options, REFIID riid, void **ppv); + +#endif