🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #459

Re: using WTSGetActiveConsoleSessionId()

#459
From: Remy Lebeau (TeamB)
Date: Thu, 17 Apr 2008 16:48
15 lines
1375 bytes
"Mike Collins" <its@TheBottomOfThePost> wrote in message 
news:48074a72@newsgroups.borland.com...

> Problem is that the compiler keeps telling me that
> WTSGetActiveConsoleSessionId() is an undefined
> function.
<snip>
> I'm using BCB 6 Enterprise...

You have to re-define _WIN32_WINNT to be 0x0501 or higher.  It is set to 
0x0500 by default.


Gambit 
Technical Details
Message-ID: <48077f50$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder.news-service.com!news.astraweb.com!border2.a.newsrouter.astraweb.com!feeder1.xlned.com!xlned.com!ecngs!feeder.ecngs.de!news.isoc.lu!newsgroups.borland.com!not-for-mail
References: <48074a72@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,61b1edc79d66af39
X-Google-Attributes: gid10cc67,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <48074a72@newsgroups.borland.com>
Subject: Re: using WTSGetActiveConsoleSessionId()
Date: Thu, 17 Apr 2008 09:48:01 -0700
Lines: 17
Organization: Lebeau Software
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
NNTP-Posting-Host: 207.178.157.90
Message-ID: <48077f50$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1208450896 207.178.157.90 (17 Apr 2008 09:48:16 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder.news-service.com!news.astraweb.com!border2.a.newsrouter.astraweb.com!feeder1.xlned.com!xlned.com!ecngs!feeder.ecngs.de!news.isoc.lu!newsgroups.borland.com!not-for-mail