user32: Set the WSF_VISIBLE flag on the main window station.
This commit is contained in:
parent
6f5131e47f
commit
e94e942618
@ -184,7 +184,19 @@ static void winstation_init(void)
|
|||||||
if (buffer || !GetProcessWindowStation())
|
if (buffer || !GetProcessWindowStation())
|
||||||
{
|
{
|
||||||
handle = CreateWindowStationW( winstation ? winstation : WinSta0, 0, WINSTA_ALL_ACCESS, NULL );
|
handle = CreateWindowStationW( winstation ? winstation : WinSta0, 0, WINSTA_ALL_ACCESS, NULL );
|
||||||
if (handle) SetProcessWindowStation( handle );
|
if (handle)
|
||||||
|
{
|
||||||
|
SetProcessWindowStation( handle );
|
||||||
|
/* only WinSta0 is visible */
|
||||||
|
if (!winstation || !strcmpiW( winstation, WinSta0 ))
|
||||||
|
{
|
||||||
|
USEROBJECTFLAGS flags;
|
||||||
|
flags.fInherit = FALSE;
|
||||||
|
flags.fReserved = FALSE;
|
||||||
|
flags.dwFlags = WSF_VISIBLE;
|
||||||
|
SetUserObjectInformationW( handle, UOI_FLAGS, &flags, sizeof(flags) );
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (buffer || !GetThreadDesktop( GetCurrentThreadId() ))
|
if (buffer || !GetThreadDesktop( GetCurrentThreadId() ))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user