[ros-kernel] Desktops vs Windowstations

Skywing skywing at valhallalegends.com
Thu Dec 18 16:09:43 CET 2003


The desktop window handle is not null - GetDesktopWindow returns a non-null
value.

 

-----Original Message-----
From: ros-kernel-bounces at reactos.com [mailto:ros-kernel-bounces at reactos.com]
On Behalf Of Andrew "Silver Blade" Greenwood
Sent: Thursday, December 18, 2003 4:55 AM
To: ReactOS Kernel List
Subject: Re: [ros-kernel] Desktops vs Windowstations

 

That sounds accurate to me.

 

I do recall reading a while ago that any window which has no owner
specified, is in fact owned by the desktop. This is presumably because the
desktop handle is 0 (NULL), and when you don't specify an owner or parent
for a window, you specify NULL, aka the desktop window.

 

At least, that's how I interpreted it...

 

----- Original Message ----- 

From: Richard Campbell <mailto:eek2121 at comcast.net>  

To: ros-kernel at reactos.com 

Sent: Thursday, December 18, 2003 9:32 AM

Subject: [ros-kernel] Desktops vs Windowstations

 

those who remember there was a discussion a while back about the ownership
of windows, some thought that windows were owned by the desktop, others
thought the windows were owned by the windowstation, well just a little bit
ago, a buddy of mine and i were messing around with desktops and
windowstations, we looked up the functions calls CreateDesktop and
CreateWindowStation and he pointed out that microsoft themselves admits that
windows are owned by the desktop, NOT by the windowstation:

The CreateDesktop function creates a new desktop on the window station
associated with the calling process. It retrieves a handle that can be used
to access the new desktop. The calling process must have an associated
window station, either assigned by the system at process creation time or
set by
<http://msdn.microsoft.com/library/en-us/dllproc/base/setprocesswindowstatio
n.asp> SetProcessWindowStation. A desktop is a secure object contained
within a window station object. A desktop has a logical display surface and
contains windows, menus, and hooks.

The CreateWindowStation function creates a window station object. It
retrieves a handle that can be used to access the window station. A window
station is a secure object that contains a set of global atoms, a clipboard,
and a set of desktop objects.

I post this now because i believe reactos's implementation is incorrect.
I'm NOT posting this to start some huge flamewar.


  _____  


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://reactos.com:8080/pipermail/ros-kernel/attachments/20031218/d59fdcef/attachment-0001.htm


More information about the Ros-kernel mailing list