🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: using WTSGetActiveConsoleSessionId()

#365
From: Mike Collins
Date: Thu, 17 Apr 2008 21:40
23 lines
1869 bytes
Happy days at the farm...

That is certainly much easier than using GetProcAddress.  I stuck it in the 
conditionals of the project options, thought I didn't initially realise that 
you had to use the = sign in-between the name and the value i.e. 
_WIN32_WINNT=0x0501.

Believe it or not, I did consider that the _WIN32_WINNT must be incorrect 
when i first tried to use the functions because in the winbase.h the 
functions are only declared within the _WIN32_WINNT defs.  But i stuck in 
the re-definition where i was trying to use it as opposed to in the 
conditionals like you have suggested.

Once again, thanks to both of you guys.

Sure I'll be posting again in a few hours when the code doesn't actually 
work lol

Have a good day,

Mike

"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message 
Technical Details
Message-ID: <4807b336$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!news.isoc.lu!newsgroups.borland.com!not-for-mail
References: <48074a72@newsgroups.borland.com> <48077f50$1@newsgroups.borland.com> <480788ac@newsgroups.borland.com> <48079fcc$1@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: "Mike Collins" <its@TheBottomOfThePost>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <48074a72@newsgroups.borland.com> <48077f50$1@newsgroups.borland.com> <480788ac@newsgroups.borland.com> <48079fcc$1@newsgroups.borland.com>
Subject: Re: using WTSGetActiveConsoleSessionId()
Date: Thu, 17 Apr 2008 21:40:23 -0000
Lines: 25
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.3790.3959
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4133
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 89.242.18.98
Message-ID: <4807b336$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1208464182 89.242.18.98 (17 Apr 2008 13:29:42 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!news.isoc.lu!newsgroups.borland.com!not-for-mail