View Single Post
  #2  
Old 05-30-2009, 07:55 PM
WX_0 WX_0 is offline
Junior Member
 
Join Date: May 2009
Posts: 4
Default

Quote:
Originally Posted by adityamolugu View Post
hi,
how does windows loader work???. i have a executable which does not follow PE format,but i am able to run that...hows that possible???
The portable executable isn't the only Windows executable in existance - could you be working with a COM file? It's one 64k segment, no more, but possibly less.

Code:
        +-------------------------+
    00h |  Old-style header info  |
        +-------------------------+
    20h |        Reserved         |
        +-------------------------+
    3Ch |   Offset to segmented   |
        |       .EXE header       |
        +-------------------------+
    40h |  Relocation table and   |
        |  MS-DOS stub program    |
        +-------------------------+
        |  Segmented .EXE Header  |
        |           .             |
        |           .             |
        |           .             |
Source: http://support.microsoft.com/kb/65122
Reply With Quote