From 38bea949c02dd1116afc4c6d3df095490b803676 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Thu, 14 Apr 2022 14:11:43 +0200 Subject: [PATCH] win32u: Introduce NtUserGetMessagePos. Signed-off-by: Jacek Caban Signed-off-by: Huw Davies Signed-off-by: Alexandre Julliard --- dlls/win32u/sysparams.c | 3 +++ include/ntuser.h | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/dlls/win32u/sysparams.c b/dlls/win32u/sysparams.c index a760a2ca3a4..4d2455fe64e 100644 --- a/dlls/win32u/sysparams.c +++ b/dlls/win32u/sysparams.c @@ -4641,6 +4641,9 @@ ULONG_PTR WINAPI NtUserCallNoParam( ULONG code ) case NtUserCallNoParam_GetInputState: return get_input_state(); + case NtUserCallNoParam_GetMessagePos: + return get_user_thread_info()->GetMessagePosVal; + case NtUserCallNoParam_ReleaseCapture: return release_capture(); diff --git a/include/ntuser.h b/include/ntuser.h index 6fed7a836e0..5cf82043a2e 100644 --- a/include/ntuser.h +++ b/include/ntuser.h @@ -578,6 +578,7 @@ enum NtUserCallNoParam_CreateMenu, NtUserCallNoParam_GetDesktopWindow, NtUserCallNoParam_GetInputState, + NtUserCallNoParam_GetMessagePos, NtUserCallNoParam_ReleaseCapture, /* temporary exports */ NtUserExitingThread, @@ -600,6 +601,11 @@ static inline BOOL NtUserGetInputState(void) return NtUserCallNoParam( NtUserCallNoParam_GetInputState ); } +static inline DWORD NtUserGetMessagePos(void) +{ + return NtUserCallNoParam( NtUserCallNoParam_GetMessagePos ); +} + static inline BOOL NtUserReleaseCapture(void) { return NtUserCallNoParam( NtUserCallNoParam_ReleaseCapture );