source: branches/smbpdr-1.0/smb.h@ 1075

Last change on this file since 1075 was 772, checked in by Alex Taylor, 12 years ago

Fix to SplPdQuery allowing the required buffer size to be queried.

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