Article View: borland.public.cppbuilder.nativeapi
Article #10080Re: Finding the function names exported fom a DLL
From: Remy Lebeau (TeamB)
Date: Wed, 12 May 2004 17:37
Date: Wed, 12 May 2004 17:37
26 lines
2053 bytes
2053 bytes
<std> wrote in message news:40a18da3@newsgroups.borland.com...
> How can we find in our application (without using
> any external utiliy program) the names exported
> from a DLL ?
You will have to open up the DLL file in binary mode and look at its PE
(Portable Executable) header located at the very beginning of the raw file
data. The header will contain an offset value that you can then seek to in
order to reach the list of exported function names.
Have a look at the following articles to get you started:
An In-Depth Look into the Win32 Portable Executable File Format
http://msdn.microsoft.com/msdnmag/issues/02/02/PE/default.aspx
An In-Depth Look into the Win32 Portable Executable File Format, Part 2
http://msdn.microsoft.com/msdnmag/issues/02/03/PE2/default.aspx
Peering Inside the PE: A Tour of the Win32 Portable Executable File
Format
http://msdn.microsoft.com/library/en-us/dndebug/html/msdn_peeringpe.asp
Gambit
Technical Details
Message-ID:
<40a26210$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!border2.nntp.sjc.giganews.com!border1.nntp.sjc.giganews.com!nntp.giganews.com!sjc1.usenetserver.com!atl-c02.usenetserver.com!news.usenetserver.com!peer01.cox.net!cox.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<40a18da3@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,ba657a85dac7b559 X-Google-Attributes: gid10cc67,public From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <40a18da3@newsgroups.borland.com> Subject: Re: Finding the function names exported fom a DLL Date: Wed, 12 May 2004 10:37:16 -0700 Lines: 28 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 67.22.138.253 Message-ID: <40a26210$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1084383760 67.22.138.253 (12 May 2004 10:42:40 -0700) Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!border2.nntp.sjc.giganews.com!border1.nntp.sjc.giganews.com!nntp.giganews.com!sjc1.usenetserver.com!atl-c02.usenetserver.com!news.usenetserver.com!peer01.cox.net!cox.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail