|
|
1.1 root 1: /*==============================================================*\
2: * *
3: * Vmm_main.h - Sample PM application header file *
4: * Created 1990, Microsoft, IBM Corp. *
5: * *
6: *--------------------------------------------------------------*
7: * *
8: * This header file contains the application wide constants *
9: * and structure definitions. *
10: * *
11: \*==============================================================*/
12:
13: #define IDR_SAMPLE 8 /* resource identifier */
14:
15: /*--------------------------------------------------------------*\
16: * Menu item ids *
17: \*--------------------------------------------------------------*/
18: #define IDM_FILE 1000
19: #define IDM_FILENEW 1100
20: #define IDM_FILEOPEN 1200
21: #define IDM_FILESAVE 1300
22: #define IDM_FILESAVEAS 1400
23: #define IDM_FILEPRINT 1500
24: #define IDM_FILEPAGESETUP 1600
25: #define IDM_FILEPRINTSETUP 1700
26: #define IDM_FILEEXIT 1800
27:
28: #define IDM_EDIT 2000
29: #define IDM_EDITUNDO 2100
30: #define IDM_EDITCUT 2200
31: #define IDM_EDITCOPY 2300
32: #define IDM_EDITPASTE 2400
33: #define IDM_EDITCLEAR 2500
34:
35: #define IDM_VIEW 3000
36: #define IDM_VIEWSTRING 3100
37:
38: #if 0 /* should these be ripped out ??????????????????????????? -johnba */
39:
40: #define IDM_OPTIONS 4000
41: #define IDM_OPTIONSFORECOLOR 4100
42: #define IDM_OPTIONSBACKCOLOR 4200
43: #define IDM_OPTIONSBACKCOLORYELLOW 4210
44: #define IDM_OPTIONSBACKCOLORPINK 4220
45: #define IDM_OPTIONSBACKCOLORCYAN 4230
46: #define IDM_OPTIONSBACKCOLORDEFAULT 4240
47: #define IDM_OPTIONSFONT 4300
48:
49: #define IDM_DEMO 5000
50: #define IDM_DEMODLG 5100
51: #define IDM_DEMODLGBUTTONS 5110
52: #define IDM_DEMODLGLISTBOXES 5120
53: #define IDM_DEMODLGCOMBOBOXES 5130
54: #define IDM_DEMODLGENTRYFIELDS 5140
55: #define IDM_DEMODLGSTATIC 5150
56: #define IDM_DEMODLGPP 5160
57:
58: #define IDM_DEMOMSGBOX 5200
59: #define IDM_DEMOMSGBOXOK 5210
60: #define IDM_DEMOMSGBOXOKCANCEL 5220
61: #define IDM_DEMOMSGBOXYESNO 5230
62: #define IDM_DEMOMSGBOXYESNOCANCEL 5240
63: #define IDM_DEMOMSGBOXRETRYCANCEL 5250
64: #define IDM_DEMOMSGBOXABORT 5260
65: #define IDM_DEMOMSGBOXENTER 5270
66: #define IDM_DEMOMSGBOXENTERCANCEL 5280
67: #define IDM_DEMOMSGBOXQUERY 5290
68: #define IDM_DEMOMSGBOXWARNING 5300
69: #define IDM_DEMOMSGBOXINFO 5310
70: #define IDM_DEMOMSGBOXCRITICAL 5320
71: #define IDM_DEMOMSGBOXAPP 5330
72: #define IDM_DEMOMSGBOXSYS 5340
73: #define IDM_DEMOMSGBOXMOVEABLE 5350
74: #define IDM_DEMOMSGBOXHELP 5400
75:
76: #define IDM_WINDOW 6000
77: #define IDM_WINDOWTILE 6100
78: #define IDM_WINDOWCASCADE 6200
79:
80: #endif /* ?????????????????????????????????????????????????? */
81:
82: #define IDM_VMM 7000
83: #define IDM_VMMALLOC 7100
84: #define IDM_VMMFREE 7200
85: #define IDM_VMMSET 7300
86: #define IDM_VMMWRITE 7400
87: #define IDM_VMMREAD 7500
88:
89: #define IDM_HELP 9000
90: #define IDM_HELPHELPFORHELP 9100
91: #define IDM_HELPEXTENDED 9200
92: #define IDM_HELPKEYS 9300
93: #define IDM_HELPINDEX 9400
94: #define IDM_HELPTUTORIAL 9500
95: #define IDM_HELPABOUT 9600
96:
97: /*--------------------------------------------------------------*\
98: * Dialog item ids *
99: \*--------------------------------------------------------------*/
100: #define ID_OK 1
101: #define ID_CANCEL 2
102:
103: /*--------------------------------------------------------------*\
104: * Stringtable ids *
105: \*--------------------------------------------------------------*/
106: #define IDS_FILEOPENEXT 1
107: #define IDS_APPNAME 2
108: #define IDS_HELPLIBRARYNAME 3
109:
110: /*--------------------------------------------------------------*\
111: * Messagetable ids *
112: \*--------------------------------------------------------------*/
113: #define IDMSG_INITFAILED 1
114: #define IDMSG_MAINWINCREATEFAILED 2
115: #define IDMSG_CANNOTOPENINPUTFILE 3
116: #define IDMSG_CANNOTRUNPAGESETUP 4
117: #define IDMSG_CANNOTRUNPRINTSETUP 5
118: #define IDMSG_CANNOTRUNPRINT 6
119: #define IDMSG_CANNOTRUNCOLOR 7
120: #define IDMSG_CANNOTGETHPS 8
121: #define IDMSG_HELPLOADERROR 9
122: #define IDMSG_CANNOTLOADSTRING 10
123: #define IDMSG_CANNOTOPENPRINTER 11
124:
125: /*--------------------------------------------------------------*\
126: * Error Constants *
127: \*--------------------------------------------------------------*/
128:
129: #define VMERR_MAX_ALLOCATED 0xFF10
130: #define VMERR_ZERO_ALLOCATED 0xFF11
131: #define VMERR_TILE_ONLY 0xFF12
132: #define VMERR_COMMIT_AND_TILE_ONLY 0xFF13
133: #define VMERR_ALREADY_FREED 0xFF20
134: #define VMERR_NOT_BASEPAGE 0xFF21
135: #define VMERR_DECOMMIT_RESERVED 0xFF30
136: #define VMERR_ACCESS_AND_DECOMMIT 0xFF31
137: #define VMERR_ACCESS_ON_RESERVED 0xFF32
138: #define VMERR_COMMIT_ON_COMMITTED 0xFF33
139: #define VMERR_COMMIT_ONLY 0xFF34
140: #define VMERR_SET_NO_PARMS 0xFF35
141: #define VMERR_SET_ZERO_SIZE 0xFF36
142: #define VMERR_SET_ON_FREE 0xFF37
143: #define VMERR_DEFAULT 0xFFFF
144: /*--------------------------------------------------------------*\
145: * Other constants *
146: \*--------------------------------------------------------------*/
147: #define MAXTEXTLEN 40 /* maximum text length for window */
148: #define MESSAGELEN 25 /* maximum length for messages */
149: #define MAXAPPNAMELEN 15
150: #define MAXPAGES 10
151: #define PAGESIZE 4096
152:
153: #define BUFF_SIZE 200 /* size of string buffers for various stuff */
154:
155: /*--------------------------------------------------------------*\
156: * Data structures and typedefs *
157: \*--------------------------------------------------------------*/
158:
159: struct _WINDOWDATA {
160: LONG clrFore;
161: LONG clrBack;
162: UCHAR *szText[MAXTEXTLEN + 1];
163: };
164:
165: typedef struct _OBJSTRUCT{
166: ULONG ulSize;
167: ULONG ulAttr;
168: PVOID pvAddress;
169: } OBJSTRUCT;
170:
171: typedef OBJSTRUCT FAR * POBJSTRUCT;
172:
173: typedef struct _WINDOWDATA WINDOWDATA;
174: /* hungarian notation: wdata */
175: typedef WINDOWDATA * PWINDOWDATA;
176:
177: typedef struct _PAGEENTRY {
178: PVOID pvAddress;
179: BOOL fBaseAddr;
180: } PAGEENTRY;
181: /* hungarian notation: pgentry */
182:
183: typedef struct _MSGENTRY {
184: ULONG ulMsgNum;
185: char szMsgText[BUFF_SIZE];
186: USHORT usMsgIcon;
187: } MSGENTRY;
188: /* hungarian notation: msgentry */
189:
190: /******************************************************
191: *
192: * Cruiser version define
193: *
194: ******************************************************/
195: #define VER630
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.