Commit 5501f127 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

Very partial implementation of BroadcastSystemMessageA.

parent b6e3f498
...@@ -1539,6 +1539,25 @@ typedef struct ...@@ -1539,6 +1539,25 @@ typedef struct
#define GCW_ATOM (-32) #define GCW_ATOM (-32)
#define GCL_HICONSM (-34) #define GCL_HICONSM (-34)
/* BroadcastSystemMessage flags */
#define BSM_ALLCOMPONENTS 0x00000000
#define BSM_VXDS 0x00000001
#define BSM_NETDRIVER 0x00000002
#define BSM_INSTALLABLEDRIVERS 0x00000004
#define BSM_APPLICATIONS 0x00000008
#define BSF_QUERY 0x00000001
#define BSF_IGNORECURRENTTASK 0x00000002
#define BSF_FLUSHDISK 0x00000004
#define BSF_NOHANG 0x00000008
#define BSF_POSTMESSAGE 0x00000010
#define BSF_FORCEIFHUNG 0x00000020
#define BSF_NOTIMEOUTIFNOTHUNG 0x00000040
#define BSF_ALLOWSFW 0x00000080
#define BSF_SENDNOTIFYMESSAGE 0x00000100
#define BSF_RETURNHDESK 0x00000200
#define BSF_LUID 0x00000400
/***** Window hooks *****/ /***** Window hooks *****/
......
...@@ -1201,10 +1201,20 @@ WORD WINAPI RegisterWindowMessageW( LPCWSTR str ) ...@@ -1201,10 +1201,20 @@ WORD WINAPI RegisterWindowMessageW( LPCWSTR str )
*/ */
LONG WINAPI BroadcastSystemMessage( LONG WINAPI BroadcastSystemMessage(
DWORD dwFlags,LPDWORD recipients,UINT uMessage,WPARAM wParam, DWORD dwFlags,LPDWORD recipients,UINT uMessage,WPARAM wParam,
LPARAM lParam LPARAM lParam )
) { {
if ((*recipients & BSM_APPLICATIONS)||
(*recipients == BSM_ALLCOMPONENTS))
{
FIXME("(%08lx,%08lx,%08x,%08x,%08lx): semi-stub!\n",
dwFlags,*recipients,uMessage,wParam,lParam);
PostMessageA(HWND_BROADCAST,uMessage,wParam,lParam);
return 1;
}
else
{
FIXME("(%08lx,%08lx,%08x,%08x,%08lx): stub!\n", FIXME("(%08lx,%08lx,%08x,%08x,%08lx): stub!\n",
dwFlags,*recipients,uMessage,wParam,lParam dwFlags,*recipients,uMessage,wParam,lParam);
); return -1;
return 0; }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment