From 771123afb696eecb50d3f0253d433811311130d8 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 5 Nov 2018 12:58:33 +0100 Subject: [PATCH] user32: Add stub for GetCurrentInputMessageSource(). Signed-off-by: Alexandre Julliard --- ...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 3a043dc9c29..93ecc1b3e41 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 1554fbf666f..9bfeb1689be 100644 --- a/dlls/user32/message.c +++ b/dlls/user32/message.c @@ -4131,6 +4131,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 a340e02adce..d5b8597d8e4 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 d09f8cdadc0..693965a03e7 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*);