mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:43:31 +00:00
Implemented BroadcastSystemMessageW.
This commit is contained in:
parent
07c649bf1b
commit
020f8a4c82
2 changed files with 28 additions and 3 deletions
|
@ -12,7 +12,7 @@
|
|||
@ stdcall BringWindowToTop(long)
|
||||
@ stdcall BroadcastSystemMessage(long ptr long long long)
|
||||
@ stdcall BroadcastSystemMessageA(long ptr long long long) BroadcastSystemMessage
|
||||
@ stub BroadcastSystemMessageW
|
||||
@ stdcall BroadcastSystemMessageW(long ptr long long long)
|
||||
@ stdcall CalcChildScroll(long long)
|
||||
@ stdcall CallMsgFilter(ptr long) CallMsgFilterA
|
||||
@ stdcall CallMsgFilterA(ptr long)
|
||||
|
|
|
@ -723,13 +723,15 @@ BOOL WINAPI TranslateMessage( const MSG *msg )
|
|||
{
|
||||
case 1:
|
||||
message = (msg->message == WM_KEYDOWN) ? WM_CHAR : WM_SYSCHAR;
|
||||
TRACE_(key)("1 -> PostMessage(%s)\n", SPY_GetMsgName(message, msg->hwnd));
|
||||
TRACE_(key)("1 -> PostMessageW(%p,%s,%04x,%08lx)\n",
|
||||
msg->hwnd, SPY_GetMsgName(message, msg->hwnd), wp[0], msg->lParam);
|
||||
PostMessageW( msg->hwnd, message, wp[0], msg->lParam );
|
||||
break;
|
||||
|
||||
case -1:
|
||||
message = (msg->message == WM_KEYDOWN) ? WM_DEADCHAR : WM_SYSDEADCHAR;
|
||||
TRACE_(key)("-1 -> PostMessage(%s)\n", SPY_GetMsgName(message, msg->hwnd));
|
||||
TRACE_(key)("-1 -> PostMessageW(%p,%s,%04x,%08lx)\n",
|
||||
msg->hwnd, SPY_GetMsgName(message, msg->hwnd), wp[0], msg->lParam);
|
||||
PostMessageW( msg->hwnd, message, wp[0], msg->lParam );
|
||||
return TRUE;
|
||||
}
|
||||
|
@ -947,3 +949,26 @@ LONG WINAPI BroadcastSystemMessage(
|
|||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
* BroadcastSystemMessageW (USER32.@)
|
||||
*/
|
||||
LONG WINAPI BroadcastSystemMessageW(
|
||||
DWORD dwFlags,LPDWORD recipients,UINT uMessage,WPARAM wParam,
|
||||
LPARAM lParam )
|
||||
{
|
||||
if ((*recipients & BSM_APPLICATIONS)||
|
||||
(*recipients == BSM_ALLCOMPONENTS))
|
||||
{
|
||||
FIXME("(%08lx,%08lx,%08x,%08x,%08lx): semi-stub!\n",
|
||||
dwFlags,*recipients,uMessage,wParam,lParam);
|
||||
PostMessageW(HWND_BROADCAST,uMessage,wParam,lParam);
|
||||
return 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
FIXME("(%08lx,%08lx,%08x,%08x,%08lx): stub!\n",
|
||||
dwFlags,*recipients,uMessage,wParam,lParam);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue