Article View: borland.public.cppbuilder.nativeapi
Article #15059Re: Terminal Server?
From: Shane Stump
Date: Fri, 18 Jul 2003 17:47
Date: Fri, 18 Jul 2003 17:47
30 lines
2086 bytes
2086 bytes
Thanks! Regards, Shane "Remy Lebeau (TeamB)" <gambit47@yahoo.com> wrote in message news:3f1825bc@newsgroups.borland.com... > > "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:
<3f1832a1$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!216.170.153.135.MISMATCH!tdsnet-transit!newspeer.tds.net!205.215.62.125.MISMATCH!in.100proofnews.com!in.100proofnews.com!news-xfer.cox.net!peer02.cox.net!peer01.cox.net!cox.net!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3f1809f9@newsgroups.borland.com> <3f1825bc@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:57:10 PST From: "Shane Stump" <ShaneStump@TanstaaflSoftware.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f1809f9@newsgroups.borland.com> <3f1825bc@newsgroups.borland.com> Subject: Re: Terminal Server? Date: Fri, 18 Jul 2003 12:47:09 -0500 Lines: 32 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.1165 NNTP-Posting-Host: 64.233.66.182 Message-ID: <3f1832a1$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1058550433 64.233.66.182 (18 Jul 2003 10:47:13 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!216.170.153.135.MISMATCH!tdsnet-transit!newspeer.tds.net!205.215.62.125.MISMATCH!in.100proofnews.com!in.100proofnews.com!news-xfer.cox.net!peer02.cox.net!peer01.cox.net!cox.net!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail