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
ca630fb6
Commit
ca630fb6
authored
Jul 10, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 22, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Use syscall interface for NtUserCall* functions.
parent
a23c1279
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
48 additions
and
36 deletions
+48
-36
gdiobj.c
dlls/win32u/gdiobj.c
+0
-4
syscall.c
dlls/win32u/syscall.c
+4
-0
win32u.spec
dlls/win32u/win32u.spec
+4
-4
win32u_private.h
dlls/win32u/win32u_private.h
+0
-4
wrappers.c
dlls/win32u/wrappers.c
+0
-24
syscall.h
dlls/wow64win/syscall.h
+4
-0
user.c
dlls/wow64win/user.c
+36
-0
No files found.
dlls/win32u/gdiobj.c
View file @
ca630fb6
...
...
@@ -1136,10 +1136,6 @@ static struct unix_funcs unix_funcs =
NtGdiUnrealizeObject
,
NtGdiUpdateColors
,
NtGdiWidenPath
,
NtUserCallNextHookEx
,
NtUserCallNoParam
,
NtUserCallOneParam
,
NtUserCallTwoParam
,
NtUserChangeClipboardChain
,
NtUserChangeDisplaySettings
,
NtUserClipCursor
,
...
...
dlls/win32u/syscall.c
View file @
ca630fb6
...
...
@@ -109,6 +109,10 @@ static void * const syscalls[] =
NtUserCallHwnd
,
NtUserCallHwndParam
,
NtUserCallMsgFilter
,
NtUserCallNextHookEx
,
NtUserCallNoParam
,
NtUserCallOneParam
,
NtUserCallTwoParam
,
NtUserCheckMenuItem
,
NtUserChildWindowFromPointEx
,
NtUserCloseDesktop
,
...
...
dlls/win32u/win32u.spec
View file @
ca630fb6
...
...
@@ -777,10 +777,10 @@
@ stub NtUserCallHwndParamLockSafe
@ stub NtUserCallHwndSafe
@ stdcall -syscall NtUserCallMsgFilter(ptr long)
@ stdcall NtUserCallNextHookEx(long long long long)
@ stdcall NtUserCallNoParam(long)
@ stdcall NtUserCallOneParam(long long)
@ stdcall NtUserCallTwoParam(long long long)
@ stdcall
-syscall
NtUserCallNextHookEx(long long long long)
@ stdcall
-syscall
NtUserCallNoParam(long)
@ stdcall
-syscall
NtUserCallOneParam(long long)
@ stdcall
-syscall
NtUserCallTwoParam(long long long)
@ stub NtUserCanBrokerForceForeground
@ stdcall NtUserChangeClipboardChain(long long)
@ stdcall NtUserChangeDisplaySettings(ptr ptr long long ptr)
...
...
dlls/win32u/win32u_private.h
View file @
ca630fb6
...
...
@@ -186,10 +186,6 @@ struct unix_funcs
BOOL
(
WINAPI
*
pNtGdiUnrealizeObject
)(
HGDIOBJ
obj
);
BOOL
(
WINAPI
*
pNtGdiUpdateColors
)(
HDC
hdc
);
BOOL
(
WINAPI
*
pNtGdiWidenPath
)(
HDC
hdc
);
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
);
ULONG_PTR
(
WINAPI
*
pNtUserCallTwoParam
)(
ULONG_PTR
arg1
,
ULONG_PTR
arg2
,
ULONG
code
);
BOOL
(
WINAPI
*
pNtUserChangeClipboardChain
)(
HWND
hwnd
,
HWND
next
);
LONG
(
WINAPI
*
pNtUserChangeDisplaySettings
)(
UNICODE_STRING
*
devname
,
DEVMODEW
*
devmode
,
HWND
hwnd
,
DWORD
flags
,
void
*
lparam
);
...
...
dlls/win32u/wrappers.c
View file @
ca630fb6
...
...
@@ -725,30 +725,6 @@ NTSTATUS WINAPI NtGdiDdDDISetVidPnSourceOwner( const D3DKMT_SETVIDPNSOURCEOWNER
return
unix_funcs
->
pNtGdiDdDDISetVidPnSourceOwner
(
desc
);
}
LRESULT
WINAPI
NtUserCallNextHookEx
(
HHOOK
hhook
,
INT
code
,
WPARAM
wparam
,
LPARAM
lparam
)
{
if
(
!
unix_funcs
)
return
0
;
return
unix_funcs
->
pNtUserCallNextHookEx
(
hhook
,
code
,
wparam
,
lparam
);
}
ULONG_PTR
WINAPI
NtUserCallNoParam
(
ULONG
code
)
{
if
(
!
unix_funcs
)
return
0
;
return
unix_funcs
->
pNtUserCallNoParam
(
code
);
}
ULONG_PTR
WINAPI
NtUserCallOneParam
(
ULONG_PTR
arg
,
ULONG
code
)
{
if
(
!
unix_funcs
)
return
0
;
return
unix_funcs
->
pNtUserCallOneParam
(
arg
,
code
);
}
ULONG_PTR
WINAPI
NtUserCallTwoParam
(
ULONG_PTR
arg1
,
ULONG_PTR
arg2
,
ULONG
code
)
{
if
(
!
unix_funcs
)
return
0
;
return
unix_funcs
->
pNtUserCallTwoParam
(
arg1
,
arg2
,
code
);
}
BOOL
WINAPI
NtUserCloseClipboard
(
void
)
{
if
(
!
unix_funcs
)
return
FALSE
;
...
...
dlls/wow64win/syscall.h
View file @
ca630fb6
...
...
@@ -96,6 +96,10 @@
SYSCALL_ENTRY( NtUserCallHwnd ) \
SYSCALL_ENTRY( NtUserCallHwndParam ) \
SYSCALL_ENTRY( NtUserCallMsgFilter ) \
SYSCALL_ENTRY( NtUserCallNextHookEx ) \
SYSCALL_ENTRY( NtUserCallNoParam ) \
SYSCALL_ENTRY( NtUserCallOneParam ) \
SYSCALL_ENTRY( NtUserCallTwoParam ) \
SYSCALL_ENTRY( NtUserCheckMenuItem ) \
SYSCALL_ENTRY( NtUserChildWindowFromPointEx ) \
SYSCALL_ENTRY( NtUserCloseDesktop ) \
...
...
dlls/wow64win/user.c
View file @
ca630fb6
...
...
@@ -250,6 +250,42 @@ NTSTATUS WINAPI wow64_NtUserCallMsgFilter( UINT *args )
return
ret
;
}
NTSTATUS
WINAPI
wow64_NtUserCallNextHookEx
(
UINT
*
args
)
{
HHOOK
hhook
=
get_handle
(
&
args
);
INT
code
=
get_ulong
(
&
args
);
WPARAM
wparam
=
get_ulong
(
&
args
);
LPARAM
lparam
=
get_ulong
(
&
args
);
return
NtUserCallNextHookEx
(
hhook
,
code
,
wparam
,
lparam
);
}
NTSTATUS
WINAPI
wow64_NtUserCallNoParam
(
UINT
*
args
)
{
ULONG
code
=
get_ulong
(
&
args
);
return
NtUserCallNoParam
(
code
);
}
NTSTATUS
WINAPI
wow64_NtUserCallOneParam
(
UINT
*
args
)
{
ULONG_PTR
arg
=
get_ulong
(
&
args
);
ULONG
code
=
get_ulong
(
&
args
);
FIXME
(
"%Ix %lu
\n
"
,
arg
,
code
);
return
0
;
}
NTSTATUS
WINAPI
wow64_NtUserCallTwoParam
(
UINT
*
args
)
{
ULONG_PTR
arg1
=
get_ulong
(
&
args
);
ULONG_PTR
arg2
=
get_ulong
(
&
args
);
ULONG
code
=
get_ulong
(
&
args
);
FIXME
(
"%Ix %Ix %lu
\n
"
,
arg1
,
arg2
,
code
);
return
0
;
}
NTSTATUS
WINAPI
wow64_NtUserCheckMenuItem
(
UINT
*
args
)
{
HMENU
handle
=
get_handle
(
&
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