Winstations and Terminal Server

Hi,

does anyone know of a way to access the desktop object in the terminal server winstation objects???

basically, if you look in a terminal server (win2k), the object looks like this:

//Sessions//windows/Winstations/winsta0

I created a symbolic link to the object, and then, from a user-mode app, I tried to open a handle to that object, but it always fails (not found). How can I obtain a handle for this object, is that even possible??

thanks,

ABe


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

From user-mode, you open WindowStations with OpenWindowStation (or, if
you’re a member of Administrators, you can use CreateWindowStation
instead; non-Administrators cannot specify a WindowStation name in
CreateWindowStation).

To access Desktop objects within the WindowStation (A WindowStation is not
a Desktop; it’s a container, that has a set of Atoms, zero or more
Desktops, a clipboard, and some other odds and sods) you can then use
OpenDesktop.

This is all documented in the Platform SDK.

Beware, however, as GDI has at least one show-stopper when it comes to
using WindowStations/Desktops other than Winsta0 (the interactive
WindowStation).

On Fri, 16 Nov 2001, Ali Beydoun wrote:

Hi,

does anyone know of a way to access the desktop object in the terminal server winstation objects???

basically, if you look in a terminal server (win2k), the object looks like this:

//Sessions//windows/Winstations/winsta0
>
> I created a symbolic link to the object, and then, from a user-mode
> app, I tried to open a handle to that object, but it always fails (not
> found). How can I obtain a handle for this object, is that even
> possible??
>
> thanks,
>
> ABe
>
>
>
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@inkvine.fluff.org
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>


Peter xxxxx@inkvine.fluff.org
http://www.inkvine.fluff.org/~peter/

logic kicks ass:
(1) Horses have an even number of legs.
(2) They have two legs in back and fore legs in front.
(3) This makes a total of six legs, which certainly is an odd number of
legs for a horse.
(4) But the only number that is both odd and even is infinity.
(5) Therefore, horses must have an infinite number of legs.


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

see, the problem is that on Terminal Server, there is more than one Winsta0, namely, for every logged in session. These winstations exist in the path I told you about below, and are not directly visible from user mode thru the OpenWindowStation function, unless you get a valid handle to that object.

Thanks

ABe

>> xxxxx@inkvine.fluff.org 11/16/01 04:19PM >>>
From user-mode, you open WindowStations with OpenWindowStation (or, if
you’re a member of Administrators, you can use CreateWindowStation
instead; non-Administrators cannot specify a WindowStation name in
CreateWindowStation).

To access Desktop objects within the WindowStation (A WindowStation is not
a Desktop; it’s a container, that has a set of Atoms, zero or more
Desktops, a clipboard, and some other odds and sods) you can then use
OpenDesktop.

This is all documented in the Platform SDK.

Beware, however, as GDI has at least one show-stopper when it comes to
using WindowStations/Desktops other than Winsta0 (the interactive
WindowStation).

On Fri, 16 Nov 2001, Ali Beydoun wrote:

Hi,

does anyone know of a way to access the desktop object in the terminal server winstation objects???

basically, if you look in a terminal server (win2k), the object looks like this:

//Sessions//windows/Winstations/winsta0
>
> I created a symbolic link to the object, and then, from a user-mode
> app, I tried to open a handle to that object, but it always fails (not
> found). How can I obtain a handle for this object, is that even
> possible??
>
> thanks,
>
> ABe
>
>
>
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@inkvine.fluff.org
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>


Peter xxxxx@inkvine.fluff.org
http://www.inkvine.fluff.org/~peter/

logic kicks ass:
(1) Horses have an even number of legs.
(2) They have two legs in back and fore legs in front.
(3) This makes a total of six legs, which certainly is an odd number of
legs for a horse.
(4) But the only number that is both odd and even is infinity.
(5) Therefore, horses must have an infinite number of legs.


You are currently subscribed to ntdev as: xxxxx@novell.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com