🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#10131
From: Remy Lebeau (TeamB)
Date: Tue, 18 May 2004 16:48
13 lines
1453 bytes
<Tomas> wrote in message news:40a9fd35@newsgroups.borland.com...

> Is it possible to find in DLL the name of the application
> which loaded that dll?

Yes.  Simply call GetModuleFileName() specifying NULL for the hModule
parameter so that you are querying the calling process (the application that
loaded the DLL).  If you want the application's module handle instead of its
filename, use GetModuleHandle() with the lpModuleName parameter set to NULL.


Gambit
Technical Details
Message-ID: <40aa3fa2$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40a9fd35@newsgroups.borland.com>

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
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi,borland.public.delphi.nativeapi.win32
References: <40a9fd35@newsgroups.borland.com>
Subject: Re: "Which application loaded me?" asked the DLL
Date: Tue, 18 May 2004 09:48:48 -0700
Lines: 15
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 67.22.138.253
Message-ID: <40aa3fa2$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1084899234 67.22.138.253 (18 May 2004 09:53:54 -0700)
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail