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
87b8a912
Commit
87b8a912
authored
Jul 21, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 26, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Use syscall interface for NtUserSetWindow* functions.
parent
c660d37a
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
61 additions
and
45 deletions
+61
-45
gdiobj.c
dlls/win32u/gdiobj.c
+0
-5
syscall.c
dlls/win32u/syscall.c
+5
-0
win32u.spec
dlls/win32u/win32u.spec
+5
-5
win32u_private.h
dlls/win32u/win32u_private.h
+0
-5
wrappers.c
dlls/win32u/wrappers.c
+0
-30
syscall.h
dlls/wow64win/syscall.h
+5
-0
user.c
dlls/wow64win/user.c
+46
-0
No files found.
dlls/win32u/gdiobj.c
View file @
87b8a912
...
...
@@ -1153,11 +1153,6 @@ static struct unix_funcs unix_funcs =
NtUserSetClassWord
,
NtUserSetLayeredWindowAttributes
,
NtUserSetParent
,
NtUserSetWindowLong
,
NtUserSetWindowLongPtr
,
NtUserSetWindowPlacement
,
NtUserSetWindowRgn
,
NtUserSetWindowWord
,
NtUserShowWindow
,
NtUserShowWindowAsync
,
NtUserSystemParametersInfo
,
...
...
dlls/win32u/syscall.c
View file @
87b8a912
...
...
@@ -259,7 +259,12 @@ static void * const syscalls[] =
NtUserSetThreadDesktop
,
NtUserSetTimer
,
NtUserSetWinEventHook
,
NtUserSetWindowLong
,
NtUserSetWindowLongPtr
,
NtUserSetWindowPlacement
,
NtUserSetWindowPos
,
NtUserSetWindowRgn
,
NtUserSetWindowWord
,
NtUserSetWindowsHookEx
,
NtUserShowCaret
,
NtUserShowCursor
,
...
...
dlls/win32u/win32u.spec
View file @
87b8a912
...
...
@@ -1246,15 +1246,15 @@
@ stub NtUserSetWindowFNID
@ stub NtUserSetWindowFeedbackSetting
@ stub NtUserSetWindowGroup
@ stdcall NtUserSetWindowLong(long long long long)
@ stdcall NtUserSetWindowLongPtr(long long long long)
@ stdcall NtUserSetWindowPlacement(long ptr)
@ stdcall
-syscall
NtUserSetWindowLong(long long long long)
@ stdcall
-syscall
NtUserSetWindowLongPtr(long long long long)
@ stdcall
-syscall
NtUserSetWindowPlacement(long ptr)
@ stdcall -syscall NtUserSetWindowPos(long long long long long long long)
@ stdcall NtUserSetWindowRgn(long long long)
@ stdcall
-syscall
NtUserSetWindowRgn(long long long)
@ stub NtUserSetWindowRgnEx
@ stub NtUserSetWindowShowState
@ stub NtUserSetWindowStationUser
@ stdcall NtUserSetWindowWord(long long long)
@ stdcall
-syscall
NtUserSetWindowWord(long long long)
@ stub NtUserSetWindowsHookAW
@ stdcall -syscall NtUserSetWindowsHookEx(ptr ptr long long ptr long)
@ stdcall -syscall NtUserShowCaret(long)
...
...
dlls/win32u/win32u_private.h
View file @
87b8a912
...
...
@@ -209,11 +209,6 @@ struct unix_funcs
WORD
(
WINAPI
*
pNtUserSetClassWord
)(
HWND
hwnd
,
INT
offset
,
WORD
newval
);
BOOL
(
WINAPI
*
pNtUserSetLayeredWindowAttributes
)(
HWND
hwnd
,
COLORREF
key
,
BYTE
alpha
,
DWORD
flags
);
HWND
(
WINAPI
*
pNtUserSetParent
)(
HWND
hwnd
,
HWND
parent
);
LONG
(
WINAPI
*
pNtUserSetWindowLong
)(
HWND
hwnd
,
INT
offset
,
LONG
newval
,
BOOL
ansi
);
LONG_PTR
(
WINAPI
*
pNtUserSetWindowLongPtr
)(
HWND
hwnd
,
INT
offset
,
LONG_PTR
newval
,
BOOL
ansi
);
BOOL
(
WINAPI
*
pNtUserSetWindowPlacement
)(
HWND
hwnd
,
const
WINDOWPLACEMENT
*
wpl
);
int
(
WINAPI
*
pNtUserSetWindowRgn
)(
HWND
hwnd
,
HRGN
hrgn
,
BOOL
redraw
);
WORD
(
WINAPI
*
pNtUserSetWindowWord
)(
HWND
hwnd
,
INT
offset
,
WORD
newval
);
BOOL
(
WINAPI
*
pNtUserShowWindow
)(
HWND
hwnd
,
INT
cmd
);
BOOL
(
WINAPI
*
pNtUserShowWindowAsync
)(
HWND
hwnd
,
INT
cmd
);
BOOL
(
WINAPI
*
pNtUserSystemParametersInfo
)(
UINT
action
,
UINT
val
,
PVOID
ptr
,
UINT
winini
);
...
...
dlls/win32u/wrappers.c
View file @
87b8a912
...
...
@@ -826,36 +826,6 @@ HWND WINAPI NtUserSetParent( HWND hwnd, HWND parent )
return
unix_funcs
->
pNtUserSetParent
(
hwnd
,
parent
);
}
LONG
WINAPI
NtUserSetWindowLong
(
HWND
hwnd
,
INT
offset
,
LONG
newval
,
BOOL
ansi
)
{
if
(
!
unix_funcs
)
return
0
;
return
unix_funcs
->
pNtUserSetWindowLong
(
hwnd
,
offset
,
newval
,
ansi
);
}
LONG_PTR
WINAPI
NtUserSetWindowLongPtr
(
HWND
hwnd
,
INT
offset
,
LONG_PTR
newval
,
BOOL
ansi
)
{
if
(
!
unix_funcs
)
return
0
;
return
unix_funcs
->
pNtUserSetWindowLongPtr
(
hwnd
,
offset
,
newval
,
ansi
);
}
BOOL
WINAPI
NtUserSetWindowPlacement
(
HWND
hwnd
,
const
WINDOWPLACEMENT
*
wpl
)
{
if
(
!
unix_funcs
)
return
0
;
return
unix_funcs
->
pNtUserSetWindowPlacement
(
hwnd
,
wpl
);
}
int
WINAPI
NtUserSetWindowRgn
(
HWND
hwnd
,
HRGN
hrgn
,
BOOL
redraw
)
{
if
(
!
unix_funcs
)
return
0
;
return
unix_funcs
->
pNtUserSetWindowRgn
(
hwnd
,
hrgn
,
redraw
);
}
WORD
WINAPI
NtUserSetWindowWord
(
HWND
hwnd
,
INT
offset
,
WORD
newval
)
{
if
(
!
unix_funcs
)
return
0
;
return
unix_funcs
->
pNtUserSetWindowWord
(
hwnd
,
offset
,
newval
);
}
BOOL
WINAPI
NtUserShowWindowAsync
(
HWND
hwnd
,
INT
cmd
)
{
if
(
!
unix_funcs
)
return
FALSE
;
...
...
dlls/wow64win/syscall.h
View file @
87b8a912
...
...
@@ -246,7 +246,12 @@
SYSCALL_ENTRY( NtUserSetThreadDesktop ) \
SYSCALL_ENTRY( NtUserSetTimer ) \
SYSCALL_ENTRY( NtUserSetWinEventHook ) \
SYSCALL_ENTRY( NtUserSetWindowLong ) \
SYSCALL_ENTRY( NtUserSetWindowLongPtr ) \
SYSCALL_ENTRY( NtUserSetWindowPlacement ) \
SYSCALL_ENTRY( NtUserSetWindowPos ) \
SYSCALL_ENTRY( NtUserSetWindowRgn ) \
SYSCALL_ENTRY( NtUserSetWindowWord ) \
SYSCALL_ENTRY( NtUserSetWindowsHookEx ) \
SYSCALL_ENTRY( NtUserShowCaret ) \
SYSCALL_ENTRY( NtUserShowCursor ) \
...
...
dlls/wow64win/user.c
View file @
87b8a912
...
...
@@ -1959,6 +1959,34 @@ NTSTATUS WINAPI wow64_NtUserSetWinEventHook( UINT *args )
return
HandleToUlong
(
ret
);
}
NTSTATUS
WINAPI
wow64_NtUserSetWindowLong
(
UINT
*
args
)
{
HWND
hwnd
=
get_handle
(
&
args
);
INT
offset
=
get_ulong
(
&
args
);
LONG
newval
=
get_ulong
(
&
args
);
BOOL
ansi
=
get_ulong
(
&
args
);
return
NtUserSetWindowLong
(
hwnd
,
offset
,
newval
,
ansi
);
}
NTSTATUS
WINAPI
wow64_NtUserSetWindowLongPtr
(
UINT
*
args
)
{
HWND
hwnd
=
get_handle
(
&
args
);
INT
offset
=
get_ulong
(
&
args
);
LONG_PTR
newval
=
get_ulong
(
&
args
);
BOOL
ansi
=
get_ulong
(
&
args
);
return
NtUserSetWindowLongPtr
(
hwnd
,
offset
,
newval
,
ansi
);
}
NTSTATUS
WINAPI
wow64_NtUserSetWindowPlacement
(
UINT
*
args
)
{
HWND
hwnd
=
get_handle
(
&
args
);
const
WINDOWPLACEMENT
*
wpl
=
get_ptr
(
&
args
);
return
NtUserSetWindowPlacement
(
hwnd
,
wpl
);
}
NTSTATUS
WINAPI
wow64_NtUserSetWindowPos
(
UINT
*
args
)
{
HWND
hwnd
=
get_handle
(
&
args
);
...
...
@@ -1972,6 +2000,24 @@ NTSTATUS WINAPI wow64_NtUserSetWindowPos( UINT *args )
return
NtUserSetWindowPos
(
hwnd
,
after
,
x
,
y
,
cx
,
cy
,
flags
);
}
NTSTATUS
WINAPI
wow64_NtUserSetWindowRgn
(
UINT
*
args
)
{
HWND
hwnd
=
get_handle
(
&
args
);
HRGN
hrgn
=
get_handle
(
&
args
);
BOOL
redraw
=
get_ulong
(
&
args
);
return
NtUserSetWindowRgn
(
hwnd
,
hrgn
,
redraw
);
}
NTSTATUS
WINAPI
wow64_NtUserSetWindowWord
(
UINT
*
args
)
{
HWND
hwnd
=
get_handle
(
&
args
);
INT
offset
=
get_ulong
(
&
args
);
WORD
newval
=
get_ulong
(
&
args
);
return
NtUserSetWindowWord
(
hwnd
,
offset
,
newval
);
}
NTSTATUS
WINAPI
wow64_NtUserSetWindowsHookEx
(
UINT
*
args
)
{
HINSTANCE
inst
=
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