shlwapi: Forward ShellMessageBoxWrapW to shell32.ShellMessageBoxW
Dmitry Timoshkov
dmitry at codeweavers.com
Fri Aug 31 01:47:39 CDT 2007
Hello,
MSDN documents this on the "SHLWAPI Wrapper Functions" page.
Changelog:
shlwapi: Forward ShellMessageBoxWrapW to shell32.ShellMessageBoxW.
---
dlls/shell32/shell32.spec | 4 ++--
dlls/shlwapi/ordinal.c | 29 +++++++++++------------------
dlls/shlwapi/shlwapi.spec | 2 +-
3 files changed, 14 insertions(+), 21 deletions(-)
diff --git a/dlls/shell32/shell32.spec b/dlls/shell32/shell32.spec
index 5d47e3d..9beb6d3 100644
--- a/dlls/shell32/shell32.spec
+++ b/dlls/shell32/shell32.spec
@@ -170,8 +170,8 @@
179 stdcall -noname SHGetNewLinkInfoA(str str ptr long long)
180 stdcall -noname SHGetNewLinkInfoW(wstr wstr ptr long long)
181 stdcall -noname RegisterShellHook(long long)
- 182 varargs -noname ShellMessageBoxW(long long long str long)
- 183 varargs -noname ShellMessageBoxA(long long long str long)
+ 182 varargs -noname ShellMessageBoxW(long long wstr wstr long)
+ 183 varargs -noname ShellMessageBoxA(long long str str long)
184 stdcall -noname ArrangeWindows(long long long long long)
185 stub SHHandleDiskFull
186 stdcall -noname ILGetDisplayNameEx(ptr ptr ptr long)
diff --git a/dlls/shlwapi/ordinal.c b/dlls/shlwapi/ordinal.c
index 6ebabfa..eb5013b 100644
--- a/dlls/shlwapi/ordinal.c
+++ b/dlls/shlwapi/ordinal.c
@@ -4297,26 +4297,19 @@ DWORD WINAPI GetUIVersion(void)
/***********************************************************************
* ShellMessageBoxWrapW [SHLWAPI.388]
*
- * loads a string resource for a module, displays the string in a
- * message box and writes it into the logfile
- *
- * PARAMS
- * mod [I] the module containing the string resource
- * unknown1 [I] FIXME
- * uId [I] the id of the string resource
- * title [I] the title of the message box
- * unknown2 [I] FIXME
- * filename [I] name of the logfile
- *
- * RETURNS
- * FIXME
+ * See ShellMessageBoxW.
*/
-BOOL WINAPI ShellMessageBoxWrapW(HMODULE mod, DWORD unknown1, UINT uId,
- LPCWSTR title, DWORD unknown2, LPCWSTR filename)
+INT WINAPIV ShellMessageBoxWrapW(HINSTANCE hInstance, HWND hWnd, LPCWSTR lpText,
+ LPCWSTR lpCaption, UINT uType, ...)
{
- FIXME("%p %x %d %s %x %s\n",
- mod, unknown1, uId, debugstr_w(title), unknown2, debugstr_w(filename));
- return TRUE;
+ va_list args;
+ INT ret;
+
+ va_start(args, uType);
+ ret = ShellMessageBoxW(hInstance, hWnd, lpText, lpCaption, uType, args);
+ va_end(args);
+
+ return ret;
}
HRESULT WINAPI IUnknown_QueryServiceExec(IUnknown *unk, REFIID service, REFIID clsid,
diff --git a/dlls/shlwapi/shlwapi.spec b/dlls/shlwapi/shlwapi.spec
index bca51ee..3a920d0 100644
--- a/dlls/shlwapi/shlwapi.spec
+++ b/dlls/shlwapi/shlwapi.spec
@@ -385,7 +385,7 @@
385 stub -noname SHLoadRawAccelerators
386 stub -noname SHQueryRawAccelerator
387 stub -noname SHQueryRawAcceleratorMsg
-388 stdcall -noname ShellMessageBoxWrapW(ptr long long wstr long wstr)
+388 varargs -noname ShellMessageBoxWrapW(long long wstr wstr long)
389 stdcall -noname GetSaveFileNameWrapW(ptr)
390 stdcall -noname WNetRestoreConnectionWrapW(long wstr)
391 stdcall -noname WNetGetLastErrorWrapW(ptr ptr long ptr long)
--
1.5.2.5
More information about the wine-patches
mailing list