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

Last change on this file since 5 was 5, checked in by diver, 16 years ago

reorg part 1

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