Article View: borland.public.cppbuilder.nativeapi
Article #1665Re: Directory Contents
From: Jeff
Date: Wed, 27 Jun 2007 18:58
Date: Wed, 27 Jun 2007 18:58
27 lines
2367 bytes
2367 bytes
> Oops, you're right, I think it's because I'm running as a system service. > I'll need to impersonate the logged on user. Thanks Gambit! Gambit please help, I'm trying to use WTSGetActiveConsoleSessionId() in BCB 2006 and it says it's an undefined function. When I add "_WIN32_WINNT=0x0501" to the defines I get compilation errors from Windows.hpp: Errors: [C++ Error] Windows.hpp(2435): E2040 Declaration terminated incorrectly [C++ Error] Windows.hpp(2436): E2040 Declaration terminated incorrectly [C++ Error] Windows.hpp(2437): E2040 Declaration terminated incorrectly [C++ Error] Windows.hpp(2438): E2040 Declaration terminated incorrectly [C++ Error] Windows.hpp(2439): E2040 Declaration terminated incorrectly [C++ Error] Windows.hpp(2440): E2040 Declaration terminated incorrectly [C++ Error] Windows.hpp(2441): E2040 Declaration terminated incorrectly [C++ Error] Windows.hpp(2442): E2040 Declaration terminated incorrectly Code from Windows.hpp errors refer to: static const Shortint WTS_CONSOLE_CONNECT = 0x1; static const Shortint WTS_CONSOLE_DISCONNECT = 0x2; static const Shortint WTS_REMOTE_CONNECT = 0x3; static const Shortint WTS_REMOTE_DISCONNECT = 0x4; static const Shortint WTS_SESSION_LOGON = 0x5; static const Shortint WTS_SESSION_LOGOFF = 0x6; static const Shortint WTS_SESSION_LOCK = 0x7; static const Shortint WTS_SESSION_UNLOCK = 0x8;
Technical Details
Message-ID:
<4682b382$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<46829425@newsgroups.borland.com> <468298db$1@newsgroups.borland.com> <46829f91$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,e2485f93863e826a X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Jeff" <Jeff@nospam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <46829425@newsgroups.borland.com> <468298db$1@newsgroups.borland.com> <46829f91$1@newsgroups.borland.com> Subject: Re: Directory Contents Date: Wed, 27 Jun 2007 12:58:09 -0600 Lines: 29 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.3138 NNTP-Posting-Host: 198.68.195.79 Message-ID: <4682b382$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1182970754 198.68.195.79 (27 Jun 2007 11:59:14 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail