source: trunk/include/k/kLdrFmts/mz.h@ 2

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

Imported http://svn.netlabs.org/repos/libc/trunk/kStuff, revision 3612.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Revision
File size: 876 bytes
Line 
1/* $Id: mz.h 2 2007-11-16 16:07:14Z bird $ */
2/** @file
3 * MZ structures, types and defines.
4 */
5
6#ifndef ___k_kLdrFmts_mz_h___
7#define ___k_kLdrFmts_mz_h___
8
9#include <k/kDefs.h>
10#include <k/kTypes.h>
11
12#pragma pack(1) /* not required */
13
14typedef struct _IMAGE_DOS_HEADER
15{
16 KU16 e_magic;
17 KU16 e_cblp;
18 KU16 e_cp;
19 KU16 e_crlc;
20 KU16 e_cparhdr;
21 KU16 e_minalloc;
22 KU16 e_maxalloc;
23 KU16 e_ss;
24 KU16 e_sp;
25 KU16 e_csum;
26 KU16 e_ip;
27 KU16 e_cs;
28 KU16 e_lfarlc;
29 KU16 e_ovno;
30 KU16 e_res[4];
31 KU16 e_oemid;
32 KU16 e_oeminfo;
33 KU16 e_res2[10];
34 KU32 e_lfanew;
35} IMAGE_DOS_HEADER;
36typedef IMAGE_DOS_HEADER *PIMAGE_DOS_HEADER;
37
38#ifndef IMAGE_DOS_SIGNATURE
39# define IMAGE_DOS_SIGNATURE K_LE2H_U16('M' | ('Z' << 8))
40#endif
41
42#pragma pack()
43
44#endif
45
Note: See TracBrowser for help on using the repository browser.