Article View: borland.public.cppbuilder.nativeapi
Article #382Re: Still having problems linking to WTSQueryUserToken & CreateEnvironmentBlock
From: Remy Lebeau (TeamB)
Date: Fri, 18 Apr 2008 16:35
Date: Fri, 18 Apr 2008 16:35
19 lines
1562 bytes
1562 bytes
"Mike Collins" <its@TheBottomOfThePost> wrote in message news:4808addc@newsgroups.borland.com... > Still having problems linking to CreateEnvironmentBlock & > WTSQueryUserToken. I resolved my other problem by re-defining > _WIN32_WINNT, but this doesn't seem to fix the linking problem > with the above api's. That only addresses the *compiler*. Not you have to address the *linker*. Those are handled separately. > But when i compile, i still get "Unresolved External" error. You did not add the relevant .lib files to your project - userenv.lib and wtsapi32.lib. Gambit
Technical Details
Message-ID:
<4808cdd4$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4808addc@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,141e3acd14538db2 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: <4808addc@newsgroups.borland.com> Subject: Re: Still having problems linking to WTSQueryUserToken & CreateEnvironmentBlock Date: Fri, 18 Apr 2008 09:35:16 -0700 Lines: 21 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: <4808cdd4$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1208536532 207.178.157.90 (18 Apr 2008 09:35:32 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail