Log in

View Full Version : Exports for an exe???


yaa
November 25th, 2002, 10:52
Hello,

in looking at the symbolic names in a given executable I see exports and imports. Now while imports are clear to me in what they mean, imports are not. What does it mean that an exe shows exports??? How would for example have to be a C program to show exports??? For a DLL to have exports it is normal but an why an exe???

How can symbols exported from an exe be used by other programs??? Is it like for DLL where you need an import library to link those public symbols???

Regards,
yaa

TBD
November 25th, 2002, 11:40
EXE files can be loaded as DLL (to be more exact - as libraries). a good example is OllyDbg. it exports functions needed by plugins but also used inside the program.

yaa
November 25th, 2002, 12:59
How do you link them (or their exported functions) in your own programs???

Regards,
yaa

TBD
November 25th, 2002, 22:23
yaa: check OllyDbg plugin zip for a example (bookmark plugin). you can do it by using libraries or you can do it yourself (LoadLibrary/GetProcAddress)

yaa
November 26th, 2002, 02:50
Ok, I've seen that an import library is provided just like for normal DLL.

Regards,
yaa