Article View: borland.public.cppbuilder.nativeapi
Article #15057Re: Terminal Server?
From: Remy Lebeau (TeamB)
Date: Fri, 18 Jul 2003 16:57
Date: Fri, 18 Jul 2003 16:57
19 lines
1744 bytes
1744 bytes
"Shane Stump" <ShaneStump@TanstaaflSoftware.com> wrote in message news:3f1809f9@newsgroups.borland.com... > Does anyone know of a way to know if an application > is being run under Microsoft Terminal Server? Getting the System Version http://msdn.microsoft.com/library/en-us/sysinfo/base/getting_the_system_vers ion.asp If the wSuiteMask member of OSVERSIONINFOEX contains VER_SUITE_TERMINAL, Terminal Services is installed. This however doesn't say if the current session is a terminal session or a session on the server console. You can use GetSystemMetrics(SM_REMOTESESSION) to test if the calling process is associated with a Terminal Services client session or the Terminal Server console session. Gambit
Technical Details
Message-ID:
<3f1825bc@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f1809f9@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,ba90c4a3b1d341c0 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-07-18 10:10:30 PST From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f1809f9@newsgroups.borland.com> Subject: Re: Terminal Server? Date: Fri, 18 Jul 2003 09:57:28 -0700 Lines: 21 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 207.175.226.26 Message-ID: <3f1825bc@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1058547132 207.175.226.26 (18 Jul 2003 09:52:12 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail