Article View: borland.public.cppbuilder.nativeapi
Article #377Still having problems linking to WTSQueryUserToken & CreateEnvironmentBlock
From: Mike Collins
Date: Fri, 18 Apr 2008 15:29
Date: Fri, 18 Apr 2008 15:29
13 lines
1484 bytes
1484 bytes
Sorry to pester again, only posted yesterday. 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. I've included both header files, WtsApi32.h and Userenv.h and the IDE seems to locate the functions (if i use CTRL and click on the function name, it resolves it to the correct header). But when i compile, i still get "Unresolved External" error. Does anyone have any other ideas before i start dynamically loading them? Mike C
Technical Details
Message-ID:
<4808addc@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.germany.com!newsfeeder.dynfx.net!weretis.net!news.isoc.lu!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,141e3acd14538db2,start X-Google-Attributes: gid10cc67,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Mike Collins" <its@TheBottomOfThePost> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Still having problems linking to WTSQueryUserToken & CreateEnvironmentBlock Date: Fri, 18 Apr 2008 15:29:48 -0000 Lines: 15 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; Original NNTP-Posting-Host: 89.242.30.231 Message-ID: <4808addc@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1208528348 89.242.30.231 (18 Apr 2008 07:19:08 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.germany.com!newsfeeder.dynfx.net!weretis.net!news.isoc.lu!newsgroups.borland.com!not-for-mail