From: Austin English Subject: [PATCH 2/3] user32: add CloseTouchInputHandle/GetTouchInputInfo stubs Message-Id: <20170807190409.32527-2-austinenglish@gmail.com> Date: Mon, 7 Aug 2017 14:04:08 -0500 In-Reply-To: <20170807190409.32527-1-austinenglish@gmail.com> References: <20170807190409.32527-1-austinenglish@gmail.com> Signed-off-by: Austin English --- dlls/user32/user32.spec | 2 ++ dlls/user32/win.c | 20 ++++++++++++++++++++ include/winuser.h | 19 +++++++++++++++++++ 3 files changed, 41 insertions(+) diff --git a/dlls/user32/user32.spec b/dlls/user32/user32.spec index e5ab049e7f..668a4a5ea3 100644 --- a/dlls/user32/user32.spec +++ b/dlls/user32/user32.spec @@ -73,6 +73,7 @@ @ stdcall ClipCursor(ptr) @ stdcall CloseClipboard() @ stdcall CloseDesktop(long) +@ stdcall CloseTouchInputHandle(long) @ stdcall CloseWindow(long) @ stdcall CloseWindowStation(long) @ stdcall CopyAcceleratorTableA(long ptr long) @@ -375,6 +376,7 @@ @ stdcall GetThreadDesktop(long) @ stdcall GetTitleBarInfo(long ptr) @ stdcall GetTopWindow(long) +@ stdcall GetTouchInputInfo(long long ptr long) @ stdcall GetUpdateRect(long ptr long) @ stdcall GetUpdateRgn(long long long) @ stdcall GetUpdatedClipboardFormats(ptr long ptr) diff --git a/dlls/user32/win.c b/dlls/user32/win.c index 03d9ece269..ffb670cd1d 100644 --- a/dlls/user32/win.c +++ b/dlls/user32/win.c @@ -3996,3 +3996,23 @@ BOOL WINAPI UnregisterTouchWindow(HWND hwnd) SetLastError(ERROR_CALL_NOT_IMPLEMENTED); return FALSE; } + +/***************************************************************************** + * CloseTouchInputHandle (USER32.@) + */ +BOOL WINAPI CloseTouchInputHandle(HTOUCHINPUT handle) +{ + FIXME("(%p): stub\n", handle); + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + return FALSE; +} + +/***************************************************************************** + * GetTouchInputInfo (USER32.@) + */ +BOOL WINAPI GetTouchInputInfo(HTOUCHINPUT handle, UINT count, TOUCHINPUT *ptr, int size) +{ + FIXME("(%p %u %p %u): stub\n", handle, count, ptr, size); + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + return FALSE; +} diff --git a/include/winuser.h b/include/winuser.h index 6ef4c7729b..e5b81d5235 100644 --- a/include/winuser.h +++ b/include/winuser.h @@ -3304,6 +3304,23 @@ typedef enum ORIENTATION_PREFERENCE { ORIENTATION_PREFERENCE_PORTRAIT_FLIPPED = 0x8 } ORIENTATION_PREFERENCE; +/* Touch input definitions */ +DECLARE_HANDLE(HTOUCHINPUT); + +typedef struct tagTOUCHINPUT { + LONG x; + LONG y; + HANDLE hSource; + DWORD dwID; + DWORD dwFlags; + DWORD dwMask; + DWORD dwTime; + ULONG_PTR dwExtraInfo; + DWORD cxContact; + DWORD cyContact; +} TOUCHINPUT, *PTOUCHINPUT; +typedef TOUCHINPUT const * PCTOUCHINPUT; + #if defined(_WINGDI_) && !defined(NOGDI) WINUSERAPI LONG WINAPI ChangeDisplaySettingsA(LPDEVMODEA,DWORD); WINUSERAPI LONG WINAPI ChangeDisplaySettingsW(LPDEVMODEW,DWORD); @@ -3422,6 +3439,7 @@ WINUSERAPI BOOL WINAPI ClientToScreen(HWND,LPPOINT); WINUSERAPI BOOL WINAPI ClipCursor(const RECT*); WINUSERAPI BOOL WINAPI CloseClipboard(void); WINUSERAPI BOOL WINAPI CloseDesktop(HDESK); +WINUSERAPI BOOL WINAPI CloseTouchInputHandle(HTOUCHINPUT); WINUSERAPI BOOL WINAPI CloseWindow(HWND); WINUSERAPI BOOL WINAPI CloseWindowStation(HWINSTA); WINUSERAPI INT WINAPI CopyAcceleratorTableA(HACCEL,LPACCEL,INT); @@ -3724,6 +3742,7 @@ WINUSERAPI DWORD WINAPI GetTabbedTextExtentW(HDC,LPCWSTR,INT,INT,const INT WINUSERAPI BOOL WINAPI GetTitleBarInfo(HWND,PTITLEBARINFO); WINUSERAPI HDESK WINAPI GetThreadDesktop(DWORD); WINUSERAPI HWND WINAPI GetTopWindow(HWND); +WINUSERAPI BOOL WINAPI GetTouchInputInfo(HTOUCHINPUT,UINT,TOUCHINPUT*,int); WINUSERAPI BOOL WINAPI GetUpdateRect(HWND,LPRECT,BOOL); WINUSERAPI INT WINAPI GetUpdateRgn(HWND,HRGN,BOOL); WINUSERAPI BOOL WINAPI GetUpdatedClipboardFormats(UINT*,UINT,UINT*); -- 2.13.0