🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: "Which application loaded me?" asked the DLL

#10129
From: Rob Kennedy
Date: Tue, 18 May 2004 15:12
12 lines
1483 bytes
Mike Williams (TeamB) wrote:
> On 18 May 2004, <Tomas> wrote:
>> Is it possible to find in DLL the name of the application which loaded
>> that dll?
> 
> GetModuleFileName(HInstance, FileNameBuf, sizeof(FileNameBuf));

That answers the question "Which file am I in?" To answer the question 
in the subject line, the first parameter should be 0.

-- 
Rob
Technical Details
Message-ID: <40aa27e4$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <40a9fd35@newsgroups.borland.com> <Xns94ED56C494E6Fmikewteamb@207.105.83.66>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,198e432f54304df2
X-Google-Thread: 14438e,198e432f54304df2
X-Google-Attributes: gid10cc67,gid14438e,public
Date: Tue, 18 May 2004 10:12:45 -0500
From: Rob Kennedy <.>
Organization: none
User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi,borland.public.delphi.nativeapi.win32
Subject: Re: "Which application loaded me?" asked the DLL
References: <40a9fd35@newsgroups.borland.com> <Xns94ED56C494E6Fmikewteamb@207.105.83.66>
In-Reply-To: <Xns94ED56C494E6Fmikewteamb@207.105.83.66>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 68.74.193.235
Message-ID: <40aa27e4$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1084893156 68.74.193.235 (18 May 2004 08:12:36 -0700)
Lines: 12
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail