win32u: Introduce NtUserSendDriverMessage.

And use it in display drivers.
This commit is contained in:
Jacek Caban 2022-09-17 18:52:24 +02:00 committed by Alexandre Julliard
parent 5e0acc095d
commit 4467589a4a
4 changed files with 11 additions and 6 deletions

View file

@ -3209,6 +3209,10 @@ LRESULT WINAPI NtUserMessageCall( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lpa
else RtlSetLastWin32Error( ERROR_MESSAGE_SYNC_ONLY );
return FALSE;
case NtUserSendDriverMessage:
/* used by driver to send packed messages */
return send_message( hwnd, msg, wparam, lparam );
case NtUserSpyEnter:
spy_enter_message( ansi, hwnd, msg, wparam, lparam );
return 0;

View file

@ -289,7 +289,7 @@ extern NTSTATUS macdrv_client_func(enum macdrv_client_funcs func, const void *pa
static inline LRESULT send_message(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
{
return NtUserMessageCall(hwnd, msg, wparam, lparam, NULL, NtUserSendMessage, FALSE);
return NtUserMessageCall(hwnd, msg, wparam, lparam, NULL, NtUserSendDriverMessage, FALSE);
}
static inline LRESULT send_message_timeout(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam,

View file

@ -861,7 +861,7 @@ static inline UINT get_palette_entries( HPALETTE palette, UINT start, UINT count
static inline LRESULT send_message( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam )
{
return NtUserMessageCall( hwnd, msg, wparam, lparam, NULL, NtUserSendMessage, FALSE );
return NtUserMessageCall( hwnd, msg, wparam, lparam, NULL, NtUserSendDriverMessage, FALSE );
}
static inline LRESULT send_message_timeout( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam,

View file

@ -297,10 +297,11 @@ enum
/* Wine-specific exports */
NtUserClipboardWindowProc = 0x0300,
NtUserGetDispatchParams = 0x3001,
NtUserSpyGetMsgName = 0x3002,
NtUserSpyEnter = 0x0303,
NtUserSpyExit = 0x0304,
NtUserWinProcResult = 0x0305,
NtUserSendDriverMessage = 0x3002,
NtUserSpyGetMsgName = 0x3003,
NtUserSpyEnter = 0x0304,
NtUserSpyExit = 0x0305,
NtUserWinProcResult = 0x0306,
};
/* NtUserThunkedMenuItemInfo codes */