Article View: borland.public.cppbuilder.nativeapi
Article #3982Re: How to find if a DLL is still loaded
From: Bob Gonder
Date: Mon, 10 Apr 2006 21:17
Date: Mon, 10 Apr 2006 21:17
10 lines
1451 bytes
1451 bytes
Ed Mulroy wrote: >I think that worked under 16 bit Windows but under Win32 I don't think >access will tell if the file is loaded. > >It calls GetFileAttribues and massages the result to decide what to return. >Nothing in the result tells if the file is loaded. Ok, then open file with write access will fail if in use, and doesn't mess with the file if it isn't in use, as rename or delete would.
Technical Details
Message-ID:
<doil321bg3k9ucmfak8uf7bcmo3a2k6re8@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<443a4e43$1@newsgroups.borland.com> <443a8d67@newsgroups.borland.com> <tf3l32phnths5uo1u53tbh73rsl42315mr@4ax.com> <443ac53e@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 14:17:25 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <doil321bg3k9ucmfak8uf7bcmo3a2k6re8@4ax.com> References: <443a4e43$1@newsgroups.borland.com> <443a8d67@newsgroups.borland.com> <tf3l32phnths5uo1u53tbh73rsl42315mr@4ax.com> <443ac53e@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 1144703845 69.69.89.106 (10 Apr 2006 14:17:25 -0700) Lines: 12 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail