Article View: borland.public.cppbuilder.nativeapi
Article #3907Re: How to find if a DLL is still loaded
From: Dennis Jones
Date: Thu, 13 Apr 2006 15:09
Date: Thu, 13 Apr 2006 15:09
27 lines
2061 bytes
2061 bytes
"Boba" <Boba@somewhere.world> wrote in message news:443e58c4$1@newsgroups.borland.com... > > "Dennis Jones" <nospam@nospam.com> wrote in message > news:443bf6f6$1@newsgroups.borland.com... > > ... > > Can you provide an example of a process that would not be > in the list of "all processes in the system?" > > if you have an nt handy, look to see if the Client Server Runtime > Process > is running; if so - is the module loaded? what do you use to list 'all' > the modules curently loaded? I do have NT handy, and I'm not sure where you were suggesting I look, but I do not see that particular process in task manager. The code I posted earlier is what I used (see the message I posted on 4/10). That code, however, will not run on NT because NT does not provide imeplementations of the CreateToolhelp32Snapshot-related functions. If you must use NT, there are functions in PSAPI.DLL that will allow you to enumerate processes and modules in a fashion similar to how I did it in my example. - Dennis
Technical Details
Message-ID:
<443e698b$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> <443aac3c$1@newsgroups.borland.com> <443bd8e0$1@newsgroups.borland.com> <443bf6f6$1@newsgroups.borland.com> <443e58c4$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> <443aac3c$1@newsgroups.borland.com> <443bd8e0$1@newsgroups.borland.com> <443bf6f6$1@newsgroups.borland.com> <443e58c4$1@newsgroups.borland.com> Subject: Re: How to find if a DLL is still loaded Date: Thu, 13 Apr 2006 08:09:01 -0700 Lines: 29 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: <443e698b$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1144940939 71.245.109.58 (13 Apr 2006 08:08:59 -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