source: trunk/kLdr/kLdrModMZ.h@ 3525

Last change on this file since 3525 was 3525, checked in by bird, 18 years ago

made the format headers usable externally.

  • Property svn:keywords set to Id
File size: 836 bytes
Line 
1/* $Id: kLdrModMZ.h 3525 2007-08-19 22:14:55Z bird $ */
2
3#ifndef __kLdrModMZ_h__
4#define __kLdrModMZ_h__
5
6#include "kLdrBase.h"
7
8#pragma pack(1) /* not required */
9
10typedef struct _IMAGE_DOS_HEADER
11{
12 uint16_t e_magic;
13 uint16_t e_cblp;
14 uint16_t e_cp;
15 uint16_t e_crlc;
16 uint16_t e_cparhdr;
17 uint16_t e_minalloc;
18 uint16_t e_maxalloc;
19 uint16_t e_ss;
20 uint16_t e_sp;
21 uint16_t e_csum;
22 uint16_t e_ip;
23 uint16_t e_cs;
24 uint16_t e_lfarlc;
25 uint16_t e_ovno;
26 uint16_t e_res[4];
27 uint16_t e_oemid;
28 uint16_t e_oeminfo;
29 uint16_t e_res2[10];
30 uint32_t e_lfanew;
31} IMAGE_DOS_HEADER;
32typedef IMAGE_DOS_HEADER *PIMAGE_DOS_HEADER;
33
34#ifndef IMAGE_DOS_SIGNATURE
35# define IMAGE_DOS_SIGNATURE KLDR_LE2H_U16('M' | ('Z' << 8))
36#endif
37
38#pragma pack()
39
40#endif
41
Note: See TracBrowser for help on using the repository browser.