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
6b2da0ba
Commit
6b2da0ba
authored
Nov 28, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 29, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Move NtUserPrintWindow implementation from user32.
parent
ae984f63
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
25 additions
and
17 deletions
+25
-17
painting.c
dlls/user32/painting.c
+0
-15
user32.spec
dlls/user32/user32.spec
+1
-1
dce.c
dlls/win32u/dce.c
+11
-0
syscall.c
dlls/win32u/syscall.c
+1
-0
win32u.spec
dlls/win32u/win32u.spec
+1
-1
syscall.h
dlls/wow64win/syscall.h
+1
-0
user.c
dlls/wow64win/user.c
+9
-0
ntuser.h
include/ntuser.h
+1
-0
No files found.
dlls/user32/painting.c
View file @
6b2da0ba
...
...
@@ -62,18 +62,3 @@ BOOL WINAPI ScrollWindow( HWND hwnd, INT dx, INT dy,
UINT
flags
=
SW_INVALIDATE
|
SW_ERASE
|
(
rect
?
0
:
SW_SCROLLCHILDREN
)
|
SW_NODCCACHE
;
return
NtUserScrollWindowEx
(
hwnd
,
dx
,
dy
,
rect
,
clipRect
,
0
,
NULL
,
flags
);
}
/************************************************************************
* PrintWindow (USER32.@)
*
*/
BOOL
WINAPI
PrintWindow
(
HWND
hwnd
,
HDC
hdcBlt
,
UINT
nFlags
)
{
UINT
flags
=
PRF_CHILDREN
|
PRF_ERASEBKGND
|
PRF_OWNED
|
PRF_CLIENT
;
if
(
!
(
nFlags
&
PW_CLIENTONLY
))
{
flags
|=
PRF_NONCLIENT
;
}
SendMessageW
(
hwnd
,
WM_PRINT
,
(
WPARAM
)
hdcBlt
,
flags
);
return
TRUE
;
}
dlls/user32/user32.spec
View file @
6b2da0ba
...
...
@@ -576,7 +576,7 @@
@ stdcall PostQuitMessage(long)
@ stdcall PostThreadMessageA(long long long long)
@ stdcall PostThreadMessageW(long long long long) NtUserPostThreadMessage
@ stdcall PrintWindow(long long long)
@ stdcall PrintWindow(long long long)
NtUserPrintWindow
@ stdcall PrivateExtractIconExA(str long ptr ptr long)
@ stdcall PrivateExtractIconExW(wstr long ptr ptr long)
@ stdcall PrivateExtractIconsA (str long long long ptr ptr long long)
...
...
dlls/win32u/dce.c
View file @
6b2da0ba
...
...
@@ -1858,3 +1858,14 @@ INT WINAPI NtUserScrollWindowEx( HWND hwnd, INT dx, INT dy, const RECT *rect,
return
retval
;
}
/************************************************************************
* NtUserPrintWindow (win32u.@)
*/
BOOL
WINAPI
NtUserPrintWindow
(
HWND
hwnd
,
HDC
hdc
,
UINT
flags
)
{
UINT
prf_flags
=
PRF_CHILDREN
|
PRF_ERASEBKGND
|
PRF_OWNED
|
PRF_CLIENT
;
if
(
!
(
flags
&
PW_CLIENTONLY
))
prf_flags
|=
PRF_NONCLIENT
;
send_message
(
hwnd
,
WM_PRINT
,
(
WPARAM
)
hdc
,
prf_flags
);
return
TRUE
;
}
dlls/win32u/syscall.c
View file @
6b2da0ba
...
...
@@ -237,6 +237,7 @@ static void * const syscalls[] =
NtUserPerMonitorDPIPhysicalToLogicalPoint
,
NtUserPostMessage
,
NtUserPostThreadMessage
,
NtUserPrintWindow
,
NtUserQueryInputContext
,
NtUserRedrawWindow
,
NtUserRegisterClassExWOW
,
...
...
dlls/win32u/win32u.spec
View file @
6b2da0ba
...
...
@@ -1105,7 +1105,7 @@
@ stub NtUserPostKeyboardInputMessage
@ stdcall -syscall NtUserPostMessage(long long long long)
@ stdcall -syscall NtUserPostThreadMessage(long long long long)
@ st
ub NtUserPrintWindow
@ st
dcall -syscall NtUserPrintWindow(long long long)
@ stub NtUserProcessConnect
@ stub NtUserProcessInkFeedbackCommand
@ stub NtUserPromoteMouseInPointer
...
...
dlls/wow64win/syscall.h
View file @
6b2da0ba
...
...
@@ -223,6 +223,7 @@
SYSCALL_ENTRY( NtUserPerMonitorDPIPhysicalToLogicalPoint ) \
SYSCALL_ENTRY( NtUserPostMessage ) \
SYSCALL_ENTRY( NtUserPostThreadMessage ) \
SYSCALL_ENTRY( NtUserPrintWindow ) \
SYSCALL_ENTRY( NtUserQueryInputContext ) \
SYSCALL_ENTRY( NtUserRedrawWindow ) \
SYSCALL_ENTRY( NtUserRegisterClassExWOW ) \
...
...
dlls/wow64win/user.c
View file @
6b2da0ba
...
...
@@ -3184,6 +3184,15 @@ NTSTATUS WINAPI wow64_NtUserPostThreadMessage( UINT *args )
return
NtUserPostThreadMessage
(
thread
,
msg
,
wparam
,
lparam
);
}
NTSTATUS
WINAPI
wow64_NtUserPrintWindow
(
UINT
*
args
)
{
HWND
hwnd
=
get_handle
(
&
args
);
HDC
hdc
=
get_handle
(
&
args
);
UINT
flags
=
get_ulong
(
&
args
);
return
NtUserPrintWindow
(
hwnd
,
hdc
,
flags
);
}
NTSTATUS
WINAPI
wow64_NtUserQueryInputContext
(
UINT
*
args
)
{
HIMC
handle
=
get_handle
(
&
args
);
...
...
include/ntuser.h
View file @
6b2da0ba
...
...
@@ -810,6 +810,7 @@ BOOL WINAPI NtUserPeekMessage( MSG *msg_out, HWND hwnd, UINT first, UINT last
BOOL
WINAPI
NtUserPerMonitorDPIPhysicalToLogicalPoint
(
HWND
hwnd
,
POINT
*
pt
);
BOOL
WINAPI
NtUserPostMessage
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wparam
,
LPARAM
lparam
);
BOOL
WINAPI
NtUserPostThreadMessage
(
DWORD
thread
,
UINT
msg
,
WPARAM
wparam
,
LPARAM
lparam
);
BOOL
WINAPI
NtUserPrintWindow
(
HWND
hwnd
,
HDC
hdc
,
UINT
flags
);
UINT_PTR
WINAPI
NtUserQueryInputContext
(
HIMC
handle
,
UINT
attr
);
BOOL
WINAPI
NtUserRedrawWindow
(
HWND
hwnd
,
const
RECT
*
rect
,
HRGN
hrgn
,
UINT
flags
);
ATOM
WINAPI
NtUserRegisterClassExWOW
(
const
WNDCLASSEXW
*
wc
,
UNICODE_STRING
*
name
,
UNICODE_STRING
*
version
,
...
...
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