🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to find if a DLL is still loaded

#3976
From: Bob Gonder
Date: Mon, 10 Apr 2006 16:57
17 lines
1416 bytes
Boba wrote:

>"David"  wrote in message
>> 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.
>>

> try to rename/delete the file.

Might be nicer to use 
	if( 0 == access(filename,2) )
	{	//DLL is free
	}else{
		//DLL in use or read-only
	}
Technical Details
Message-ID: <tf3l32phnths5uo1u53tbh73rsl42315mr@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.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
References: <443a4e43$1@newsgroups.borland.com> <443a8d67@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: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: How to find if a DLL is still loaded
Date: Mon, 10 Apr 2006 09:57:53 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <tf3l32phnths5uo1u53tbh73rsl42315mr@4ax.com>
References: <443a4e43$1@newsgroups.borland.com> <443a8d67@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 69.69.89.106
X-Trace: newsgroups.borland.com 1144688273 69.69.89.106 (10 Apr 2006 09:57:53 -0700)
Lines: 19
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.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