[PATCH v7 4/5] wdscore: Add stubs for WdsSetupLogMessage[AW].
Mohamad Al-Jaf
mohamadaljaf at gmail.com
Thu Feb 10 19:02:14 CST 2022
Required by the Windows MediaCreationTool21H2.
Signed-off-by: Mohamad Al-Jaf <mohamadaljaf at gmail.com>
---
v7: Fix incorrect enum values.
---
dlls/wdscore/main.c | 27 +++++++++++++++++++++++++++
dlls/wdscore/wdscore.spec | 4 ++--
dlls/wdscore/wdscore_internal.h | 27 +++++++++++++++++++++++++++
3 files changed, 56 insertions(+), 2 deletions(-)
diff --git a/dlls/wdscore/main.c b/dlls/wdscore/main.c
index e7eaaaa42de..ea6e0875a7a 100644
--- a/dlls/wdscore/main.c
+++ b/dlls/wdscore/main.c
@@ -72,3 +72,30 @@ LPVOID WINAPI ConstructPartialMsgVW( WdsLogLevel level, LPCWSTR msg, va_list arg
FIXME( "%u %s - stub\n", level, debugstr_w(msg) );
return NULL;
}
+
+/***********************************************************************
+ * WdsSetupLogMessageA (wdscore.@)
+ */
+HRESULT WINAPI WdsSetupLogMessageA( LPVOID msg, WdsLogSource src, LPCSTR unknown1, LPCSTR unknown2,
+ ULONG unknown3, LPCSTR file, LPCSTR func, void *ip,
+ ULONG unknown4, void *unknown5, UINT unknown6 )
+{
+ FIXME( "%p, %u, %s, %s, %u, %s, %s, %p, %u, %p, %u - stub\n", msg, src, debugstr_a(unknown1),
+ debugstr_a(unknown2), unknown3, debugstr_a(file), debugstr_a(func), ip, unknown4,
+ unknown5, unknown6 );
+ return S_OK;
+}
+
+
+/***********************************************************************
+ * WdsSetupLogMessageW (wdscore.@)
+ */
+HRESULT WINAPI WdsSetupLogMessageW( LPVOID msg, WdsLogSource src, LPCWSTR unknown1, LPCWSTR unknown2,
+ ULONG unknown3, LPCWSTR file, LPCWSTR func, void *ip,
+ ULONG unknown4, void *unknown5, UINT unknown6 )
+{
+ FIXME( "%p, %u, %s, %s, %u, %s, %s, %p, %u, %p, %u - stub\n", msg, src, debugstr_w(unknown1),
+ debugstr_w(unknown2), unknown3, debugstr_w(file), debugstr_w(func), ip, unknown4,
+ unknown5, unknown6 );
+ return S_OK;
+}
diff --git a/dlls/wdscore/wdscore.spec b/dlls/wdscore/wdscore.spec
index 86a3bf37797..938f27b776c 100644
--- a/dlls/wdscore/wdscore.spec
+++ b/dlls/wdscore/wdscore.spec
@@ -150,8 +150,8 @@
@ stub WdsSetUILanguage
@ stub WdsSetupLogDestroy
@ stub WdsSetupLogInit
-@ stub WdsSetLogMessageA
-@ stub WdsSetLogMessageW
+@ stdcall WdsSetupLogMessageA(ptr long str str long str str ptr long ptr long)
+@ stdcall WdsSetupLogMessageW(ptr long wstr wstr long wstr wstr ptr long ptr long)
@ stub WdsSubscribeEx
@ stub WdsTerminate
@ stub WdsUnlockExecutionGroup
diff --git a/dlls/wdscore/wdscore_internal.h b/dlls/wdscore/wdscore_internal.h
index e5f54a358a8..6b15b3da0da 100644
--- a/dlls/wdscore/wdscore_internal.h
+++ b/dlls/wdscore/wdscore_internal.h
@@ -30,6 +30,33 @@ typedef enum _WdsLogLevel {
WdsLogLevelTrace = 0x70000000
} WdsLogLevel;
+typedef enum _WdsLogSource {
+ WdsLogSourceDPX = 0x10000,
+ WdsLogSourceCBS = 0x20000,
+ WdsLogSourceCSI = 0x18000,
+ WdsLogSourceSXS = 0x28000,
+ WdsLogSourceCMI = 0x30000,
+ WdsLogSourceDEPLOY = 0x40000,
+ WdsLogSourceDU = 0x50000,
+ WdsLogSourceIBS = 0x60000,
+ WdsLogSourceIBSLIB = 0x64000,
+ WdsLogSourceDIAG = 0x70000,
+ WdsLogSourceDIAGER = 0x74000,
+ WdsLogSourceMIG = 0x80000,
+ WdsLogSourceHWARE = 0x84000,
+ WdsLogSourceMIGUI = 0x88000,
+ WdsLogSourceUI = 0xA0000,
+ WdsLogSourceCONX = 0xA4000,
+ WdsLogSourceMOUPG = 0xA8000,
+ WdsLogSourceWDS = 0xB0000,
+ WdsLogSourceDISM = 0xB8000,
+ WdsLogSourcePANTHR = 0x90000,
+ WdsLogSourceWINPE = 0xC0000,
+ WdsLogSourceSP = 0xC8000,
+ WdsLogSourceLIB = 0xD0000,
+ WdsLogSourceTOOL = 0xE0000
+} WdsLogSource;
+
LPVOID CurrentIP(void);
#endif /* __WDSCORE_INTERNAL_H */
--
2.35.1
More information about the wine-devel
mailing list