File: infores.h

package info (click to toggle)
dosemu-freedos 1%3A0.0.b9r5a%2Betch.1-0etch1
  • links: PTS
  • area: contrib
  • in suites: etch
  • size: 19,744 kB
  • ctags: 23,279
  • sloc: ansic: 143,864; asm: 20,397; makefile: 3,868; perl: 1,106; yacc: 690; sh: 553; pascal: 297; xml: 150; cpp: 67
file content (73 lines) | stat: -rw-r--r-- 1,581 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/* $Id: infores.h,v 1.1 2001/04/12 00:09:06 skaus Exp $

	Info resource

	Structure of the resource:
	<tag1>
	<tag2>
	...
	<tagN>

	a <tag> is of the structure:
	Offset	Type	Meaning
	0		1 BYTE	tag type
	1		1 BYTE	tag length
	2..N+2	N BYTE	tag value

	length may 0..255;

	tag type:
	Type	Meaing
	0		end of structure (may be absent)
	1		minimum extra paragaphes required by C host environment
			length := 2
			value  := number of paragraphes that need to be additionally
						allocated by the program minimally
	2		location of _heaplen variable
			length := 4
			value  := offset within file where the (unsigned)_heaplen
						variable is located
	3		Aliases present in FreeCOM
			length := 2
			value  := default size of aliases buffer
	4		History present in FreeCOM
			length := 2
			value  := default size of history buffer
	5		Dirstack present in FreeCOM
			length := 2
			value  := default size of dirstack buffer
	6		Internal command line size
			length := 2
			value  := size of internal command line

*/

#ifndef INFORES__H_
#define INFORES__H_

typedef enum {
	INFO_END = 0
	,INFO_EXTRA_SPACE
	,INFO_POS_HEAPLEN
	,INFO_ALIASES
	,INFO_HISTORY
	,INFO_DIRSTACK
	,INFO_BUFSIZE
} infotags;

typedef struct {
	unsigned char type;
	unsigned char length;
} infotag;

#include <algnbyte.h>
struct EXE_header {
	unsigned sig, lastFill, numBlocks, numReloc;
	unsigned header;
	unsigned extraMin, extraMax;
	unsigned fSS, fSP, checksum, fIP, fCS;
	unsigned offReloc, ovrlyNum;
};
#include <algndflt.h>

#endif