1 | /* $Id: winnet16.h,v 1.2 1999-08-22 22:52:12 sandervl Exp $ */
|
---|
2 | /*
|
---|
3 | * Definitions for windows network service
|
---|
4 | *
|
---|
5 | * Copyright 1997 Andreas Mohr
|
---|
6 | * Copyright 1999 Ulrich Weigand
|
---|
7 | */
|
---|
8 |
|
---|
9 | #ifndef __WINE_WINNET16_H
|
---|
10 | #define __WINE_WINNET16_H
|
---|
11 |
|
---|
12 | /*
|
---|
13 | * Remote printing
|
---|
14 | */
|
---|
15 |
|
---|
16 | typedef struct
|
---|
17 | {
|
---|
18 | WORD pqName;
|
---|
19 | WORD pqComment;
|
---|
20 | WORD pqStatus;
|
---|
21 | WORD pqJobcount;
|
---|
22 | WORD pqPrinters;
|
---|
23 |
|
---|
24 | } QUEUESTRUCT16, *LPQUEUESTRUCT16;
|
---|
25 |
|
---|
26 | #define WNPRQ_ACTIVE 0x0
|
---|
27 | #define WNPRQ_PAUSE 0x1
|
---|
28 | #define WNPRQ_ERROR 0x2
|
---|
29 | #define WNPRQ_PENDING 0x3
|
---|
30 | #define WNPRQ_PROBLEM 0x4
|
---|
31 |
|
---|
32 | typedef struct
|
---|
33 | {
|
---|
34 | WORD pjId;
|
---|
35 | WORD pjUsername;
|
---|
36 | WORD pjParms;
|
---|
37 | WORD pjPosition;
|
---|
38 | WORD pjStatus;
|
---|
39 | DWORD pjSubmitted;
|
---|
40 | DWORD pjSize;
|
---|
41 | WORD pjCopies;
|
---|
42 | WORD pjComment;
|
---|
43 |
|
---|
44 | } JOBSTRUCT16, *LPJOBSTRUCT16;
|
---|
45 |
|
---|
46 | #define WNPRJ_QSTATUS 0x0007
|
---|
47 | #define WNPRJ_DEVSTATUS 0x0FF8
|
---|
48 |
|
---|
49 | #define WNPRJ_QS_QUEUED 0x0000
|
---|
50 | #define WNPRJ_QS_PAUSED 0x0001
|
---|
51 | #define WNPRJ_QS_SPOOLING 0x0002
|
---|
52 | #define WNPRJ_QS_PRINTING 0x0003
|
---|
53 |
|
---|
54 | #define WNPRJ_DS_COMPLETE 0x0008
|
---|
55 | #define WNPRJ_DS_INTERV 0x0010
|
---|
56 | #define WNPRJ_DS_ERROR 0x0020
|
---|
57 | #define WNPRJ_DS_DESTOFFLINE 0x0040
|
---|
58 | #define WNPRJ_DS_DESTPAUSED 0x0080
|
---|
59 | #define WNPRJ_DS_NOTIFY 0x0100
|
---|
60 | #define WNPRJ_DS_DESTNOPAPER 0x0200
|
---|
61 | #define WNPRJ_DS_DESTFORMCHG 0x0400
|
---|
62 | #define WNPRJ_DS_DESTCRTCHG 0x0800
|
---|
63 | #define WNPRJ_DS_DESTPENCHG 0x1000
|
---|
64 |
|
---|
65 | #define SP_QUEUECHANGED 0x0500
|
---|
66 |
|
---|
67 | #define WNJ_NULL_JOBID 0
|
---|
68 |
|
---|
69 | WORD WINAPI WNetOpenJob16(LPSTR,LPSTR,WORD,LPINT16);
|
---|
70 | WORD WINAPI WNetCloseJob16(WORD,LPINT16,LPSTR);
|
---|
71 | WORD WINAPI WNetWriteJob16(HANDLE16,LPSTR,LPINT16);
|
---|
72 | WORD WINAPI WNetAbortJob16(LPSTR,WORD);
|
---|
73 | WORD WINAPI WNetHoldJob16(LPSTR,WORD);
|
---|
74 | WORD WINAPI WNetReleaseJob16(LPSTR,WORD);
|
---|
75 | WORD WINAPI WNetCancelJob16(LPSTR,WORD);
|
---|
76 | WORD WINAPI WNetSetJobCopies16(LPSTR,WORD,WORD);
|
---|
77 |
|
---|
78 | WORD WINAPI WNetWatchQueue16(HWND16,LPSTR,LPSTR,WORD);
|
---|
79 | WORD WINAPI WNetUnwatchQueue16(LPSTR);
|
---|
80 | WORD WINAPI WNetLockQueueData16(LPSTR,LPSTR,LPQUEUESTRUCT16 *);
|
---|
81 | WORD WINAPI WNetUnlockQueueData16(LPSTR);
|
---|
82 |
|
---|
83 |
|
---|
84 | /*
|
---|
85 | * Connections
|
---|
86 | */
|
---|
87 |
|
---|
88 | WORD WINAPI WNetAddConnection16(LPSTR,LPSTR,LPSTR);
|
---|
89 | WORD WINAPI WNetCancelConnection16(LPSTR,BOOL16);
|
---|
90 | WORD WINAPI WNetGetConnection16(LPSTR,LPSTR,UINT16 *);
|
---|
91 | WORD WINAPI WNetRestoreConnection16(HWND16,LPSTR);
|
---|
92 |
|
---|
93 | /*
|
---|
94 | * Capabilities
|
---|
95 | */
|
---|
96 |
|
---|
97 | WORD WINAPI WNetGetCaps16(WORD);
|
---|
98 |
|
---|
99 | #define WNNC16_SPEC_VERSION 0x01
|
---|
100 | #define WNNC16_NET_TYPE 0x02
|
---|
101 | #define WNNC16_DRIVER_VERSION 0x03
|
---|
102 | #define WNNC16_USER 0x04
|
---|
103 | #define WNNC16_CONNECTION 0x06
|
---|
104 | #define WNNC16_PRINTING 0x07
|
---|
105 | #define WNNC16_DIALOG 0x08
|
---|
106 | #define WNNC16_ADMIN 0x09
|
---|
107 | #define WNNC16_ERROR 0x0a
|
---|
108 | #define WNNC16_PRINTMGREXT 0x0b
|
---|
109 |
|
---|
110 | #define WNNC16_NET_NONE 0x0
|
---|
111 | #define WNNC16_NET_MSNet 0x1
|
---|
112 | #define WNNC16_NET_LanMan 0x2
|
---|
113 | #define WNNC16_NET_NetWare 0x3
|
---|
114 | #define WNNC16_NET_Vines 0x4
|
---|
115 | #define WNNC16_NET_10NET 0x5
|
---|
116 | #define WNNC16_NET_Locus 0x6
|
---|
117 | #define WNNC16_NET_SUN_PC_NFS 0x7
|
---|
118 | #define WNNC16_NET_LANstep 0x8
|
---|
119 | #define WNNC16_NET_9TILES 0x9
|
---|
120 | #define WNNC16_NET_LANtastic 0xa
|
---|
121 | #define WNNC16_NET_AS400 0xb
|
---|
122 | #define WNNC16_NET_FTP_NFS 0xc
|
---|
123 | #define WNNC16_NET_PATHWORKS 0xd
|
---|
124 | #define WNNC16_NET_LifeNet 0xe
|
---|
125 | #define WNNC16_NET_POWERLan 0xf
|
---|
126 | #define WNNC16_NET_MultiNet 0x8000
|
---|
127 |
|
---|
128 | #define WNNC16_SUBNET_NONE 0x00
|
---|
129 | #define WNNC16_SUBNET_MSNet 0x01
|
---|
130 | #define WNNC16_SUBNET_LanMan 0x02
|
---|
131 | #define WNNC16_SUBNET_WinWorkgroups 0x04
|
---|
132 | #define WNNC16_SUBNET_NetWare 0x08
|
---|
133 | #define WNNC16_SUBNET_Vines 0x10
|
---|
134 | #define WNNC16_SUBNET_Other 0x80
|
---|
135 |
|
---|
136 | #define WNNC16_CON_AddConnection 0x0001
|
---|
137 | #define WNNC16_CON_CancelConnection 0x0002
|
---|
138 | #define WNNC16_CON_GetConnections 0x0004
|
---|
139 | #define WNNC16_CON_AutoConnect 0x0008
|
---|
140 | #define WNNC16_CON_BrowseDialog 0x0010
|
---|
141 | #define WNNC16_CON_RestoreConnection 0x0020
|
---|
142 |
|
---|
143 | #define WNNC16_PRT_OpenJob 0x0002
|
---|
144 | #define WNNC16_PRT_CloseJob 0x0004
|
---|
145 | #define WNNC16_PRT_HoldJob 0x0010
|
---|
146 | #define WNNC16_PRT_ReleaseJob 0x0020
|
---|
147 | #define WNNC16_PRT_CancelJob 0x0040
|
---|
148 | #define WNNC16_PRT_SetJobCopies 0x0080
|
---|
149 | #define WNNC16_PRT_WatchQueue 0x0100
|
---|
150 | #define WNNC16_PRT_UnwatchQueue 0x0200
|
---|
151 | #define WNNC16_PRT_LockQueueData 0x0400
|
---|
152 | #define WNNC16_PRT_UnlockQueueData 0x0800
|
---|
153 | #define WNNC16_PRT_ChangeMsg 0x1000
|
---|
154 | #define WNNC16_PRT_AbortJob 0x2000
|
---|
155 | #define WNNC16_PRT_NoArbitraryLock 0x4000
|
---|
156 | #define WNNC16_PRT_WriteJob 0x8000
|
---|
157 |
|
---|
158 | #define WNNC16_DLG_DeviceMode 0x0001
|
---|
159 | #define WNNC16_DLG_BrowseDialog 0x0002
|
---|
160 | #define WNNC16_DLG_ConnectDialog 0x0004
|
---|
161 | #define WNNC16_DLG_DisconnectDialog 0x0008
|
---|
162 | #define WNNC16_DLG_ViewQueueDialog 0x0010
|
---|
163 | #define WNNC16_DLG_PropertyDialog 0x0020
|
---|
164 | #define WNNC16_DLG_ConnectionDialog 0x0040
|
---|
165 | #define WNNC16_DLG_PrinterConnectDialog 0x0080
|
---|
166 | #define WNNC16_DLG_SharesDialog 0x0100
|
---|
167 | #define WNNC16_DLG_ShareAsDialog 0x0200
|
---|
168 |
|
---|
169 | #define WNNC16_ADM_GetDirectoryType 0x0001
|
---|
170 | #define WNNC16_ADM_DirectoryNotify 0x0002
|
---|
171 | #define WNNC16_ADM_LongNames 0x0004
|
---|
172 | #define WNNC16_ADM_SetDefaultDrive 0x0008
|
---|
173 |
|
---|
174 | #define WNNC16_ERR_GetError 0x0001
|
---|
175 | #define WNNC16_ERR_GetErrorText 0x0002
|
---|
176 |
|
---|
177 |
|
---|
178 | /*
|
---|
179 | * Get User
|
---|
180 | */
|
---|
181 |
|
---|
182 | WORD WINAPI WNetGetUser16(LPSTR,LPINT16);
|
---|
183 |
|
---|
184 |
|
---|
185 | /*
|
---|
186 | * Browsing
|
---|
187 | */
|
---|
188 |
|
---|
189 | #define WNBD_CONN_UNKNOWN 0x0
|
---|
190 | #define WNBD_CONN_DISKTREE 0x1
|
---|
191 | #define WNBD_CONN_PRINTQ 0x3
|
---|
192 | #define WNBD_MAX_LENGTH 0x80
|
---|
193 |
|
---|
194 | #define WNTYPE_DRIVE 1
|
---|
195 | #define WNTYPE_FILE 2
|
---|
196 | #define WNTYPE_PRINTER 3
|
---|
197 | #define WNTYPE_COMM 4
|
---|
198 |
|
---|
199 | #define WNPS_FILE 0
|
---|
200 | #define WNPS_DIR 1
|
---|
201 | #define WNPS_MULT 2
|
---|
202 |
|
---|
203 | WORD WINAPI WNetDeviceMode16(HWND16);
|
---|
204 | WORD WINAPI WNetBrowseDialog16(HWND16,WORD,LPSTR);
|
---|
205 | WORD WINAPI WNetConnectDialog16(HWND16,WORD);
|
---|
206 | WORD WINAPI WNetDisconnectDialog16(HWND16,WORD);
|
---|
207 | WORD WINAPI WNetConnectionDialog16(HWND16,WORD);
|
---|
208 | WORD WINAPI WNetViewQueueDialog16(HWND16,LPSTR);
|
---|
209 | WORD WINAPI WNetPropertyDialog16(HWND16,WORD,WORD,LPSTR,WORD);
|
---|
210 | WORD WINAPI WNetGetPropertyText16(WORD,WORD,LPSTR,LPSTR,WORD,WORD);
|
---|
211 |
|
---|
212 |
|
---|
213 | /*
|
---|
214 | * Admin
|
---|
215 | */
|
---|
216 |
|
---|
217 | #define WNDT_NORMAL 0
|
---|
218 | #define WNDT_NETWORK 1
|
---|
219 |
|
---|
220 | #define WNDN_MKDIR 1
|
---|
221 | #define WNDN_RMDIR 2
|
---|
222 | #define WNDN_MVDIR 3
|
---|
223 |
|
---|
224 | WORD WINAPI WNetGetDirectoryType16(LPSTR,LPINT16);
|
---|
225 | WORD WINAPI WNetDirectoryNotify16(HWND16,LPSTR,WORD);
|
---|
226 |
|
---|
227 |
|
---|
228 | /*
|
---|
229 | * Status codes
|
---|
230 | */
|
---|
231 |
|
---|
232 | WORD WINAPI WNetGetError16(LPINT16);
|
---|
233 | WORD WINAPI WNetGetErrorText16(WORD,LPSTR,LPINT16);
|
---|
234 | WORD WINAPI WNetErrorText16(WORD,LPSTR,WORD);
|
---|
235 |
|
---|
236 | #define WN16_SUCCESS 0x0000
|
---|
237 | #define WN16_NOT_SUPPORTED 0x0001
|
---|
238 | #define WN16_NET_ERROR 0x0002
|
---|
239 | #define WN16_MORE_DATA 0x0003
|
---|
240 | #define WN16_BAD_POINTER 0x0004
|
---|
241 | #define WN16_BAD_VALUE 0x0005
|
---|
242 | #define WN16_BAD_PASSWORD 0x0006
|
---|
243 | #define WN16_ACCESS_DENIED 0x0007
|
---|
244 | #define WN16_FUNCTION_BUSY 0x0008
|
---|
245 | #define WN16_WINDOWS_ERROR 0x0009
|
---|
246 | #define WN16_BAD_USER 0x000A
|
---|
247 | #define WN16_OUT_OF_MEMORY 0x000B
|
---|
248 | #define WN16_CANCEL 0x000C
|
---|
249 | #define WN16_CONTINUE 0x000D
|
---|
250 | #define WN16_NOT_CONNECTED 0x0030
|
---|
251 | #define WN16_OPEN_FILES 0x0031
|
---|
252 | #define WN16_BAD_NETNAME 0x0032
|
---|
253 | #define WN16_BAD_LOCALNAME 0x0033
|
---|
254 | #define WN16_ALREADY_CONNECTED 0x0034
|
---|
255 | #define WN16_DEVICE_ERROR 0x0035
|
---|
256 | #define WN16_CONNECTION_CLOSED 0x0036
|
---|
257 | #define WN16_BAD_JOBID 0x0040
|
---|
258 | #define WN16_JOB_NOT_FOUND 0x0041
|
---|
259 | #define WN16_JOB_NOT_HELD 0x0042
|
---|
260 | #define WN16_BAD_QUEUE 0x0043
|
---|
261 | #define WN16_BAD_FILE_HANDLE 0x0044
|
---|
262 | #define WN16_CANT_SET_COPIES 0x0045
|
---|
263 | #define WN16_ALREADY_LOCKED 0x0046
|
---|
264 | #define WN16_NO_ERROR 0x0050
|
---|
265 |
|
---|
266 |
|
---|
267 |
|
---|
268 | #endif /* __WINE_WINNET16_H */
|
---|