Jacek Caban : win32u: Introduce NtUserGetMessagePos.
Alexandre Julliard
julliard at winehq.org
Thu Apr 14 16:50:34 CDT 2022
Module: wine
Branch: master
Commit: 38bea949c02dd1116afc4c6d3df095490b803676
URL: https://source.winehq.org/git/wine.git/?a=commit;h=38bea949c02dd1116afc4c6d3df095490b803676
Author: Jacek Caban <jacek at codeweavers.com>
Date: Thu Apr 14 14:11:43 2022 +0200
win32u: Introduce NtUserGetMessagePos.
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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 );
More information about the wine-cvs
mailing list