[ros-kernel] Desktops vs Windowstations

Skywing skywing at valhallalegends.com
Thu Dec 18 17:07:05 CET 2003


You cannot use SetThreadDesktop (or any other means) to change a thread's
desktop if that thread owns any windows (as I pointed out in a previous
message).  This is well documented in the Platform SDK - see
"SetThreadDesktop".  Again, similar restrictions are in place for
SetProcessWindowStation.

-----Original Message-----
From: ros-kernel-bounces at reactos.com [mailto:ros-kernel-bounces at reactos.com]
On Behalf Of Thomas Weidenmueller
Sent: Thursday, December 18, 2003 8:54 AM
To: ReactOS Kernel List
Subject: Re: [ros-kernel] Desktops vs Windowstations

Richard Campbell wrote:

> windows are owned by the desktop, NOT by the windowstation:

First of all, all windows are of course owned by the desktop that their 
thread is assigned to. But since you can change the desktop for the 
current thread you would need to move the windows to the other desktop, 
that would mean if another window in the other desktop had the same 
handle it would be impossible without changing the handle. Latter is 
impossible, so imo our implementation is not wrong, maybe not 100% right 
but afaik all window handles are unique within one window station, that 
means the handle table must be owned by the window station.

Thomas


_______________________________________________
Ros-kernel mailing list
Ros-kernel at reactos.com
http://reactos.com/mailman/listinfo/ros-kernel




More information about the Ros-kernel mailing list