Article View: borland.public.cppbuilder.nativeapi
Article #3978Re: How to find if a DLL is still loaded
From: Dennis Jones
Date: Mon, 10 Apr 2006 19:04
Date: Mon, 10 Apr 2006 19:04
23 lines
1666 bytes
1666 bytes
"David" <davids@unite.com.au> wrote in message news:443a4e43$1@newsgroups.borland.com... > I wish to know if a DLL which is loaded from another process is still loaded > and running. I don't call the DLL myself but just wish to know if it is > still loaded in memory. > > Is this possible ?? > There's probably an easier way, but the first thing that comes to mind is to enumerate the modules loaded by each process currently running on the system, looking for the one you're interested in. If you don't find it, it isn't loaded. See the following link for how to enumerate all of the processes and modules in the system: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/perfmon/bas e/taking_a_snapshot_and_viewing_processes.asp - Dennis
Technical Details
Message-ID:
<443aac3c$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<443a4e43$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,14aae0d621067c62 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Dennis Jones" <nospam@nospam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <443a4e43$1@newsgroups.borland.com> Subject: Re: How to find if a DLL is still loaded Date: Mon, 10 Apr 2006 12:04:29 -0700 Lines: 25 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 71.245.109.58 Message-ID: <443aac3c$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1144695868 71.245.109.58 (10 Apr 2006 12:04:28 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail