delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2001/06/04/05:20:27

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-developers-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com
From: "Andy Moreton" <amoreton AT virata DOT com>
To: "'Robert Collins'" <robert DOT collins AT itdomain DOT com DOT au>,
<cygwin-developers AT cygwin DOT com>
Subject: RE: dlsym discussion..
Date: Mon, 4 Jun 2001 10:24:21 +0100
Message-ID: <006901c0ecd8$242a7ff0$2b0b070a@cam.virata.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0)
In-Reply-To: <00ef01c0ecd6$41559c60$0200a8c0@lifelesswks>
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
Importance: Normal

> -----Original Message-----
> From: Robert Collins [mailto:robert DOT collins AT itdomain DOT com DOT au]
> Sent: Monday, June 04, 2001 10:11 AM
> To: Andy Moreton; cygwin-developers AT cygwin DOT com
> Subject: Re: dlsym discussion..
>
> ----- Original Message -----
> From: "Andy Moreton" <amoreton AT virata DOT com>
> > Looking at this from the Win32 side of things, perhaps you should look
> > at the ToolHelp library, in particular CreateToolHelp32Snapshot(),
> > Module32First(), and Module32Next().
> >
> > This will give you a list of all modules for the current process.
> > Checking the module handle against the list maintained by cygwin should
> > give the information you need.
> >
>
> Neato. That combined with before/after dlopen will also let  me grab the
> dependant libraries that are automatically loaded as well.
> That won't be fool proof, but it's better than nothing. I suppose we could
> fall back to walking the entire list anyway, but that would likely return
> erroneous results :-[
>
> You wouldn't happen to know of an equivalent function for NT 4.0 would
> you? (MSND lists that function as win95+, Windows 2000+.

Not offhand - I write drivers, and not much ring3 code. The Toolhelp DLL may
be redistributeable for NT4 though...

	AndyM

--
Virata, Unit 230 Cambridge Science Park, Milton Road, Cambridge CB4 4WB, UK
http://www.virata.com/  Tel: +44 1223 707400  Fax: +44 1223 707447

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019