Commit 806d8552 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

win32u: Introduce NtUserClipboardWindowProc.

parent b4bf1fb7
...@@ -1099,6 +1099,11 @@ static BOOL loaderdrv_ClipCursor( const RECT *clip ) ...@@ -1099,6 +1099,11 @@ static BOOL loaderdrv_ClipCursor( const RECT *clip )
return load_driver()->pClipCursor( clip ); return load_driver()->pClipCursor( clip );
} }
static LRESULT nulldrv_ClipboardWindowProc( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam )
{
return 0;
}
static void loaderdrv_UpdateClipboard(void) static void loaderdrv_UpdateClipboard(void)
{ {
load_driver()->pUpdateClipboard(); load_driver()->pUpdateClipboard();
...@@ -1172,6 +1177,7 @@ static const struct user_driver_funcs lazy_load_driver = ...@@ -1172,6 +1177,7 @@ static const struct user_driver_funcs lazy_load_driver =
loaderdrv_SetCursorPos, loaderdrv_SetCursorPos,
loaderdrv_ClipCursor, loaderdrv_ClipCursor,
/* clipboard functions */ /* clipboard functions */
nulldrv_ClipboardWindowProc,
loaderdrv_UpdateClipboard, loaderdrv_UpdateClipboard,
/* display modes */ /* display modes */
loaderdrv_ChangeDisplaySettingsEx, loaderdrv_ChangeDisplaySettingsEx,
...@@ -1247,6 +1253,7 @@ void CDECL __wine_set_user_driver( const struct user_driver_funcs *funcs, UINT v ...@@ -1247,6 +1253,7 @@ void CDECL __wine_set_user_driver( const struct user_driver_funcs *funcs, UINT v
SET_USER_FUNC(GetCursorPos); SET_USER_FUNC(GetCursorPos);
SET_USER_FUNC(SetCursorPos); SET_USER_FUNC(SetCursorPos);
SET_USER_FUNC(ClipCursor); SET_USER_FUNC(ClipCursor);
SET_USER_FUNC(ClipboardWindowProc);
SET_USER_FUNC(UpdateClipboard); SET_USER_FUNC(UpdateClipboard);
SET_USER_FUNC(ChangeDisplaySettingsEx); SET_USER_FUNC(ChangeDisplaySettingsEx);
SET_USER_FUNC(EnumDisplaySettingsEx); SET_USER_FUNC(EnumDisplaySettingsEx);
......
...@@ -2911,6 +2911,8 @@ LRESULT WINAPI NtUserMessageCall( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lpa ...@@ -2911,6 +2911,8 @@ LRESULT WINAPI NtUserMessageCall( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lpa
return send_notify_message( hwnd, msg, wparam, lparam, ansi ); return send_notify_message( hwnd, msg, wparam, lparam, ansi );
case NtUserSendMessageCallback: case NtUserSendMessageCallback:
return send_message_callback( hwnd, msg, wparam, lparam, (void *)result_info, ansi ); return send_message_callback( hwnd, msg, wparam, lparam, (void *)result_info, ansi );
case NtUserClipboardWindowProc:
return user_driver->pClipboardWindowProc( hwnd, msg, wparam, lparam );
case NtUserSpyEnter: case NtUserSpyEnter:
spy_enter_message( ansi, hwnd, msg, wparam, lparam ); spy_enter_message( ansi, hwnd, msg, wparam, lparam );
return 0; return 0;
......
...@@ -189,8 +189,9 @@ enum ...@@ -189,8 +189,9 @@ enum
NtUserSendNotifyMessage = 0x02b7, NtUserSendNotifyMessage = 0x02b7,
NtUserSendMessageCallback = 0x02b8, NtUserSendMessageCallback = 0x02b8,
/* Wine-specific exports */ /* Wine-specific exports */
NtUserSpyEnter = 0x0300, NtUserClipboardWindowProc = 0x0300,
NtUserSpyExit = 0x0301, NtUserSpyEnter = 0x0301,
NtUserSpyExit = 0x0302,
}; };
/* NtUserThunkedMenuItemInfo codes */ /* NtUserThunkedMenuItemInfo codes */
......
...@@ -291,6 +291,7 @@ struct user_driver_funcs ...@@ -291,6 +291,7 @@ struct user_driver_funcs
BOOL (*pSetCursorPos)(INT,INT); BOOL (*pSetCursorPos)(INT,INT);
BOOL (*pClipCursor)(LPCRECT); BOOL (*pClipCursor)(LPCRECT);
/* clipboard functions */ /* clipboard functions */
LRESULT (*pClipboardWindowProc)(HWND,UINT,WPARAM,LPARAM);
void (*pUpdateClipboard)(void); void (*pUpdateClipboard)(void);
/* display modes */ /* display modes */
LONG (*pChangeDisplaySettingsEx)(LPCWSTR,LPDEVMODEW,HWND,DWORD,LPVOID); LONG (*pChangeDisplaySettingsEx)(LPCWSTR,LPDEVMODEW,HWND,DWORD,LPVOID);
......
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