🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Active Console Session

#1979
From: Remy Lebeau (TeamB)
Date: Tue, 22 May 2007 21:51
32 lines
1604 bytes
"Jeff" <Jeff@nospam.com> wrote in message
news:46534dba$1@newsgroups.borland.com...

> The function is prototyped in winbase.h, why is my compilation
failing?

Look more carefully at winbase.h.  WTSGetActiveConsoleSessionId() is
wrapped in an #if statement:

    #if _WIN32_WINNT >= 0x0501

    WINBASEAPI
    DWORD
    WINAPI
    WTSGetActiveConsoleSessionId();

    WINBASEAPI
    BOOL
    WINAPI
    IsWow64Process(
    HANDLE hProcess,
    PBOOL Wow64Process
    );

    #endif // (_WIN32_WINNT >= 0x0501)

_WIN32_WINNT is set by winresrc.h to 0x0500 by default in BCB 6.  You
can override it in the "Conditionals" field of the Project Options.


Gambit
Technical Details
Message-ID: <46536648$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <46534dba$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,c370922012d5d485
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <46534dba$1@newsgroups.borland.com>
Subject: Re: Active Console Session
Date: Tue, 22 May 2007 14:51:33 -0700
Lines: 34
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 75.82.60.244
Message-ID: <46536648$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1179870792 75.82.60.244 (22 May 2007 14:53:12 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail