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
915fb568
Commit
915fb568
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 NtUserGetThreadDesktop implementation from user32.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ccf00c6d
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
30 additions
and
21 deletions
+30
-21
user32.spec
dlls/user32/user32.spec
+1
-1
user_main.c
dlls/user32/user_main.c
+1
-1
win.c
dlls/user32/win.c
+1
-1
winstation.c
dlls/user32/winstation.c
+0
-17
syscall.c
dlls/win32u/syscall.c
+1
-0
win32u.spec
dlls/win32u/win32u.spec
+1
-1
winstation.c
dlls/win32u/winstation.c
+16
-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/user32.spec
View file @
915fb568
...
...
@@ -387,7 +387,7 @@
@ stdcall GetTabbedTextExtentA(long str long long ptr)
@ stdcall GetTabbedTextExtentW(long wstr long long ptr)
@ stdcall GetTaskmanWindow ()
@ stdcall GetThreadDesktop(long)
@ stdcall GetThreadDesktop(long)
NtUserGetThreadDesktop
@ stdcall GetThreadDpiAwarenessContext()
@ stdcall GetTitleBarInfo(long ptr)
@ stdcall GetTopWindow(long)
...
...
dlls/user32/user_main.c
View file @
915fb568
...
...
@@ -307,7 +307,7 @@ static void winstation_init(void)
}
}
}
if
(
buffer
||
!
GetThreadDesktop
(
GetCurrentThreadId
()
))
if
(
buffer
||
!
NtUser
GetThreadDesktop
(
GetCurrentThreadId
()
))
{
handle
=
CreateDesktopW
(
desktop
?
desktop
:
get_default_desktop
(),
NULL
,
NULL
,
0
,
DESKTOP_ALL_ACCESS
,
NULL
);
...
...
dlls/user32/win.c
View file @
915fb568
...
...
@@ -2231,7 +2231,7 @@ HWND WINAPI GetDesktopWindow(void)
SERVER_START_REQ
(
set_user_object_info
)
{
req
->
handle
=
wine_server_obj_handle
(
GetThreadDesktop
(
GetCurrentThreadId
())
);
req
->
handle
=
wine_server_obj_handle
(
NtUser
GetThreadDesktop
(
GetCurrentThreadId
())
);
req
->
flags
=
SET_USER_OBJECT_GET_FULL_NAME
;
wine_server_set_reply
(
req
,
desktop
,
sizeof
(
desktop
)
-
sizeof
(
WCHAR
)
);
if
(
!
wine_server_call
(
req
))
...
...
dlls/user32/winstation.c
View file @
915fb568
...
...
@@ -358,23 +358,6 @@ HDESK WINAPI OpenDesktopW( LPCWSTR name, DWORD flags, BOOL inherit, ACCESS_MASK
/******************************************************************************
* GetThreadDesktop (USER32.@)
*/
HDESK
WINAPI
GetThreadDesktop
(
DWORD
thread
)
{
HDESK
ret
=
0
;
SERVER_START_REQ
(
get_thread_desktop
)
{
req
->
tid
=
thread
;
if
(
!
wine_server_call_err
(
req
))
ret
=
wine_server_ptr_handle
(
reply
->
handle
);
}
SERVER_END_REQ
;
return
ret
;
}
/******************************************************************************
* SetThreadDesktop (USER32.@)
*/
BOOL
WINAPI
SetThreadDesktop
(
HDESK
handle
)
...
...
dlls/win32u/syscall.c
View file @
915fb568
...
...
@@ -97,6 +97,7 @@ static void * const syscalls[] =
NtUserCloseDesktop
,
NtUserCloseWindowStation
,
NtUserGetProcessWindowStation
,
NtUserGetThreadDesktop
,
NtUserSetProcessWindowStation
,
};
...
...
dlls/win32u/win32u.spec
View file @
915fb568
...
...
@@ -995,7 +995,7 @@
@ stub NtUserGetSharedWindowData
@ stub NtUserGetSystemDpiForProcess
@ stub NtUserGetSystemMenu
@ st
ub NtUserGetThreadDesktop
@ st
dcall -syscall NtUserGetThreadDesktop(long)
@ stub NtUserGetThreadState
@ stub NtUserGetTitleBarInfo
@ stub NtUserGetTopLevelWindow
...
...
dlls/win32u/winstation.c
View file @
915fb568
...
...
@@ -90,3 +90,19 @@ BOOL WINAPI NtUserCloseDesktop( HDESK handle )
SERVER_END_REQ
;
return
ret
;
}
/***********************************************************************
* NtUserGetThreadDesktop (win32u.@)
*/
HDESK
WINAPI
NtUserGetThreadDesktop
(
DWORD
thread
)
{
HDESK
ret
=
0
;
SERVER_START_REQ
(
get_thread_desktop
)
{
req
->
tid
=
thread
;
if
(
!
wine_server_call_err
(
req
))
ret
=
wine_server_ptr_handle
(
reply
->
handle
);
}
SERVER_END_REQ
;
return
ret
;
}
dlls/wow64win/syscall.h
View file @
915fb568
...
...
@@ -84,6 +84,7 @@
SYSCALL_ENTRY( NtUserCloseDesktop ) \
SYSCALL_ENTRY( NtUserCloseWindowStation ) \
SYSCALL_ENTRY( NtUserGetProcessWindowStation ) \
SYSCALL_ENTRY( NtUserGetThreadDesktop ) \
SYSCALL_ENTRY( NtUserSetProcessWindowStation )
#endif
/* __WOW64WIN_SYSCALL_H */
dlls/wow64win/user.c
View file @
915fb568
...
...
@@ -52,3 +52,10 @@ NTSTATUS WINAPI wow64_NtUserCloseDesktop( UINT *args )
return
NtUserCloseDesktop
(
handle
);
}
NTSTATUS
WINAPI
wow64_NtUserGetThreadDesktop
(
UINT
*
args
)
{
DWORD
thread
=
get_ulong
(
&
args
);
return
HandleToUlong
(
NtUserGetThreadDesktop
(
thread
));
}
include/ntuser.h
View file @
915fb568
...
...
@@ -25,6 +25,7 @@
BOOL
WINAPI
NtUserCloseDesktop
(
HDESK
handle
);
BOOL
WINAPI
NtUserCloseWindowStation
(
HWINSTA
handle
);
HWINSTA
WINAPI
NtUserGetProcessWindowStation
(
void
);
HDESK
WINAPI
NtUserGetThreadDesktop
(
DWORD
thread
);
BOOL
WINAPI
NtUserSetProcessWindowStation
(
HWINSTA
handle
);
#endif
/* _NTUSER_ */
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