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
588dc55e
Commit
588dc55e
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 NtUserGetProcessWindowStation implementation from user32.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1bc3ca71
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
32 additions
and
25 deletions
+32
-25
driver.c
dlls/user32/driver.c
+1
-1
sysparams.c
dlls/user32/sysparams.c
+1
-1
user32.spec
dlls/user32/user32.spec
+1
-1
user_main.c
dlls/user32/user_main.c
+1
-1
winstation.c
dlls/user32/winstation.c
+1
-18
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
+5
-0
ntuser.h
include/ntuser.h
+2
-1
No files found.
dlls/user32/driver.c
View file @
588dc55e
...
@@ -95,7 +95,7 @@ static const USER_DRIVER *load_driver(void)
...
@@ -95,7 +95,7 @@ static const USER_DRIVER *load_driver(void)
USEROBJECTFLAGS
flags
;
USEROBJECTFLAGS
flags
;
HWINSTA
winstation
;
HWINSTA
winstation
;
winstation
=
GetProcessWindowStation
();
winstation
=
NtUser
GetProcessWindowStation
();
if
(
!
GetUserObjectInformationA
(
winstation
,
UOI_FLAGS
,
&
flags
,
sizeof
(
flags
),
NULL
)
if
(
!
GetUserObjectInformationA
(
winstation
,
UOI_FLAGS
,
&
flags
,
sizeof
(
flags
),
NULL
)
||
(
flags
.
dwFlags
&
WSF_VISIBLE
))
||
(
flags
.
dwFlags
&
WSF_VISIBLE
))
driver
->
pCreateWindow
=
nodrv_CreateWindow
;
driver
->
pCreateWindow
=
nodrv_CreateWindow
;
...
...
dlls/user32/sysparams.c
View file @
588dc55e
...
@@ -4120,7 +4120,7 @@ BOOL CDECL nulldrv_EnumDisplayMonitors( HDC hdc, RECT *rect, MONITORENUMPROC pro
...
@@ -4120,7 +4120,7 @@ BOOL CDECL nulldrv_EnumDisplayMonitors( HDC hdc, RECT *rect, MONITORENUMPROC pro
TRACE
(
"(%p, %p, %p, 0x%lx)
\n
"
,
hdc
,
rect
,
proc
,
lp
);
TRACE
(
"(%p, %p, %p, 0x%lx)
\n
"
,
hdc
,
rect
,
proc
,
lp
);
/* Report physical monitor information only if window station has visible display surfaces */
/* Report physical monitor information only if window station has visible display surfaces */
winstation
=
GetProcessWindowStation
();
winstation
=
NtUser
GetProcessWindowStation
();
if
(
GetUserObjectInformationW
(
winstation
,
UOI_FLAGS
,
&
flags
,
sizeof
(
flags
),
NULL
))
if
(
GetUserObjectInformationW
(
winstation
,
UOI_FLAGS
,
&
flags
,
sizeof
(
flags
),
NULL
))
is_winstation_visible
=
flags
.
dwFlags
&
WSF_VISIBLE
;
is_winstation_visible
=
flags
.
dwFlags
&
WSF_VISIBLE
;
...
...
dlls/user32/user32.spec
View file @
588dc55e
...
@@ -361,7 +361,7 @@
...
@@ -361,7 +361,7 @@
@ stdcall GetPriorityClipboardFormat(ptr long)
@ stdcall GetPriorityClipboardFormat(ptr long)
@ stdcall GetProcessDefaultLayout(ptr)
@ stdcall GetProcessDefaultLayout(ptr)
@ stdcall GetProcessDpiAwarenessInternal(long ptr)
@ stdcall GetProcessDpiAwarenessInternal(long ptr)
@ stdcall GetProcessWindowStation()
@ stdcall GetProcessWindowStation()
NtUserGetProcessWindowStation
@ stdcall GetProgmanWindow ()
@ stdcall GetProgmanWindow ()
@ stdcall GetPropA(long str)
@ stdcall GetPropA(long str)
@ stdcall GetPropW(long wstr)
@ stdcall GetPropW(long wstr)
...
...
dlls/user32/user_main.c
View file @
588dc55e
...
@@ -290,7 +290,7 @@ static void winstation_init(void)
...
@@ -290,7 +290,7 @@ static void winstation_init(void)
}
}
/* set winstation if explicitly specified, or if we don't have one yet */
/* set winstation if explicitly specified, or if we don't have one yet */
if
(
buffer
||
!
GetProcessWindowStation
())
if
(
buffer
||
!
NtUser
GetProcessWindowStation
())
{
{
handle
=
CreateWindowStationW
(
winstation
?
winstation
:
L"WinSta0"
,
0
,
WINSTA_ALL_ACCESS
,
NULL
);
handle
=
CreateWindowStationW
(
winstation
?
winstation
:
L"WinSta0"
,
0
,
WINSTA_ALL_ACCESS
,
NULL
);
if
(
handle
)
if
(
handle
)
...
...
dlls/user32/winstation.c
View file @
588dc55e
...
@@ -203,23 +203,6 @@ HWINSTA WINAPI OpenWindowStationW( LPCWSTR name, BOOL inherit, ACCESS_MASK acces
...
@@ -203,23 +203,6 @@ HWINSTA WINAPI OpenWindowStationW( LPCWSTR name, BOOL inherit, ACCESS_MASK acces
}
}
/******************************************************************************
* GetProcessWindowStation (USER32.@)
*/
HWINSTA
WINAPI
GetProcessWindowStation
(
void
)
{
HWINSTA
ret
=
0
;
SERVER_START_REQ
(
get_process_winstation
)
{
if
(
!
wine_server_call_err
(
req
))
ret
=
wine_server_ptr_handle
(
reply
->
handle
);
}
SERVER_END_REQ
;
return
ret
;
}
/***********************************************************************
/***********************************************************************
* SetProcessWindowStation (USER32.@)
* SetProcessWindowStation (USER32.@)
*/
*/
...
@@ -472,7 +455,7 @@ BOOL WINAPI EnumDesktopsW( HWINSTA winsta, DESKTOPENUMPROCW func, LPARAM lparam
...
@@ -472,7 +455,7 @@ BOOL WINAPI EnumDesktopsW( HWINSTA winsta, DESKTOPENUMPROCW func, LPARAM lparam
NTSTATUS
status
;
NTSTATUS
status
;
if
(
!
winsta
)
if
(
!
winsta
)
winsta
=
GetProcessWindowStation
();
winsta
=
NtUser
GetProcessWindowStation
();
while
(
ret
)
while
(
ret
)
{
{
...
...
dlls/win32u/syscall.c
View file @
588dc55e
...
@@ -95,6 +95,7 @@ static void * const syscalls[] =
...
@@ -95,6 +95,7 @@ static void * const syscalls[] =
NtGdiSwapBuffers
,
NtGdiSwapBuffers
,
NtGdiTransformPoints
,
NtGdiTransformPoints
,
NtUserCloseWindowStation
,
NtUserCloseWindowStation
,
NtUserGetProcessWindowStation
,
};
};
static
BYTE
arguments
[
ARRAY_SIZE
(
syscalls
)];
static
BYTE
arguments
[
ARRAY_SIZE
(
syscalls
)];
...
...
dlls/win32u/win32u.spec
View file @
588dc55e
...
@@ -979,7 +979,7 @@
...
@@ -979,7 +979,7 @@
@ stub NtUserGetPriorityClipboardFormat
@ stub NtUserGetPriorityClipboardFormat
@ stub NtUserGetProcessDpiAwarenessContext
@ stub NtUserGetProcessDpiAwarenessContext
@ stub NtUserGetProcessUIContextInformation
@ stub NtUserGetProcessUIContextInformation
@ st
ub NtUserGetProcessWindowStation
@ st
dcall -syscall NtUserGetProcessWindowStation()
@ stub NtUserGetProp
@ stub NtUserGetProp
@ stub NtUserGetQueueStatus
@ stub NtUserGetQueueStatus
@ stub NtUserGetQueueStatusReadonly
@ stub NtUserGetQueueStatusReadonly
...
...
dlls/win32u/winstation.c
View file @
588dc55e
...
@@ -43,3 +43,19 @@ BOOL WINAPI NtUserCloseWindowStation( HWINSTA handle )
...
@@ -43,3 +43,19 @@ BOOL WINAPI NtUserCloseWindowStation( HWINSTA handle )
SERVER_END_REQ
;
SERVER_END_REQ
;
return
ret
;
return
ret
;
}
}
/***********************************************************************
* NtUSerGetProcessWindowStation (win32u.@)
*/
HWINSTA
WINAPI
NtUserGetProcessWindowStation
(
void
)
{
HWINSTA
ret
=
0
;
SERVER_START_REQ
(
get_process_winstation
)
{
if
(
!
wine_server_call_err
(
req
))
ret
=
wine_server_ptr_handle
(
reply
->
handle
);
}
SERVER_END_REQ
;
return
ret
;
}
dlls/wow64win/syscall.h
View file @
588dc55e
...
@@ -81,6 +81,7 @@
...
@@ -81,6 +81,7 @@
SYSCALL_ENTRY( NtGdiSetVirtualResolution ) \
SYSCALL_ENTRY( NtGdiSetVirtualResolution ) \
SYSCALL_ENTRY( NtGdiSwapBuffers ) \
SYSCALL_ENTRY( NtGdiSwapBuffers ) \
SYSCALL_ENTRY( NtGdiTransformPoints ) \
SYSCALL_ENTRY( NtGdiTransformPoints ) \
SYSCALL_ENTRY( NtUserCloseWindowStation )
SYSCALL_ENTRY( NtUserCloseWindowStation ) \
SYSCALL_ENTRY( NtUserGetProcessWindowStation )
#endif
/* __WOW64WIN_SYSCALL_H */
#endif
/* __WOW64WIN_SYSCALL_H */
dlls/wow64win/user.c
View file @
588dc55e
...
@@ -33,3 +33,8 @@ NTSTATUS WINAPI wow64_NtUserCloseWindowStation( UINT *args )
...
@@ -33,3 +33,8 @@ NTSTATUS WINAPI wow64_NtUserCloseWindowStation( UINT *args )
return
NtUserCloseWindowStation
(
handle
);
return
NtUserCloseWindowStation
(
handle
);
}
}
NTSTATUS
WINAPI
wow64_NtUserGetProcessWindowStation
(
UINT
*
args
)
{
return
HandleToUlong
(
NtUserGetProcessWindowStation
()
);
}
include/ntuser.h
View file @
588dc55e
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
#include <winuser.h>
#include <winuser.h>
#include <winternl.h>
#include <winternl.h>
BOOL
WINAPI
NtUserCloseWindowStation
(
HWINSTA
handle
);
BOOL
WINAPI
NtUserCloseWindowStation
(
HWINSTA
handle
);
HWINSTA
WINAPI
NtUserGetProcessWindowStation
(
void
);
#endif
/* _NTUSER_ */
#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