source: branches/1.0/src/uni.h@ 27

Last change on this file since 27 was 26, checked in by diver, 15 years ago

major rework

File size: 8.4 KB
Line 
1#define INCL_DOS
2#define INCL_GPI
3#undef INCL_GPI
4#define INCL_DEV
5#define INCL_DOSMEMMGR /* Include standard OS/2 support */
6#define INCL_DOSMODULEMGR /* For DosLoadModule */
7#define INCL_DOSPROCESS
8#define INCL_GPILCIDS
9#define INCL_WINCOMMON /* Include Window Management support */
10#define INCL_WINDOWMGR
11#define INCL_WINSWITCHLIST
12#define INCL_WINPROGRAMLIST
13#define INCL_WINMENUS
14#define INCL_WINWINDOWMGR
15#define INCL_WINMESSAGEMGR
16#define INCL_WINDIALOGS
17#define INCL_WINSTATICS
18#define INCL_WINLISTBOXES
19#define INCL_WINMENUS
20#define INCL_WINSYS
21#define INCL_WINFRAMEMGR
22#define INCL_INCLWINACCELERATORS
23#define INCL_WINPOINTERS
24#define INCL_WINERRORS
25#define INCL_WINSHELLDATA
26
27#define INCL_WINTYPES
28#define INCL_WINACCELERATORS
29#define INCL_WINBUTTONS
30#define INCL_WINENTRYFIELDS
31#define INCL_WINRECTANGLES
32#define INCL_WINTIMER
33#define INCL_WINSCROLLBARS
34#define INCL_WINHEAP
35#define INCL_SHLERRORS
36#define INCL_WININPUT
37#define INCL_WINHELP
38#define INCL_WINSTDSPIN
39
40#define INCL_SPL
41#define INCL_SPLP
42#define INCL_SPLERRORS
43#define INCL_SHLERRORS
44#define INCL_DOSERRORS
45#define INCL_WINHOOKS
46
47#include <os2.h>
48
49#define PATH_UNI_PDR "?:\\OS2\\DLL\\UNI.PDR"
50#define UNI_DLL "UNI.PDR"
51
52#define NO_ERROR 0
53#define ERROR_MORE_DATA 234
54#define ERROR_INSUFFICIENT_BUFFER 122
55
56#define PORT_ID_1 5001
57#define PORT_DESC_1 5002
58#define PORT_ID_2 5003
59#define PORT_DESC_2 5004
60#define PORT_ID_3 5005
61#define PORT_DESC_3 5006
62#define PORT_ID_4 5007
63#define PORT_DESC_4 5008
64#define PORT_ID_5 5009
65#define PORT_DESC_5 5010
66#define PORT_ID_6 5011
67#define PORT_DESC_6 5012
68#define PORT_ID_7 5013
69#define PORT_DESC_7 5014
70#define PORT_ID_8 5015
71#define PORT_DESC_8 5016
72#define PORT_ID_9 5017
73#define PORT_DESC_9 5018
74#define PORT_ID_10 5019
75#define PORT_DESC_10 5020
76#define PORT_ID_11 5021
77#define PORT_DESC_11 5022
78#define PORT_ID_12 5023
79#define PORT_DESC_12 5024
80#define PORT_ID_13 5025
81#define PORT_DESC_13 5026
82#define PORT_ID_14 5027
83#define PORT_DESC_14 5028
84#define PORT_ID_15 5029
85#define PORT_DESC_15 5030
86#define PORT_ID_16 5031
87#define PORT_DESC_16 5032
88#define PORT_ID_17 5033
89#define PORT_DESC_17 5034
90#define PORT_ID_18 5035
91#define PORT_DESC_18 5036
92#define PORT_ID_19 5037
93#define PORT_DESC_19 5038
94#define PORT_ID_20 5039
95#define PORT_DESC_20 5040
96#define PORT_ID_21 5041
97#define PORT_DESC_21 5042
98#define PORT_ID_22 5043
99#define PORT_DESC_22 5044
100#define PORT_ID_23 5045
101#define PORT_DESC_23 5046
102#define PORT_ID_24 5047
103#define PORT_DESC_24 5048
104#define PORT_ID_25 5049
105#define PORT_DESC_25 5050
106#define PORT_ID_26 5051
107#define PORT_DESC_26 5052
108#define PORT_ID_27 5053
109#define PORT_DESC_27 5054
110#define PORT_ID_28 5055
111#define PORT_DESC_28 5056
112#define PORT_ID_29 5057
113#define PORT_DESC_29 5058
114#define PORT_ID_30 5059
115#define PORT_DESC_30 5060
116#define PORT_ID_31 5061
117#define PORT_DESC_31 5062
118#define PORT_ID_32 5063
119#define PORT_DESC_32 5064
120#define PORT_ID_33 5065
121#define PORT_DESC_33 5066
122#define PORT_ID_34 5067
123#define PORT_DESC_34 5068
124#define PORT_ID_35 5069
125#define PORT_DESC_35 5070
126#define PORT_ID_36 5071
127#define PORT_DESC_36 5072
128#define PORT_ID_37 5073
129#define PORT_DESC_37 5074
130#define PORT_ID_38 5075
131#define PORT_DESC_38 5076
132#define PORT_ID_39 5077
133#define PORT_DESC_39 5078
134#define PORT_ID_40 5079
135#define PORT_DESC_40 5080
136#define PORT_ID_41 5081
137#define PORT_DESC_41 5082
138#define PORT_ID_42 5083
139#define PORT_DESC_42 5084
140#define PORT_ID_43 5085
141#define PORT_DESC_43 5086
142#define PORT_ID_44 5087
143#define PORT_DESC_44 5088
144#define PORT_ID_45 5089
145#define PORT_DESC_45 5090
146#define PORT_ID_46 5091
147#define PORT_DESC_46 5092
148#define PORT_ID_47 5093
149#define PORT_DESC_47 5094
150#define PORT_ID_48 5095
151#define PORT_DESC_48 5096
152#define PORT_ID_49 5097
153#define PORT_DESC_49 5098
154#define PORT_ID_50 5099
155#define PORT_DESC_50 5100
156#define PORT_ID_51 5101
157#define PORT_DESC_51 5102
158#define PORT_ID_52 5103
159#define PORT_DESC_52 5104
160#define PORT_ID_53 5105
161#define PORT_DESC_53 5106
162#define PORT_ID_54 5107
163#define PORT_DESC_54 5108
164#define PORT_ID_55 5109
165#define PORT_DESC_55 5110
166#define PORT_ID_56 5111
167#define PORT_DESC_56 5112
168#define PORT_ID_57 5113
169#define PORT_DESC_57 5114
170#define PORT_ID_58 5115
171#define PORT_DESC_58 5116
172#define PORT_ID_59 5117
173#define PORT_DESC_59 5118
174#define PORT_ID_60 5119
175#define PORT_DESC_60 5120
176#define PORT_ID_61 5121
177#define PORT_DESC_61 5122
178#define PORT_ID_62 5123
179#define PORT_DESC_62 5124
180#define PORT_ID_63 5125
181#define PORT_DESC_63 5126
182#define PORT_ID_64 5127
183#define PORT_DESC_64 5128
184
185
186#define PORT_HELP_TITLE 5900
187#define PORT_ERR_TITLE 7000
188
189#define PDR_ID_PROPERTIES 6001
190
191#define PORT_ID_FIRST PORT_ID_1
192#define PORT_ID_LAST PORT_ID_64
193#define MAX_PORTS 64
194
195#define UNI_ICON 7001
196
197#define STR_LEN_PORTNAME 64
198#define STR_LEN_PORTDESC 256
199#define STR_LEN_DESC 81
200#define PORT_ENTRY_LEN 256
201#define STR_LEN_TITLE 256
202
203 /*
204 ** port defaults
205 */
206#define DEF_INITIALIZATION ".exe#%file%#;"
207#define DEF_TERMINATION ";"
208#define DEF_PORTDRIVER "UNI;"
209#define DEF_PORTNAME "UNI" /* Must update build script if this is changed! */
210#define DEF_TIMEOUT "45;"
211
212#define APPNAME_LEAD_STR "PM_"
213
214#define KEY_DESCRIPTION "DESCRIPTION"
215#define KEY_INITIALIZATION "INITIALIZATION"
216#define KEY_TERMINATION "TERMINATION"
217#define KEY_PORTDRIVER "PORTDRIVER"
218#define KEY_TIMEOUT "TIMEOUT"
219
220#define APPNAME_PM_SPOOLER_PORT "PM_SPOOLER_PORT"
221#define IDD_UNI 200
222#define ID_NUMBER_OF_DESC_LINES 8000
223#define ID_FIRST_DESC_LINES 8001
224
225typedef struct _UNIDATA
226{
227 HAB hAB;
228 HMODULE hModule;
229 PSZ pszPortName;
230 PSZ pszAppName;
231 CHAR szSaveLprSetting[PORT_ENTRY_LEN+1];
232 ULONG lfModified;
233} UNIDATA, *PUNIDATA;
234
235typedef struct _PORTNAMES
236{
237 PSZ pszPortName; /* -> name of port(ie "LPT1) */
238 PSZ pszPortDesc; /* -> description of port(ie "Parallel Port 1") */
239} PORTNAMES, *PPORTNAMES;
240
241#define GB_UNICFG 206
242#define ID_PROGRAM 210
243#define DT_PROGRAM 211
244#define ID_PARAMETERS 212
245#define DT_PARAMETERS 213
246#define DT_DIRECTORY 214
247#define ID_DIRECTORY 215
248#define PB_FIND 216
Note: See TracBrowser for help on using the repository browser.