Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
0d6d8f38
Commit
0d6d8f38
authored
Jul 09, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 22, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Use syscall interface for NtUserGetMessage.
parent
97f10736
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
16 additions
and
9 deletions
+16
-9
gdiobj.c
dlls/win32u/gdiobj.c
+0
-1
syscall.c
dlls/win32u/syscall.c
+1
-0
win32u.spec
dlls/win32u/win32u.spec
+1
-1
win32u_private.h
dlls/win32u/win32u_private.h
+0
-1
wrappers.c
dlls/win32u/wrappers.c
+0
-6
syscall.h
dlls/wow64win/syscall.h
+1
-0
user.c
dlls/wow64win/user.c
+13
-0
No files found.
dlls/win32u/gdiobj.c
View file @
0d6d8f38
...
...
@@ -1180,7 +1180,6 @@ static struct unix_funcs unix_funcs =
NtUserGetKeyNameText
,
NtUserGetKeyboardLayoutList
,
NtUserGetMenuBarInfo
,
NtUserGetMessage
,
NtUserGetPriorityClipboardFormat
,
NtUserGetQueueStatus
,
NtUserGetScrollBarInfo
,
...
...
dlls/win32u/syscall.c
View file @
0d6d8f38
...
...
@@ -143,6 +143,7 @@ static void * const syscalls[] =
NtUserGetKeyboardState
,
NtUserGetLayeredWindowAttributes
,
NtUserGetMenuItemRect
,
NtUserGetMessage
,
NtUserGetMouseMovePointsEx
,
NtUserGetObjectInformation
,
NtUserGetOpenClipboardWindow
,
...
...
dlls/win32u/win32u.spec
View file @
0d6d8f38
...
...
@@ -955,7 +955,7 @@
@ stdcall NtUserGetMenuBarInfo(long long long ptr)
@ stub NtUserGetMenuIndex
@ stdcall -syscall NtUserGetMenuItemRect(long long long ptr)
@ stdcall NtUserGetMessage(ptr long long long)
@ stdcall
-syscall
NtUserGetMessage(ptr long long long)
@ stdcall -syscall NtUserGetMouseMovePointsEx(long ptr ptr long long)
@ stdcall -syscall NtUserGetObjectInformation(long long long long ptr)
@ stub NtUserGetOemBitmapSize
...
...
dlls/win32u/win32u_private.h
View file @
0d6d8f38
...
...
@@ -244,7 +244,6 @@ struct unix_funcs
INT
(
WINAPI
*
pNtUserGetKeyNameText
)(
LONG
lparam
,
WCHAR
*
buffer
,
INT
size
);
UINT
(
WINAPI
*
pNtUserGetKeyboardLayoutList
)(
INT
size
,
HKL
*
layouts
);
BOOL
(
WINAPI
*
pNtUserGetMenuBarInfo
)(
HWND
hwnd
,
LONG
id
,
LONG
item
,
MENUBARINFO
*
info
);
BOOL
(
WINAPI
*
pNtUserGetMessage
)(
MSG
*
msg
,
HWND
hwnd
,
UINT
first
,
UINT
last
);
INT
(
WINAPI
*
pNtUserGetPriorityClipboardFormat
)(
UINT
*
list
,
INT
count
);
DWORD
(
WINAPI
*
pNtUserGetQueueStatus
)(
UINT
flags
);
BOOL
(
WINAPI
*
pNtUserGetScrollBarInfo
)(
HWND
hwnd
,
LONG
id
,
SCROLLBARINFO
*
info
);
...
...
dlls/win32u/wrappers.c
View file @
0d6d8f38
...
...
@@ -1000,12 +1000,6 @@ BOOL WINAPI NtUserGetMenuBarInfo( HWND hwnd, LONG id, LONG item, MENUBARINFO *in
return
unix_funcs
->
pNtUserGetMenuBarInfo
(
hwnd
,
id
,
item
,
info
);
}
BOOL
WINAPI
NtUserGetMessage
(
MSG
*
msg
,
HWND
hwnd
,
UINT
first
,
UINT
last
)
{
if
(
!
unix_funcs
)
return
FALSE
;
return
unix_funcs
->
pNtUserGetMessage
(
msg
,
hwnd
,
first
,
last
);
}
HMENU
WINAPI
NtUserGetSystemMenu
(
HWND
hwnd
,
BOOL
revert
)
{
if
(
!
unix_funcs
)
return
0
;
...
...
dlls/wow64win/syscall.h
View file @
0d6d8f38
...
...
@@ -130,6 +130,7 @@
SYSCALL_ENTRY( NtUserGetKeyboardState ) \
SYSCALL_ENTRY( NtUserGetLayeredWindowAttributes ) \
SYSCALL_ENTRY( NtUserGetMenuItemRect ) \
SYSCALL_ENTRY( NtUserGetMessage ) \
SYSCALL_ENTRY( NtUserGetMouseMovePointsEx ) \
SYSCALL_ENTRY( NtUserGetObjectInformation ) \
SYSCALL_ENTRY( NtUserGetOpenClipboardWindow ) \
...
...
dlls/wow64win/user.c
View file @
0d6d8f38
...
...
@@ -519,6 +519,19 @@ NTSTATUS WINAPI wow64_NtUserGetMenuItemRect( UINT *args )
return
NtUserGetMenuItemRect
(
hwnd
,
handle
,
item
,
rect
);
}
NTSTATUS
WINAPI
wow64_NtUserGetMessage
(
UINT
*
args
)
{
MSG32
*
msg32
=
get_ptr
(
&
args
);
HWND
hwnd
=
get_handle
(
&
args
);
UINT
first
=
get_ulong
(
&
args
);
UINT
last
=
get_ulong
(
&
args
);
MSG
msg
;
if
(
!
NtUserGetMessage
(
&
msg
,
hwnd
,
first
,
last
))
return
FALSE
;
msg_64to32
(
&
msg
,
msg32
);
return
TRUE
;
}
NTSTATUS
WINAPI
wow64_NtUserGetMouseMovePointsEx
(
UINT
*
args
)
{
UINT
size
=
get_ulong
(
&
args
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment