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
187b3e2c
Commit
187b3e2c
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 NtUserSetProcessWindowStation implementation from user32.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
588dc55e
Hide whitespace changes
Inline
Side-by-side
Showing
9 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
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
+2
-1
user.c
dlls/wow64win/user.c
+7
-0
ntuser.h
include/ntuser.h
+1
-0
No files found.
dlls/user32/user32.spec
View file @
187b3e2c
...
...
@@ -692,7 +692,7 @@
@ stdcall SetProcessDefaultLayout(long)
@ stdcall SetProcessDpiAwarenessContext(long)
@ stdcall SetProcessDpiAwarenessInternal(long)
@ stdcall SetProcessWindowStation(long)
@ stdcall SetProcessWindowStation(long)
NtUserSetProcessWindowStation
@ stdcall SetProgmanWindow (long)
@ stdcall SetPropA(long str long)
@ stdcall SetPropW(long wstr long)
...
...
dlls/user32/user_main.c
View file @
187b3e2c
...
...
@@ -295,7 +295,7 @@ static void winstation_init(void)
handle
=
CreateWindowStationW
(
winstation
?
winstation
:
L"WinSta0"
,
0
,
WINSTA_ALL_ACCESS
,
NULL
);
if
(
handle
)
{
SetProcessWindowStation
(
handle
);
NtUser
SetProcessWindowStation
(
handle
);
/* only WinSta0 is visible */
if
(
!
winstation
||
!
wcsicmp
(
winstation
,
L"WinSta0"
))
{
...
...
dlls/user32/winstation.c
View file @
187b3e2c
...
...
@@ -203,23 +203,6 @@ HWINSTA WINAPI OpenWindowStationW( LPCWSTR name, BOOL inherit, ACCESS_MASK acces
}
/***********************************************************************
* SetProcessWindowStation (USER32.@)
*/
BOOL
WINAPI
SetProcessWindowStation
(
HWINSTA
handle
)
{
BOOL
ret
;
SERVER_START_REQ
(
set_process_winstation
)
{
req
->
handle
=
wine_server_obj_handle
(
handle
);
ret
=
!
wine_server_call_err
(
req
);
}
SERVER_END_REQ
;
return
ret
;
}
/******************************************************************************
* EnumWindowStationsA (USER32.@)
*/
...
...
dlls/win32u/syscall.c
View file @
187b3e2c
...
...
@@ -96,6 +96,7 @@ static void * const syscalls[] =
NtGdiTransformPoints
,
NtUserCloseWindowStation
,
NtUserGetProcessWindowStation
,
NtUserSetProcessWindowStation
,
};
static
BYTE
arguments
[
ARRAY_SIZE
(
syscalls
)];
...
...
dlls/win32u/win32u.spec
View file @
187b3e2c
...
...
@@ -1221,7 +1221,7 @@
@ stub NtUserSetProcessMousewheelRoutingMode
@ stub NtUserSetProcessRestrictionExemption
@ stub NtUserSetProcessUIAccessZorder
@ st
ub NtUserSetProcessWindowStation
@ st
dcall -syscall NtUserSetProcessWindowStation(long)
@ stub NtUserSetProp
@ stub NtUserSetScrollInfo
@ stub NtUserSetSensorPresence
...
...
dlls/win32u/winstation.c
View file @
187b3e2c
...
...
@@ -59,3 +59,19 @@ HWINSTA WINAPI NtUserGetProcessWindowStation(void)
SERVER_END_REQ
;
return
ret
;
}
/***********************************************************************
* NtUserSetProcessWindowStation (win32u.@)
*/
BOOL
WINAPI
NtUserSetProcessWindowStation
(
HWINSTA
handle
)
{
BOOL
ret
;
SERVER_START_REQ
(
set_process_winstation
)
{
req
->
handle
=
wine_server_obj_handle
(
handle
);
ret
=
!
wine_server_call_err
(
req
);
}
SERVER_END_REQ
;
return
ret
;
}
dlls/wow64win/syscall.h
View file @
187b3e2c
...
...
@@ -82,6 +82,7 @@
SYSCALL_ENTRY( NtGdiSwapBuffers ) \
SYSCALL_ENTRY( NtGdiTransformPoints ) \
SYSCALL_ENTRY( NtUserCloseWindowStation ) \
SYSCALL_ENTRY( NtUserGetProcessWindowStation )
SYSCALL_ENTRY( NtUserGetProcessWindowStation ) \
SYSCALL_ENTRY( NtUserSetProcessWindowStation )
#endif
/* __WOW64WIN_SYSCALL_H */
dlls/wow64win/user.c
View file @
187b3e2c
...
...
@@ -38,3 +38,10 @@ NTSTATUS WINAPI wow64_NtUserGetProcessWindowStation( UINT *args )
{
return
HandleToUlong
(
NtUserGetProcessWindowStation
()
);
}
NTSTATUS
WINAPI
wow64_NtUserSetProcessWindowStation
(
UINT
*
args
)
{
HWINSTA
handle
=
get_handle
(
&
args
);
return
NtUserSetProcessWindowStation
(
handle
);
}
include/ntuser.h
View file @
187b3e2c
...
...
@@ -24,5 +24,6 @@
BOOL
WINAPI
NtUserCloseWindowStation
(
HWINSTA
handle
);
HWINSTA
WINAPI
NtUserGetProcessWindowStation
(
void
);
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