Thanks Max

I had already found the API and am attempting to use it correctly, im a bit
confused with how to interpret the results at the moment.  Your
recommendation confirms I should be bothering with this :)


Rob Martin
Software Engineer

phone 03 377 0495
fax 03 377 0496
web www.chreos.com
----- Original Message ----- 
From: "Max Nilson" <[EMAIL PROTECTED]>
To: "'NZ Borland Developers Group - Delphi List'" <[EMAIL PROTECTED]>
Sent: Thursday, May 27, 2004 9:38 AM
Subject: RE: [DUG] GetComputerName API and Windows TS


> Rob Martin asked us:
>
> > Our app has been displaying the NetBIOS name of each client computer
> > in its log.  However in a Terminal Server environment the
> > GetComputerName API (that we use to get the name) always returns the
> > TS Server computer and is therefore the same for all TS users.  I
> > have tried  GetComputerNameEx but that does not seem to provide the
> > desired information either.  Does anybody have any suggestions as to
> > how to achieve this?
>
> You need to use the WTSQuerySessionInformation call located in the
> wtsapi32.dll. Have a look at the relevant MSDN documentation for more on
how
> this stuff. From it you can extract the name of the machine that is
> displaying the session that you are running in.
>
> Cheers, Max.
>
>
> _______________________________________________
> Delphi mailing list
> [EMAIL PROTECTED]
> http://ns3.123.co.nz/mailman/listinfo/delphi
>
>

_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to