Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
a23c1279
Commit
a23c1279
authored
Jul 10, 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 NtUserCallHwnd and NtUserCallHwndParam.
parent
47dd8a6a
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
24 additions
and
18 deletions
+24
-18
gdiobj.c
dlls/win32u/gdiobj.c
+0
-2
syscall.c
dlls/win32u/syscall.c
+2
-0
win32u.spec
dlls/win32u/win32u.spec
+2
-2
win32u_private.h
dlls/win32u/win32u_private.h
+0
-2
wrappers.c
dlls/win32u/wrappers.c
+0
-12
syscall.h
dlls/wow64win/syscall.h
+2
-0
user.c
dlls/wow64win/user.c
+18
-0
No files found.
dlls/win32u/gdiobj.c
View file @
a23c1279
...
...
@@ -1136,8 +1136,6 @@ static struct unix_funcs unix_funcs =
NtGdiUnrealizeObject
,
NtGdiUpdateColors
,
NtGdiWidenPath
,
NtUserCallHwnd
,
NtUserCallHwndParam
,
NtUserCallNextHookEx
,
NtUserCallNoParam
,
NtUserCallOneParam
,
...
...
dlls/win32u/syscall.c
View file @
a23c1279
...
...
@@ -106,6 +106,8 @@ static void * const syscalls[] =
NtUserAttachThreadInput
,
NtUserBeginPaint
,
NtUserBuildHwndList
,
NtUserCallHwnd
,
NtUserCallHwndParam
,
NtUserCallMsgFilter
,
NtUserCheckMenuItem
,
NtUserChildWindowFromPointEx
,
...
...
dlls/win32u/win32u.spec
View file @
a23c1279
...
...
@@ -768,11 +768,11 @@
@ stub NtUserBuildPropList
@ stub NtUserCalcMenuBar
@ stub NtUserCalculatePopupWindowPosition
@ stdcall NtUserCallHwnd(long long)
@ stdcall
-syscall
NtUserCallHwnd(long long)
@ stub NtUserCallHwndLock
@ stub NtUserCallHwndLockSafe
@ stub NtUserCallHwndOpt
@ stdcall NtUserCallHwndParam(long ptr long)
@ stdcall
-syscall
NtUserCallHwndParam(long ptr long)
@ stub NtUserCallHwndParamLock
@ stub NtUserCallHwndParamLockSafe
@ stub NtUserCallHwndSafe
...
...
dlls/win32u/win32u_private.h
View file @
a23c1279
...
...
@@ -186,8 +186,6 @@ struct unix_funcs
BOOL
(
WINAPI
*
pNtGdiUnrealizeObject
)(
HGDIOBJ
obj
);
BOOL
(
WINAPI
*
pNtGdiUpdateColors
)(
HDC
hdc
);
BOOL
(
WINAPI
*
pNtGdiWidenPath
)(
HDC
hdc
);
ULONG_PTR
(
WINAPI
*
pNtUserCallHwnd
)(
HWND
hwnd
,
DWORD
code
);
ULONG_PTR
(
WINAPI
*
pNtUserCallHwndParam
)(
HWND
hwnd
,
DWORD_PTR
param
,
DWORD
code
);
LRESULT
(
WINAPI
*
pNtUserCallNextHookEx
)(
HHOOK
hhook
,
INT
code
,
WPARAM
wparam
,
LPARAM
lparam
);
ULONG_PTR
(
WINAPI
*
pNtUserCallNoParam
)(
ULONG
code
);
ULONG_PTR
(
WINAPI
*
pNtUserCallOneParam
)(
ULONG_PTR
arg
,
ULONG
code
);
...
...
dlls/win32u/wrappers.c
View file @
a23c1279
...
...
@@ -749,18 +749,6 @@ ULONG_PTR WINAPI NtUserCallTwoParam( ULONG_PTR arg1, ULONG_PTR arg2, ULONG code
return
unix_funcs
->
pNtUserCallTwoParam
(
arg1
,
arg2
,
code
);
}
ULONG_PTR
WINAPI
NtUserCallHwnd
(
HWND
hwnd
,
DWORD
code
)
{
if
(
!
unix_funcs
)
return
0
;
return
unix_funcs
->
pNtUserCallHwnd
(
hwnd
,
code
);
}
ULONG_PTR
WINAPI
NtUserCallHwndParam
(
HWND
hwnd
,
DWORD_PTR
param
,
DWORD
code
)
{
if
(
!
unix_funcs
)
return
0
;
return
unix_funcs
->
pNtUserCallHwndParam
(
hwnd
,
param
,
code
);
}
BOOL
WINAPI
NtUserCloseClipboard
(
void
)
{
if
(
!
unix_funcs
)
return
FALSE
;
...
...
dlls/wow64win/syscall.h
View file @
a23c1279
...
...
@@ -93,6 +93,8 @@
SYSCALL_ENTRY( NtUserAttachThreadInput ) \
SYSCALL_ENTRY( NtUserBeginPaint ) \
SYSCALL_ENTRY( NtUserBuildHwndList ) \
SYSCALL_ENTRY( NtUserCallHwnd ) \
SYSCALL_ENTRY( NtUserCallHwndParam ) \
SYSCALL_ENTRY( NtUserCallMsgFilter ) \
SYSCALL_ENTRY( NtUserCheckMenuItem ) \
SYSCALL_ENTRY( NtUserChildWindowFromPointEx ) \
...
...
dlls/wow64win/user.c
View file @
a23c1279
...
...
@@ -220,6 +220,24 @@ NTSTATUS WINAPI wow64_NtUserBuildHwndList( UINT *args )
return
status
;
}
NTSTATUS
WINAPI
wow64_NtUserCallHwnd
(
UINT
*
args
)
{
HWND
hwnd
=
get_handle
(
&
args
);
DWORD
code
=
get_ulong
(
&
args
);
return
NtUserCallHwnd
(
hwnd
,
code
);
}
NTSTATUS
WINAPI
wow64_NtUserCallHwndParam
(
UINT
*
args
)
{
HWND
hwnd
=
get_handle
(
&
args
);
DWORD_PTR
param
=
get_ulong
(
&
args
);
DWORD
code
=
get_ulong
(
&
args
);
FIXME
(
"%p %Ix %lu
\n
"
,
hwnd
,
param
,
code
);
return
0
;
}
NTSTATUS
WINAPI
wow64_NtUserCallMsgFilter
(
UINT
*
args
)
{
MSG32
*
msg32
=
get_ptr
(
&
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