https://git.reactos.org/?p=reactos.git;a=commitdiff;h=cdb48b8219bafcf533b8d…
commit cdb48b8219bafcf533b8ddd9908c857d89976fec
Author: Oleg Dubinskiy <oleg.dubinskij2013(a)yandex.ua>
AuthorDate: Sat Oct 24 18:04:54 2020 +0300
Commit: GitHub <noreply(a)github.com>
CommitDate: Sat Oct 24 18:04:54 2020 +0300
[SHELL32] Stub SHGetShellStyleHInstance and SHGetAttributesFromDataObject CORE-17337
(#3295)
They are required by MS Picture and Fax Viewer (shimgvw.dll), together with MS
browseui.dll.
CORE-17337
---
dll/win32/shell32/shell32.spec | 4 ++--
dll/win32/shell32/stubs.cpp | 25 +++++++++++++++++++++++++
2 files changed, 27 insertions(+), 2 deletions(-)
diff --git a/dll/win32/shell32/shell32.spec b/dll/win32/shell32/shell32.spec
index b96c0f209d5..fc9df55855b 100644
--- a/dll/win32/shell32/shell32.spec
+++ b/dll/win32/shell32/shell32.spec
@@ -456,8 +456,8 @@
745 stub -noname Create_IUIElement
747 stdcall SHLimitInputEdit(ptr ptr)
748 stdcall -noname SHLimitInputCombo(ptr ptr)
-749 stub SHGetShellStyleHInstance
-750 stub SHGetAttributesFromDataObject
+749 stdcall -noname -version=0x501-0x502 SHGetShellStyleHInstance()
+750 stdcall -noname SHGetAttributesFromDataObject(ptr long long long)
751 stub -noname SHSimulateDropOnClsid
752 stdcall -noname SHGetComputerDisplayNameW(long long long long)
753 stdcall -noname CheckStagingArea()
diff --git a/dll/win32/shell32/stubs.cpp b/dll/win32/shell32/stubs.cpp
index a995e395509..a5061ad1a9d 100644
--- a/dll/win32/shell32/stubs.cpp
+++ b/dll/win32/shell32/stubs.cpp
@@ -1301,3 +1301,28 @@ DWORD WINAPI SHGetComputerDisplayNameW(DWORD param1, DWORD param2,
DWORD param3,
FIXME("SHGetComputerDisplayNameW() stub\n");
return E_FAIL;
}
+
+/*
+ * Unimplemented
+ */
+EXTERN_C HRESULT
+WINAPI
+SHGetAttributesFromDataObject(IDataObject *pdo,
+ DWORD dwAttributeMask,
+ DWORD *pdwAttributes,
+ UINT *pcItems)
+{
+ FIXME("SHGetAttributesFromDataObject() stub\n");
+ return E_NOTIMPL;
+}
+
+/*
+ * Unimplemented
+ */
+EXTERN_C HINSTANCE
+WINAPI
+SHGetShellStyleHInstance(VOID)
+{
+ FIXME("SHGetShellStyleHInstance() stub\n");
+ return NULL;
+}