Detlef Riekenberg : shlwapi: Implement SHSendMessageBroadcastA/W.

Alexandre Julliard julliard at winehq.org
Tue Oct 14 08:30:19 CDT 2008


Module: wine
Branch: master
Commit: 680b5df5cfa016634baa3c4afc847aa14d70cdfd
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=680b5df5cfa016634baa3c4afc847aa14d70cdfd

Author: Detlef Riekenberg <wine.dev at web.de>
Date:   Mon Oct 13 17:17:04 2008 +0200

shlwapi: Implement SHSendMessageBroadcastA/W.

---

 dlls/shlwapi/ordinal.c    |   24 ++++++++++++++++++++++++
 dlls/shlwapi/shlwapi.spec |    4 ++--
 2 files changed, 26 insertions(+), 2 deletions(-)

diff --git a/dlls/shlwapi/ordinal.c b/dlls/shlwapi/ordinal.c
index 6b1e33f..7b6ae22 100644
--- a/dlls/shlwapi/ordinal.c
+++ b/dlls/shlwapi/ordinal.c
@@ -3692,6 +3692,30 @@ DWORD WINAPI MLClearMLHInstance(DWORD x)
 }
 
 /*************************************************************************
+ * @ [SHLWAPI.432]
+ *
+ * See SHSendMessageBroadcastW
+ *
+ */
+DWORD WINAPI SHSendMessageBroadcastA(UINT uMsg, WPARAM wParam, LPARAM lParam)
+{
+    return SendMessageTimeoutA(HWND_BROADCAST, uMsg, wParam, lParam,
+                               SMTO_ABORTIFHUNG, 2000, NULL);
+}
+
+/*************************************************************************
+ * @ [SHLWAPI.433]
+ *
+ * A wrapper for sending Broadcast Messages to all top level Windows
+ *
+ */
+DWORD WINAPI SHSendMessageBroadcastW(UINT uMsg, WPARAM wParam, LPARAM lParam)
+{
+    return SendMessageTimeoutW(HWND_BROADCAST, uMsg, wParam, lParam,
+                               SMTO_ABORTIFHUNG, 2000, NULL);
+}
+
+/*************************************************************************
  *      @	[SHLWAPI.436]
  *
  * Convert an Unicode string CLSID into a CLSID.
diff --git a/dlls/shlwapi/shlwapi.spec b/dlls/shlwapi/shlwapi.spec
index f86bd7c..0b1cd4c 100644
--- a/dlls/shlwapi/shlwapi.spec
+++ b/dlls/shlwapi/shlwapi.spec
@@ -429,8 +429,8 @@
 429 stdcall -noname MLIsMLHInstance(long)
 430 stdcall -noname MLSetMLHInstance(long long)
 431 stdcall -noname MLClearMLHInstance(long)
-432 stub -noname SHSendMessageBroadcastA
-433 stub -noname SHSendMessageBroadcastW
+432 stdcall -noname SHSendMessageBroadcastA(long long long)
+433 stdcall -noname SHSendMessageBroadcastW(long long long)
 434 stdcall -noname SendMessageTimeoutWrapW(long long long long long long ptr) user32.SendMessageTimeoutW
 435 stdcall -noname CLSIDFromProgIDWrap(wstr ptr) ole32.CLSIDFromProgID
 436 stdcall -noname CLSIDFromStringWrap(wstr ptr)




More information about the wine-cvs mailing list