[DUG] Terminal Server

Rohit Gupta rohit at cfl.co.nz
Wed May 3 14:46:11 NZST 2006


Hey, thanks.  If this works, I like it.  The one I use is a pig of thing obtained 
from MS.  and it tells me that all XP sessions are TS sessions.  :-)

From:           	"John Bird" <johnkbird at paradise.net.nz>
To:             	"'staff'" <staff at belding.co.nz>,
       	"'NZ Borland Developers Group - Delphi List'" <delphi at ns3.123.co.nz>
Subject:        	RE: [DUG] Terminal Server
Date sent:      	Wed, 3 May 2006 14:31:14 +1200
Organization:   	John Bird Consulting
Copies to:      	
Send reply to:  	johnkbird at paradise.net.nz,
       	NZ Borland Developers Group - Delphi List <delphi at ns3.123.co.nz>
	<mailto:delphi-request at ns3.123.co.nz?subject=unsubscribe>
	<mailto:delphi-request at ns3.123.co.nz?subject=subscribe>

[ Double-click this line for list subscription options ] 

Aha - Now I am confused!

Can the same login name be used on a Windows network from 2 different
screens?

I have now been given two answers - yes and no from two people who I was
sure knew the answer until now!

Incidentally this code works to detect if the program is running in a
RDP/Terminal Server session, I tested it to make sure it is compatible with
all of Windows 95/98/XP/2003 TS.

function xfIsRemoteSession: Boolean;
const
  sm_RemoteSession = $1000; { from WinUser.h }
begin
  Result := (GetSystemMetrics(sm_RemoteSession) <> 0);
end;

John

-----Original Message-----
From: staff [mailto:staff at belding.co.nz] 
Sent: Wednesday, 3 May 2006 1:41 p.m.
To: johnkbird at paradise.net.nz; NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Terminal Server


Hello John

I thought a Windows login name was unique. The domain logged into requires, 
as far as I know, a unique login name. Win 2003 server will not accept a 
login name that is not unique. I am using the Windows login name to identify

users in a Delphi Firebird apps.

Regards
Russell


----- Original Message ----- 
From: "John Bird" <johnkbird at paradise.net.nz>
To: "'NZ Borland Developers Group - Delphi List'" <delphi at ns3.123.co.nz>
Sent: Tuesday, May 02, 2006 5:03 PM
Subject: [DUG] Terminal Server


> Terminal Server:
>
> For tracking users (not necessarily for licencing), but for log files, 
> working out who did what, what are the best variables to identify 
> individual users on a TS system?
>
> I tend to use environment variables, I guess the best is to use a 
> combination of SESSIONNAME and USERNAME
>
> (USERNAME (Windows login name) is not necessarily unique as I 
> understand)
>
> (COMPUTERNAME is just the server in this case).
>
> How do others distinguish users on a TS system?
> (I submitted this question again with the correct subject to make it
> clearer)
>
> John
>
>
> _______________________________________________
> Delphi mailing list
> Delphi at ns3.123.co.nz http://ns3.123.co.nz/mailman/listinfo/delphi
> 




__________ NOD32 1.1461 (20060329) Information __________

This message was checked by NOD32 antivirus system. http://www.eset.com



_______________________________________________
Delphi mailing list
Delphi at ns3.123.co.nz
http://ns3.123.co.nz/mailman/listinfo/delphi
Regards

Rohit

======================================================================
CFL - Computer Fanatics Ltd.  21 Barry's Point Road, AKL, New Zealand
PH    (649) 489-2280 
FX    (649) 489-2290
email rohit at cfl.co.nz  or  r.gupta at xtra.co.nz
======================================================================




More information about the Delphi mailing list