Module: wine Branch: master Commit: 771123afb696eecb50d3f0253d433811311130d8 URL: https://source.winehq.org/git/wine.git/?a=commit;h=771123afb696eecb50d3f0253...
Author: Alexandre Julliard julliard@winehq.org Date: Mon Nov 5 12:58:33 2018 +0100
user32: Add stub for GetCurrentInputMessageSource().
Signed-off-by: Alexandre Julliard julliard@winehq.org
---
.../api-ms-win-rtcore-ntuser-wmpointer-l1-1-0.spec | 2 +- dlls/user32/message.c | 10 +++++++++ dlls/user32/user32.spec | 1 + include/winuser.h | 25 ++++++++++++++++++++++ 4 files changed, 37 insertions(+), 1 deletion(-)
diff --git a/dlls/api-ms-win-rtcore-ntuser-wmpointer-l1-1-0/api-ms-win-rtcore-ntuser-wmpointer-l1-1-0.spec b/dlls/api-ms-win-rtcore-ntuser-wmpointer-l1-1-0/api-ms-win-rtcore-ntuser-wmpointer-l1-1-0.spec index 3a043dc..93ecc1b 100644 --- a/dlls/api-ms-win-rtcore-ntuser-wmpointer-l1-1-0/api-ms-win-rtcore-ntuser-wmpointer-l1-1-0.spec +++ b/dlls/api-ms-win-rtcore-ntuser-wmpointer-l1-1-0/api-ms-win-rtcore-ntuser-wmpointer-l1-1-0.spec @@ -1,5 +1,5 @@ @ stdcall EnableMouseInPointer(long) user32.EnableMouseInPointer -@ stub GetCurrentInputMessageSource +@ stdcall GetCurrentInputMessageSource(ptr) user32.GetCurrentInputMessageSource @ stub GetPointerCursorId @ stub GetPointerDevice @ stub GetPointerDeviceProperties diff --git a/dlls/user32/message.c b/dlls/user32/message.c index 1554fbf..9bfeb16 100644 --- a/dlls/user32/message.c +++ b/dlls/user32/message.c @@ -4132,6 +4132,16 @@ LPARAM WINAPI SetMessageExtraInfo(LPARAM lParam)
/*********************************************************************** + * GetCurrentInputMessageSource (USER32.@) + */ +BOOL WINAPI GetCurrentInputMessageSource( INPUT_MESSAGE_SOURCE *source ) +{ + FIXME( "stub\n" ); + return FALSE; +} + + +/*********************************************************************** * WaitMessage (USER.112) Suspend thread pending messages * WaitMessage (USER32.@) Suspend thread pending messages * diff --git a/dlls/user32/user32.spec b/dlls/user32/user32.spec index a340e02..d5b8597 100644 --- a/dlls/user32/user32.spec +++ b/dlls/user32/user32.spec @@ -280,6 +280,7 @@ @ stdcall GetClipboardSequenceNumber () @ stdcall GetClipboardViewer() @ stdcall GetComboBoxInfo(long ptr) +@ stdcall GetCurrentInputMessageSource(ptr) @ stdcall GetCursor() @ stdcall GetCursorFrameInfo(long long long ptr ptr) @ stdcall GetCursorInfo(ptr) diff --git a/include/winuser.h b/include/winuser.h index d09f8cd..693965a 100644 --- a/include/winuser.h +++ b/include/winuser.h @@ -674,6 +674,30 @@ typedef struct tagGUITHREADINFO #define GUI_POPUPMENUMODE 0x00000010 #define GUI_16BITTASK 0x00000020
+typedef enum tagINPUT_MESSAGE_DEVICE_TYPE +{ + IMDT_UNAVAILABLE = 0x00, + IMDT_KEYBOARD = 0x01, + IMDT_MOUSE = 0x02, + IMDT_TOUCH = 0x04, + IMDT_PEN = 0x08, + IMDT_TOUCHPAD = 0x10, +} INPUT_MESSAGE_DEVICE_TYPE; + +typedef enum tagINPUT_MESSAGE_ORIGIN_ID +{ + IMO_UNAVAILABLE = 0x00, + IMO_HARDWARE = 0x01, + IMO_INJECTED = 0x02, + IMO_SYSTEM = 0x04, +} INPUT_MESSAGE_ORIGIN_ID; + +typedef struct tagINPUT_MESSAGE_SOURCE +{ + INPUT_MESSAGE_DEVICE_TYPE deviceType; + INPUT_MESSAGE_ORIGIN_ID originId; +} INPUT_MESSAGE_SOURCE; +
/***** Dialogs *****/
@@ -3718,6 +3742,7 @@ WINUSERAPI DWORD WINAPI GetClipboardSequenceNumber(VOID); WINUSERAPI HWND WINAPI GetClipboardViewer(void); WINUSERAPI BOOL WINAPI GetClipCursor(LPRECT); WINUSERAPI BOOL WINAPI GetComboBoxInfo(HWND,PCOMBOBOXINFO); +WINUSERAPI BOOL WINAPI GetCurrentInputMessageSource(INPUT_MESSAGE_SOURCE*); WINUSERAPI HCURSOR WINAPI GetCursor(void); WINUSERAPI BOOL WINAPI GetCursorInfo(PCURSORINFO); WINUSERAPI HCURSOR WINAPI GetCursorFrameInfo(HCURSOR,DWORD,DWORD,DWORD*,DWORD*);