🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: using WTSGetActiveConsoleSessionId()

#458
From: Ed Mulroy [TeamB]
Date: Thu, 17 Apr 2008 16:08
37 lines
2636 bytes
> When you said, use tdump on the object file, which object file did you 
> mean?

The object file whose code calls the function in question.  The idea is to 
use tdump to learn the exact text of the symbol associated with the call to 
the function.  That means -m should be on the tdump command line so that you 
can also see if there is any C++ style name mangling of the public symbol.

.  Ed

> Mike Collins wrote in message
> news:480766b2$1@newsgroups.borland.com...
>
> 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...
Technical Details
Message-ID: <4807761b$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder3.cambrium.nl!feed.tweaknews.nl!newsfeed.kamp.net!newsfeed.kamp.net!news.musoftware.de!wum.musoftware.de!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mail
References: <48074a72@newsgroups.borland.com> <48075419$1@newsgroups.borland.com> <480766b2$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: "Ed Mulroy [TeamB]" <dont_email_me@bitbuc.ket>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <48074a72@newsgroups.borland.com> <48075419$1@newsgroups.borland.com> <480766b2$1@newsgroups.borland.com>
Subject: Re: using WTSGetActiveConsoleSessionId()
Date: Thu, 17 Apr 2008 12:08:56 -0400
Lines: 39
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 71.77.48.179
Message-ID: <4807761b$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1208448539 71.77.48.179 (17 Apr 2008 09:08:59 -0700)
X-Authenticated-User: edmulroy
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder3.cambrium.nl!feed.tweaknews.nl!newsfeed.kamp.net!newsfeed.kamp.net!news.musoftware.de!wum.musoftware.de!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mail