flat assembler
Message board for the users of flat assembler.

Index > Windows > IMAGE_NT_HEADERS structure

Author
Thread Post new topic Reply to topic
Tommy



Joined: 17 Jun 2003
Posts: 489
Location: Norway
Tommy 18 Jun 2004, 08:18
Any of you who has an include file with the definations for IMAGE_NT_HEADERS and related structures and constants? Is that something we should write and include in the FASM package?

Regards,
Tommy
Post 18 Jun 2004, 08:18
View user's profile Send private message Visit poster's website Reply with quote
pelaillo
Missing in inaction


Joined: 19 Jun 2003
Posts: 878
Location: Colombia
pelaillo 18 Jun 2004, 12:26
Code:
struc IMAGE_DATA_DIRECTORY
  {
  .VirtualAddress dd  ?
  .isize              dd  ?
  }
struct IMAGE_DATA_DIRECTORY

struc IMAGE_OPTIONAL_HEADER32
  {
  .Magic                         dw  ?
  .MajorLinkerVersion            db  ?
  .MinorLinkerVersion            db  ?
  .SizeOfCode                    dd  ?
  .SizeOfInitializedData         dd  ?
  .SizeOfUninitializedData       dd  ?
  .AddressOfEntryPoint           dd  ?
  .BaseOfCode                    dd  ?
  .BaseOfData                    dd  ?
  .ImageBase                     dd  ?
  .SectionAlignment              dd  ?
  .FileAlignment                 dd  ?
  .MajorOperatingSystemVersion   dw  ?
  .MinorOperatingSystemVersion   dw  ?
  .MajorImageVersion             dw  ?
  .MinorImageVersion             dw  ?
  .MajorSubsystemVersion         dw  ?
  .MinorSubsystemVersion         dw  ?
  .Win32VersionValue             dd  ?
  .SizeOfImage                   dd  ?
  .SizeOfHeaders                 dd  ?
  .CheckSum                      dd  ?
  .Subsystem                     dw  ?
  .DllCharacteristics            dw  ?
  .SizeOfStackReserve            dd  ?
  .SizeOfStackCommit             dd  ?
  .SizeOfHeapReserve             dd  ?
  .SizeOfHeapCommit              dd  ?
  .LoaderFlags                   dd  ?
  .NumberOfDirectories           dd  ?
  .DataDirectory                IMAGE_DATA_DIRECTORY
  .Directories          rb IMAGE_DATA_DIRECTORY*15
  }
struct IMAGE_OPTIONAL_HEADER32

struc IMAGE_FILE_HEADER
  {
  .Machine               dw ?
  .NumberOfSections      dw ?
  .TimeDateStamp         dd ?
  .PointerToSymbolTable  dd ?
  .NumberOfSymbols       dd ?
  .SizeOfOptionalHeader  dw ?
  .Characteristics       dw ?
  }
struct IMAGE_FILE_HEADER

struc IMAGE_NT_HEADERS
  {
  .Signature         dd ?
  .FileHeader        IMAGE_FILE_HEADER
  .OptionalHeader    IMAGE_OPTIONAL_HEADER32
  }
struct IMAGE_NT_HEADERS

struc IMAGE_EXPORT_DIRECTORY
  {
  .Characteristics       dd  ?
  .TimeDateStamp         dd  ?
  .MajorVersion          dw  ?
  .MinorVersion          dw  ?
  .nName                     dd  ?
  .nBase                     dd  ?
  .NumberOfFunctions dd  ?
  .NumberOfNames         dd  ?
  .AddressOfFunctions    dd  ?
  .AddressOfNames            dd  ?
  .AddressOfNameOrdinals dd  ?
  }
struct IMAGE_EXPORT_DIRECTORY

struc IMAGE_DOS_HEADER
  {
  .e_magic           dw ?
  .e_cblp            dw ?
  .e_cp              dw ?
  .e_crlc            dw ?
  .e_cparhdr         dw ?
  .e_minalloc        dw ?
  .e_maxalloc        dw ?
  .e_ss              dw ?
  .e_sp              dw ?
  .e_csum            dw ?
  .e_ip              dw ?
  .e_cs              dw ?
  .e_lfarlc          dw ?
  .e_ovno            dw ?
  .e_res             rw 4
  .e_oemid           dw ?
  .e_oeminfo         dw ?
  .e_res2            rw 10
  .e_lfanew          dd ?
  }
struct IMAGE_DOS_HEADER

struc IMAGE_SECTION_HEADER
  {
  .Name                 rb 8
  .VirtualSize          dd ?
  .VirtualAddress       dd ?
  .SizeOfRawData        dd ?
  .OffsetToRawData      dd ?
  .OffsetToRelocations  dd ?
  .OffsetToLinenumbers  dd ?
  .NumberOfRelocations  dw ?
  .NumberOfLinenumbers  dw ?
  .Characteristics      dd ?
  }
struct IMAGE_SECTION_HEADER

    
Post 18 Jun 2004, 12:26
View user's profile Send private message Yahoo Messenger Reply with quote
Tommy



Joined: 17 Jun 2003
Posts: 489
Location: Norway
Tommy 18 Jun 2004, 17:32
Thanks! Very Happy
Post 18 Jun 2004, 17:32
View user's profile Send private message Visit poster's website Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1150
Location: Russian Federation
comrade 19 Jun 2004, 00:53
i have more here if u want


Description:
Download
Filename: imagehdr.inc
Filesize: 10.52 KB
Downloaded: 611 Time(s)


_________________
comrade (comrade64@live.com; http://comrade.ownz.com/)
Post 19 Jun 2004, 00:53
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
Tommy



Joined: 17 Jun 2003
Posts: 489
Location: Norway
Tommy 19 Jun 2004, 08:02
Thanks, Comrade! Cool
Post 19 Jun 2004, 08:02
View user's profile Send private message Visit poster's website Reply with quote
Aku



Joined: 28 Jan 2011
Posts: 1
Aku 08 Feb 2011, 01:32
Thanks for this c00l job
Post 08 Feb 2011, 01:32
View user's profile Send private message Reply with quote
Coty



Joined: 17 May 2010
Posts: 553
Location: ␀
Coty 08 Feb 2011, 02:41
@Aku: Wow! 6 and a half year old bump! Shocked
Post 08 Feb 2011, 02:41
View user's profile Send private message Send e-mail Visit poster's website Reply with quote
xDOBORAx



Joined: 09 Jun 2013
Posts: 24
xDOBORAx 28 Jul 2013, 20:20
hey im just digging up old post
Post 28 Jul 2013, 20:20
View user's profile Send private message Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1150
Location: Russian Federation
comrade 01 Aug 2013, 09:07
Great!
Post 01 Aug 2013, 09:07
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number 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 cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.