Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / May 2006

Tip: Looking for answers? Try searching our database.

How to get list of exported functions (unmanaged DLL)?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dmosoft@yandex.ru - 04 May 2006 15:14 GMT
I am searching for how to get list of exported functions from unmanaged
dll. Is it possible to do this (by P/Invoke)?

Dmitry.
Jason Newell - 04 May 2006 15:34 GMT
dumpbin.exe /exports unmanaged.dll

Jason Newell

> I am searching for how to get list of exported functions from unmanaged
> dll. Is it possible to do this (by P/Invoke)?
>
> Dmitry.
dmosoft@yandex.ru - 04 May 2006 19:39 GMT
Thanks,
But I wish to make it in my code (System.Runtime.InteropServices
namespace or other).

Dmitry.
Mattias Sjögren - 04 May 2006 21:44 GMT
>But I wish to make it in my code (System.Runtime.InteropServices
>namespace or other).

There's no class in the BCL that will do this for you. You'll have to
write the code yourself by studying the PE file format and looking at
the Import Address Table (IAT) in the executable. This article is a
good read

http://msdn.microsoft.com/msdnmag/issues/02/03/PE2/

Mattias

Signature

Mattias Sjögren [C# MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.

Jason Newell - 04 May 2006 22:31 GMT
Very nice read.  I looked and looked for an article like that and
couldn't find one.  Thanks Mattias.

Jason

>>But I wish to make it in my code (System.Runtime.InteropServices
>>namespace or other).
[quoted text clipped - 7 lines]
>
> Mattias

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.