flat assembler
Message board for the users of flat assembler.

Index > Heap > Windows API and PE executables?

Author
Thread Post new topic Reply to topic
rhyno_dagreat



Joined: 31 Jul 2006
Posts: 487
Location: Maryland, Unol Daleithiau
rhyno_dagreat
Hey, I was considering a while back writing a HLL. I was wondering, though, how do most HLLs incorporate the Windows API into their libraries and header files, like how do they work? For example, C I'd say.

Also, I've been wondering what's the structure of PE executables?

Thanks for your time!

-Rhyno DaGreat
Post 07 Dec 2007, 02:23
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
Quote:
Hey, I was considering a while back writing a HLL. I was wondering, though, how do most HLLs incorporate the Windows API into their libraries and header files, like how do they work? For example, C I'd say.

Do you know how to use object files? I mean "format MS COFF" and linker...

Quote:
Also, I've been wondering what's the structure of PE executables?

look at recent post at the end of windows FAQ thread.
Post 07 Dec 2007, 02:58
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
rhyno_dagreat



Joined: 31 Jul 2006
Posts: 487
Location: Maryland, Unol Daleithiau
rhyno_dagreat
vid wrote:

Do you know how to use object files? I mean "format MS COFF" and linker...


No, I have only done stuff primarily with pure BINary and COMmand exe files.

The only actual work I've done with Windows Executables is in HLLs themselves (FreeBasic, Basic4GL, Visual Basic 6 & 2005, Visual C++ 6, 2003, & 2005, etc.) and the IDEs take care of compiling & linking correctly. The only thing I've had to do is make sure the correct libraries were instated and that (if in C/C++) they had the correct header files associated/included in them.
Post 07 Dec 2007, 16:55
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
try to make some executables by compiling to objects, and then linking first
Post 07 Dec 2007, 16:58
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
rhyno_dagreat



Joined: 31 Jul 2006
Posts: 487
Location: Maryland, Unol Daleithiau
rhyno_dagreat
Okay, actually now that I think back to it I did make a batch file for some OS programming in GCC with NASM a while back, but it didn't tell me much except it either linked correctly or didn't. Is it the same process?
Post 07 Dec 2007, 17:24
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
yes
Post 07 Dec 2007, 18:20
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17327
Location: In your JS exploiting you and your system
revolution
rhyno_dagreat wrote:
Also, I've been wondering what's the structure of PE executables?
You can start here http://en.wikipedia.org/wiki/Portable_Executable

Follow some of the links there and read lots.

BTW google is your friend.
Post 08 Dec 2007, 08:58
View user's profile Send private message Visit poster's website Reply with quote
peter



Joined: 09 May 2006
Posts: 63
peter
Post 11 Dec 2007, 01:03
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.