🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: using WTSGetActiveConsoleSessionId()

#455
From: Mike Collins
Date: Thu, 17 Apr 2008 16:13
30 lines
2139 bytes
Hay Ed, just a quick follow up, I've done as you suggested - becuase i now 
have three functions that aren't linking.

WTSGetActiveConsoleSessionId is listed under kernal32.dll from the tlib dump
WTSQueryUserToken is not listed
CreateEnvironmentBlock is not listed (the 3rd funciton that is not linking)

When you said, use tdump on the object file, which object file did you mean?

I'm disinclined to to create a lib file and use it in the project becuase it 
AFAIK ties the program in to those funciton (sorry if this sounds stupid 
lol) and the WTSQueryUserToken is not avalible on Win 2k so i suspect that 
it will cause problems (I'll have to work out an alternative route for win 
2k anyway).

I can't track down what IDE option might be causing this issue.  The only 
define that i have is the NO_WIN32_LEAN_AND_MEAN and i've tried removing 
that but it doesn't have any affect.

Any other thoughts?  I can dyncamically load the three functions but it's a 
bit concerning that i can't use them...

Thanks again,

Mike



"Ed Mulroy [TeamB]" <dont_email_me@bitbuc.ket> wrote in message 
news:48075419$1@newsgroups.borland.com... 
Technical Details
Message-ID: <480766b2$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <48074a72@newsgroups.borland.com> <48075419$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> <48075419$1@newsgroups.borland.com>
Subject: Re: using WTSGetActiveConsoleSessionId()
Date: Thu, 17 Apr 2008 16:13:54 -0000
Lines: 32
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: 78.144.108.240
Message-ID: <480766b2$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1208444594 78.144.108.240 (17 Apr 2008 08:03:14 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail