🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Listing the function names exported from a DLL

#15545
From: Remy Lebeau (TeamB)
Date: Tue, 24 Jun 2003 17:46
24 lines
2029 bytes
"Pang Fu" <pangfu@hotmail.com> wrote in message
news:3ef86866@newsgroups.borland.com...
> (1) How to list (programatically) the function names exported from a DLL ?
>     (Similar to using quick-view to see the function list in DLL)

If you want to do it manually, then you would need to walk the DLL's PE
(Portable Executable) header itself.  The PE header is a series of
structures at the very beginning of the file which point out where the
various sections of the DLL are located within the file, such as the
exported functions list, the resources list, the code segments, etc.  Have a
look at the following article for more information:

    An In-Depth Look into the Win32 Portable Executable File Format
    http://msdn.microsoft.com/msdnmag/issues/02/02/PE/default.aspx

> (2) Is there a way to find out return value type and parameter types of
the
> exported functions in DLL?

No.


Gambit
Technical Details
Message-ID: <3ef88d66$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3ef86866@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,1890f61c616b91d6
X-Google-Attributes: gid10cc67,public
X-Google-Thread: f94dd,1890f61c616b91d6
X-Google-Attributes: gidf94dd,public
X-Google-ArrivalTime: 2003-06-24 11:23:06 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi,borland.public.delphi.nativeapi
References: <3ef86866@newsgroups.borland.com>
Subject: Re: Listing the function names exported from a DLL
Date: Tue, 24 Jun 2003 10:46:05 -0700
Lines: 26
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: 207.175.226.26
Message-ID: <3ef88d66$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1056476518 207.175.226.26 (24 Jun 2003 10:41:58 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail