1 | /*
|
---|
2 | * Definitions for windows network service
|
---|
3 | *
|
---|
4 | * Copyright 1997 Andreas Mohr
|
---|
5 | * Copyright 1999 Ulrich Weigand
|
---|
6 | *
|
---|
7 | * This library is free software; you can redistribute it and/or
|
---|
8 | * modify it under the terms of the GNU Lesser General Public
|
---|
9 | * License as published by the Free Software Foundation; either
|
---|
10 | * version 2.1 of the License, or (at your option) any later version.
|
---|
11 | *
|
---|
12 | * This library is distributed in the hope that it will be useful,
|
---|
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
15 | * Lesser General Public License for more details.
|
---|
16 | *
|
---|
17 | * You should have received a copy of the GNU Lesser General Public
|
---|
18 | * License along with this library; if not, write to the Free Software
|
---|
19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
---|
20 | */
|
---|
21 |
|
---|
22 | /*
|
---|
23 | * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
24 | * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
|
---|
25 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
26 | * a choice of LGPL license versions is made available with the language indicating
|
---|
27 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
28 | * of the LGPL is applied is otherwise unspecified.
|
---|
29 | */
|
---|
30 |
|
---|
31 | #ifndef __WINE_WINNET16_H
|
---|
32 | #define __WINE_WINNET16_H
|
---|
33 |
|
---|
34 | #include <windef.h>
|
---|
35 | #include <wine/windef16.h>
|
---|
36 |
|
---|
37 | #include <pshpack1.h>
|
---|
38 |
|
---|
39 | /*
|
---|
40 | * Remote printing
|
---|
41 | */
|
---|
42 |
|
---|
43 | typedef struct
|
---|
44 | {
|
---|
45 | WORD pqName;
|
---|
46 | WORD pqComment;
|
---|
47 | WORD pqStatus;
|
---|
48 | WORD pqJobcount;
|
---|
49 | WORD pqPrinters;
|
---|
50 |
|
---|
51 | } QUEUESTRUCT16, *LPQUEUESTRUCT16;
|
---|
52 |
|
---|
53 | #define WNPRQ_ACTIVE 0x0
|
---|
54 | #define WNPRQ_PAUSE 0x1
|
---|
55 | #define WNPRQ_ERROR 0x2
|
---|
56 | #define WNPRQ_PENDING 0x3
|
---|
57 | #define WNPRQ_PROBLEM 0x4
|
---|
58 |
|
---|
59 | typedef struct
|
---|
60 | {
|
---|
61 | WORD pjId;
|
---|
62 | WORD pjUsername;
|
---|
63 | WORD pjParms;
|
---|
64 | WORD pjPosition;
|
---|
65 | WORD pjStatus;
|
---|
66 | DWORD pjSubmitted;
|
---|
67 | DWORD pjSize;
|
---|
68 | WORD pjCopies;
|
---|
69 | WORD pjComment;
|
---|
70 |
|
---|
71 | } JOBSTRUCT16, *LPJOBSTRUCT16;
|
---|
72 |
|
---|
73 | #include <poppack.h>
|
---|
74 |
|
---|
75 | #define WNPRJ_QSTATUS 0x0007
|
---|
76 | #define WNPRJ_DEVSTATUS 0x0FF8
|
---|
77 |
|
---|
78 | #define WNPRJ_QS_QUEUED 0x0000
|
---|
79 | #define WNPRJ_QS_PAUSED 0x0001
|
---|
80 | #define WNPRJ_QS_SPOOLING 0x0002
|
---|
81 | #define WNPRJ_QS_PRINTING 0x0003
|
---|
82 |
|
---|
83 | #define WNPRJ_DS_COMPLETE 0x0008
|
---|
84 | #define WNPRJ_DS_INTERV 0x0010
|
---|
85 | #define WNPRJ_DS_ERROR 0x0020
|
---|
86 | #define WNPRJ_DS_DESTOFFLINE 0x0040
|
---|
87 | #define WNPRJ_DS_DESTPAUSED 0x0080
|
---|
88 | #define WNPRJ_DS_NOTIFY 0x0100
|
---|
89 | #define WNPRJ_DS_DESTNOPAPER 0x0200
|
---|
90 | #define WNPRJ_DS_DESTFORMCHG 0x0400
|
---|
91 | #define WNPRJ_DS_DESTCRTCHG 0x0800
|
---|
92 | #define WNPRJ_DS_DESTPENCHG 0x1000
|
---|
93 |
|
---|
94 | #define SP_QUEUECHANGED 0x0500
|
---|
95 |
|
---|
96 | #define WNJ_NULL_JOBID 0
|
---|
97 |
|
---|
98 | WORD WINAPI WNetOpenJob16(LPSTR,LPSTR,WORD,LPINT16);
|
---|
99 | WORD WINAPI WNetCloseJob16(WORD,LPINT16,LPSTR);
|
---|
100 | WORD WINAPI WNetWriteJob16(HANDLE16,LPSTR,LPINT16);
|
---|
101 | WORD WINAPI WNetAbortJob16(LPSTR,WORD);
|
---|
102 | WORD WINAPI WNetHoldJob16(LPSTR,WORD);
|
---|
103 | WORD WINAPI WNetReleaseJob16(LPSTR,WORD);
|
---|
104 | WORD WINAPI WNetCancelJob16(LPSTR,WORD);
|
---|
105 | WORD WINAPI WNetSetJobCopies16(LPSTR,WORD,WORD);
|
---|
106 |
|
---|
107 | WORD WINAPI WNetWatchQueue16(HWND16,LPSTR,LPSTR,WORD);
|
---|
108 | WORD WINAPI WNetUnwatchQueue16(LPSTR);
|
---|
109 | WORD WINAPI WNetLockQueueData16(LPSTR,LPSTR,LPQUEUESTRUCT16 *);
|
---|
110 | WORD WINAPI WNetUnlockQueueData16(LPSTR);
|
---|
111 |
|
---|
112 |
|
---|
113 | /*
|
---|
114 | * Connections
|
---|
115 | */
|
---|
116 |
|
---|
117 | WORD WINAPI WNetAddConnection16(LPCSTR,LPCSTR,LPCSTR);
|
---|
118 | WORD WINAPI WNetCancelConnection16(LPSTR,BOOL16);
|
---|
119 | WORD WINAPI WNetGetConnection16(LPSTR,LPSTR,UINT16 *);
|
---|
120 | WORD WINAPI WNetRestoreConnection16(HWND16,LPSTR);
|
---|
121 |
|
---|
122 | /*
|
---|
123 | * Capabilities
|
---|
124 | */
|
---|
125 |
|
---|
126 | WORD WINAPI WNetGetCaps16(WORD);
|
---|
127 |
|
---|
128 | #define WNNC16_SPEC_VERSION 0x01
|
---|
129 | #define WNNC16_NET_TYPE 0x02
|
---|
130 | #define WNNC16_DRIVER_VERSION 0x03
|
---|
131 | #define WNNC16_USER 0x04
|
---|
132 | #define WNNC16_CONNECTION 0x06
|
---|
133 | #define WNNC16_PRINTING 0x07
|
---|
134 | #define WNNC16_DIALOG 0x08
|
---|
135 | #define WNNC16_ADMIN 0x09
|
---|
136 | #define WNNC16_ERROR 0x0a
|
---|
137 | #define WNNC16_PRINTMGREXT 0x0b
|
---|
138 |
|
---|
139 | #define WNNC16_NET_NONE 0x0
|
---|
140 | #define WNNC16_NET_MSNet 0x1
|
---|
141 | #define WNNC16_NET_LanMan 0x2
|
---|
142 | #define WNNC16_NET_NetWare 0x3
|
---|
143 | #define WNNC16_NET_Vines 0x4
|
---|
144 | #define WNNC16_NET_10NET 0x5
|
---|
145 | #define WNNC16_NET_Locus 0x6
|
---|
146 | #define WNNC16_NET_SUN_PC_NFS 0x7
|
---|
147 | #define WNNC16_NET_LANstep 0x8
|
---|
148 | #define WNNC16_NET_9TILES 0x9
|
---|
149 | #define WNNC16_NET_LANtastic 0xa
|
---|
150 | #define WNNC16_NET_AS400 0xb
|
---|
151 | #define WNNC16_NET_FTP_NFS 0xc
|
---|
152 | #define WNNC16_NET_PATHWORKS 0xd
|
---|
153 | #define WNNC16_NET_LifeNet 0xe
|
---|
154 | #define WNNC16_NET_POWERLan 0xf
|
---|
155 | #define WNNC16_NET_MultiNet 0x8000
|
---|
156 |
|
---|
157 | #define WNNC16_SUBNET_NONE 0x00
|
---|
158 | #define WNNC16_SUBNET_MSNet 0x01
|
---|
159 | #define WNNC16_SUBNET_LanMan 0x02
|
---|
160 | #define WNNC16_SUBNET_WinWorkgroups 0x04
|
---|
161 | #define WNNC16_SUBNET_NetWare 0x08
|
---|
162 | #define WNNC16_SUBNET_Vines 0x10
|
---|
163 | #define WNNC16_SUBNET_Other 0x80
|
---|
164 |
|
---|
165 | #define WNNC16_CON_AddConnection 0x0001
|
---|
166 | #define WNNC16_CON_CancelConnection 0x0002
|
---|
167 | #define WNNC16_CON_GetConnections 0x0004
|
---|
168 | #define WNNC16_CON_AutoConnect 0x0008
|
---|
169 | #define WNNC16_CON_BrowseDialog 0x0010
|
---|
170 | #define WNNC16_CON_RestoreConnection 0x0020
|
---|
171 |
|
---|
172 | #define WNNC16_PRT_OpenJob 0x0002
|
---|
173 | #define WNNC16_PRT_CloseJob 0x0004
|
---|
174 | #define WNNC16_PRT_HoldJob 0x0010
|
---|
175 | #define WNNC16_PRT_ReleaseJob 0x0020
|
---|
176 | #define WNNC16_PRT_CancelJob 0x0040
|
---|
177 | #define WNNC16_PRT_SetJobCopies 0x0080
|
---|
178 | #define WNNC16_PRT_WatchQueue 0x0100
|
---|
179 | #define WNNC16_PRT_UnwatchQueue 0x0200
|
---|
180 | #define WNNC16_PRT_LockQueueData 0x0400
|
---|
181 | #define WNNC16_PRT_UnlockQueueData 0x0800
|
---|
182 | #define WNNC16_PRT_ChangeMsg 0x1000
|
---|
183 | #define WNNC16_PRT_AbortJob 0x2000
|
---|
184 | #define WNNC16_PRT_NoArbitraryLock 0x4000
|
---|
185 | #define WNNC16_PRT_WriteJob 0x8000
|
---|
186 |
|
---|
187 | #define WNNC16_DLG_DeviceMode 0x0001
|
---|
188 | #define WNNC16_DLG_BrowseDialog 0x0002
|
---|
189 | #define WNNC16_DLG_ConnectDialog 0x0004
|
---|
190 | #define WNNC16_DLG_DisconnectDialog 0x0008
|
---|
191 | #define WNNC16_DLG_ViewQueueDialog 0x0010
|
---|
192 | #define WNNC16_DLG_PropertyDialog 0x0020
|
---|
193 | #define WNNC16_DLG_ConnectionDialog 0x0040
|
---|
194 | #define WNNC16_DLG_PrinterConnectDialog 0x0080
|
---|
195 | #define WNNC16_DLG_SharesDialog 0x0100
|
---|
196 | #define WNNC16_DLG_ShareAsDialog 0x0200
|
---|
197 |
|
---|
198 | #define WNNC16_ADM_GetDirectoryType 0x0001
|
---|
199 | #define WNNC16_ADM_DirectoryNotify 0x0002
|
---|
200 | #define WNNC16_ADM_LongNames 0x0004
|
---|
201 | #define WNNC16_ADM_SetDefaultDrive 0x0008
|
---|
202 |
|
---|
203 | #define WNNC16_ERR_GetError 0x0001
|
---|
204 | #define WNNC16_ERR_GetErrorText 0x0002
|
---|
205 |
|
---|
206 |
|
---|
207 | /*
|
---|
208 | * Get User
|
---|
209 | */
|
---|
210 |
|
---|
211 | WORD WINAPI WNetGetUser16(LPSTR,LPINT16);
|
---|
212 |
|
---|
213 |
|
---|
214 | /*
|
---|
215 | * Browsing
|
---|
216 | */
|
---|
217 |
|
---|
218 | #define WNBD_CONN_UNKNOWN 0x0
|
---|
219 | #define WNBD_CONN_DISKTREE 0x1
|
---|
220 | #define WNBD_CONN_PRINTQ 0x3
|
---|
221 | #define WNBD_MAX_LENGTH 0x80
|
---|
222 |
|
---|
223 | #define WNTYPE_DRIVE 1
|
---|
224 | #define WNTYPE_FILE 2
|
---|
225 | #define WNTYPE_PRINTER 3
|
---|
226 | #define WNTYPE_COMM 4
|
---|
227 |
|
---|
228 | #define WNPS_FILE 0
|
---|
229 | #define WNPS_DIR 1
|
---|
230 | #define WNPS_MULT 2
|
---|
231 |
|
---|
232 | WORD WINAPI WNetDeviceMode16(HWND16);
|
---|
233 | WORD WINAPI WNetBrowseDialog16(HWND16,WORD,LPSTR);
|
---|
234 | WORD WINAPI WNetConnectDialog16(HWND16,WORD);
|
---|
235 | WORD WINAPI WNetDisconnectDialog16(HWND16,WORD);
|
---|
236 | WORD WINAPI WNetConnectionDialog16(HWND16,WORD);
|
---|
237 | WORD WINAPI WNetViewQueueDialog16(HWND16,LPSTR);
|
---|
238 | WORD WINAPI WNetPropertyDialog16(HWND16,WORD,WORD,LPSTR,WORD);
|
---|
239 | WORD WINAPI WNetGetPropertyText16(WORD,WORD,LPSTR,LPSTR,WORD,WORD);
|
---|
240 |
|
---|
241 |
|
---|
242 | /*
|
---|
243 | * Admin
|
---|
244 | */
|
---|
245 |
|
---|
246 | #define WNDT_NORMAL 0
|
---|
247 | #define WNDT_NETWORK 1
|
---|
248 |
|
---|
249 | #define WNDN_MKDIR 1
|
---|
250 | #define WNDN_RMDIR 2
|
---|
251 | #define WNDN_MVDIR 3
|
---|
252 |
|
---|
253 | WORD WINAPI WNetGetDirectoryType16(LPSTR,LPINT16);
|
---|
254 | WORD WINAPI WNetDirectoryNotify16(HWND16,LPSTR,WORD);
|
---|
255 |
|
---|
256 |
|
---|
257 | /*
|
---|
258 | * Status codes
|
---|
259 | */
|
---|
260 |
|
---|
261 | WORD WINAPI WNetGetError16(LPINT16);
|
---|
262 | WORD WINAPI WNetGetErrorText16(WORD,LPSTR,LPINT16);
|
---|
263 | WORD WINAPI WNetErrorText16(WORD,LPSTR,WORD);
|
---|
264 |
|
---|
265 | #define WN16_SUCCESS 0x0000
|
---|
266 | #define WN16_NOT_SUPPORTED 0x0001
|
---|
267 | #define WN16_NET_ERROR 0x0002
|
---|
268 | #define WN16_MORE_DATA 0x0003
|
---|
269 | #define WN16_BAD_POINTER 0x0004
|
---|
270 | #define WN16_BAD_VALUE 0x0005
|
---|
271 | #define WN16_BAD_PASSWORD 0x0006
|
---|
272 | #define WN16_ACCESS_DENIED 0x0007
|
---|
273 | #define WN16_FUNCTION_BUSY 0x0008
|
---|
274 | #define WN16_WINDOWS_ERROR 0x0009
|
---|
275 | #define WN16_BAD_USER 0x000A
|
---|
276 | #define WN16_OUT_OF_MEMORY 0x000B
|
---|
277 | #define WN16_CANCEL 0x000C
|
---|
278 | #define WN16_CONTINUE 0x000D
|
---|
279 | #define WN16_NOT_CONNECTED 0x0030
|
---|
280 | #define WN16_OPEN_FILES 0x0031
|
---|
281 | #define WN16_BAD_NETNAME 0x0032
|
---|
282 | #define WN16_BAD_LOCALNAME 0x0033
|
---|
283 | #define WN16_ALREADY_CONNECTED 0x0034
|
---|
284 | #define WN16_DEVICE_ERROR 0x0035
|
---|
285 | #define WN16_CONNECTION_CLOSED 0x0036
|
---|
286 | #define WN16_BAD_JOBID 0x0040
|
---|
287 | #define WN16_JOB_NOT_FOUND 0x0041
|
---|
288 | #define WN16_JOB_NOT_HELD 0x0042
|
---|
289 | #define WN16_BAD_QUEUE 0x0043
|
---|
290 | #define WN16_BAD_FILE_HANDLE 0x0044
|
---|
291 | #define WN16_CANT_SET_COPIES 0x0045
|
---|
292 | #define WN16_ALREADY_LOCKED 0x0046
|
---|
293 | #define WN16_NO_ERROR 0x0050
|
---|
294 |
|
---|
295 |
|
---|
296 |
|
---|
297 | #endif /* __WINE_WINNET16_H */
|
---|