win32u: Introduce NtUserGetMessagePos.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2022-04-14 14:11:43 +02:00 committed by Alexandre Julliard
parent 0efb4bb928
commit 38bea949c0
2 changed files with 9 additions and 0 deletions

View File

@ -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();

View File

@ -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 );