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
ccf00c6d
Commit
ccf00c6d
authored
Oct 13, 2021
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 13, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Move NtUserCloseDesktop implementation from user32.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
187b3e2c
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
28 additions
and
19 deletions
+28
-19
message.c
dlls/user32/message.c
+1
-1
user32.spec
dlls/user32/user32.spec
+1
-1
winstation.c
dlls/user32/winstation.c
+0
-16
syscall.c
dlls/win32u/syscall.c
+1
-0
win32u.spec
dlls/win32u/win32u.spec
+1
-1
winstation.c
dlls/win32u/winstation.c
+15
-0
syscall.h
dlls/wow64win/syscall.h
+1
-0
user.c
dlls/wow64win/user.c
+7
-0
ntuser.h
include/ntuser.h
+1
-0
No files found.
dlls/user32/message.c
View file @
ccf00c6d
...
...
@@ -4321,7 +4321,7 @@ static BOOL CALLBACK bcast_desktop( LPWSTR desktop, LPARAM lp )
}
ret
=
EnumDesktopWindows
(
hdesktop
,
bcast_childwindow
,
lp
);
CloseDesktop
(
hdesktop
);
NtUserCloseDesktop
(
hdesktop
);
TRACE
(
"-->%d
\n
"
,
ret
);
return
parm
->
success
;
}
...
...
dlls/user32/user32.spec
View file @
ccf00c6d
...
...
@@ -74,7 +74,7 @@
@ stdcall ClientToScreen(long ptr)
@ stdcall ClipCursor(ptr)
@ stdcall CloseClipboard()
@ stdcall CloseDesktop(long)
@ stdcall CloseDesktop(long)
NtUserCloseDesktop
@ stdcall CloseTouchInputHandle(long)
@ stdcall CloseWindow(long)
@ stdcall CloseWindowStation(long) NtUserCloseWindowStation
...
...
dlls/user32/winstation.c
View file @
ccf00c6d
...
...
@@ -357,22 +357,6 @@ HDESK WINAPI OpenDesktopW( LPCWSTR name, DWORD flags, BOOL inherit, ACCESS_MASK
}
/***********************************************************************
* CloseDesktop (USER32.@)
*/
BOOL
WINAPI
CloseDesktop
(
HDESK
handle
)
{
BOOL
ret
;
SERVER_START_REQ
(
close_desktop
)
{
req
->
handle
=
wine_server_obj_handle
(
handle
);
ret
=
!
wine_server_call_err
(
req
);
}
SERVER_END_REQ
;
return
ret
;
}
/******************************************************************************
* GetThreadDesktop (USER32.@)
*/
...
...
dlls/win32u/syscall.c
View file @
ccf00c6d
...
...
@@ -94,6 +94,7 @@ static void * const syscalls[] =
NtGdiSetVirtualResolution
,
NtGdiSwapBuffers
,
NtGdiTransformPoints
,
NtUserCloseDesktop
,
NtUserCloseWindowStation
,
NtUserGetProcessWindowStation
,
NtUserSetProcessWindowStation
,
...
...
dlls/win32u/win32u.spec
View file @
ccf00c6d
...
...
@@ -794,7 +794,7 @@
@ stub NtUserClearForeground
@ stub NtUserClipCursor
@ stub NtUserCloseClipboard
@ st
ub NtUserCloseDesktop
@ st
dcall -syscall NtUserCloseDesktop(long)
@ stdcall -syscall NtUserCloseWindowStation(long)
@ stub NtUserCompositionInputSinkLuidFromPoint
@ stub NtUserCompositionInputSinkViewInstanceIdFromPoint
...
...
dlls/win32u/winstation.c
View file @
ccf00c6d
...
...
@@ -75,3 +75,18 @@ BOOL WINAPI NtUserSetProcessWindowStation( HWINSTA handle )
SERVER_END_REQ
;
return
ret
;
}
/***********************************************************************
* NtUserCloseDesktop (win32u.@)
*/
BOOL
WINAPI
NtUserCloseDesktop
(
HDESK
handle
)
{
BOOL
ret
;
SERVER_START_REQ
(
close_desktop
)
{
req
->
handle
=
wine_server_obj_handle
(
handle
);
ret
=
!
wine_server_call_err
(
req
);
}
SERVER_END_REQ
;
return
ret
;
}
dlls/wow64win/syscall.h
View file @
ccf00c6d
...
...
@@ -81,6 +81,7 @@
SYSCALL_ENTRY( NtGdiSetVirtualResolution ) \
SYSCALL_ENTRY( NtGdiSwapBuffers ) \
SYSCALL_ENTRY( NtGdiTransformPoints ) \
SYSCALL_ENTRY( NtUserCloseDesktop ) \
SYSCALL_ENTRY( NtUserCloseWindowStation ) \
SYSCALL_ENTRY( NtUserGetProcessWindowStation ) \
SYSCALL_ENTRY( NtUserSetProcessWindowStation )
...
...
dlls/wow64win/user.c
View file @
ccf00c6d
...
...
@@ -45,3 +45,10 @@ NTSTATUS WINAPI wow64_NtUserSetProcessWindowStation( UINT *args )
return
NtUserSetProcessWindowStation
(
handle
);
}
NTSTATUS
WINAPI
wow64_NtUserCloseDesktop
(
UINT
*
args
)
{
HDESK
handle
=
get_handle
(
&
args
);
return
NtUserCloseDesktop
(
handle
);
}
include/ntuser.h
View file @
ccf00c6d
...
...
@@ -22,6 +22,7 @@
#include <winuser.h>
#include <winternl.h>
BOOL
WINAPI
NtUserCloseDesktop
(
HDESK
handle
);
BOOL
WINAPI
NtUserCloseWindowStation
(
HWINSTA
handle
);
HWINSTA
WINAPI
NtUserGetProcessWindowStation
(
void
);
BOOL
WINAPI
NtUserSetProcessWindowStation
(
HWINSTA
handle
);
...
...
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