This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: dlsym discussion..



> -----Original Message-----
> From: Robert Collins [mailto:robert.collins@itdomain.com.au]
> Sent: Monday, June 04, 2001 10:11 AM
> To: Andy Moreton; cygwin-developers@cygwin.com
> Subject: Re: dlsym discussion..
>
> ----- Original Message -----
> From: "Andy Moreton" <amoreton@virata.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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]