blob: 03a7b6e58854bbcbc09906edfd834f9f741fa072 [file] [log] [blame]
Alexandre Julliard58199531994-04-21 01:20:00 +00001/*
Ulrich Weigandbb1984e1999-08-07 14:32:33 +00002 * USER Windows Network functions
Alexandre Julliard58199531994-04-21 01:20:00 +00003 */
4
Alexandre Julliard594997c1995-04-30 10:05:20 +00005#include <ctype.h>
David Luyeree517e81999-02-28 12:27:56 +00006#include <string.h>
Alexandre Julliard85ed45e1998-08-22 19:03:56 +00007#include <sys/types.h>
8#include <pwd.h>
9#include <unistd.h>
Alexandre Julliard58199531994-04-21 01:20:00 +000010
Ulrich Weigandbb1984e1999-08-07 14:32:33 +000011#include "winbase.h"
12#include "wine/winnet16.h"
Marcus Meissner04c3e1d1999-02-19 10:37:02 +000013#include "winnetwk.h"
Alexandre Julliard06c275a1999-05-02 14:32:27 +000014#include "debugtools.h"
Alexandre Julliard46ea8b31998-05-03 19:01:20 +000015
Dimitrie O. Paun529da542000-11-27 23:54:25 +000016DEFAULT_DEBUG_CHANNEL(wnet);
Ulrich Weigandbb1984e1999-08-07 14:32:33 +000017
18/*
19 * Remote printing
20 */
21
22/**************************************************************************
Patrik Stridvall01d5e5b2001-07-02 19:59:40 +000023 * WNetOpenJob [USER.501]
Ulrich Weigandbb1984e1999-08-07 14:32:33 +000024 */
25WORD WINAPI WNetOpenJob16( LPSTR szQueue, LPSTR szJobTitle, WORD nCopies, LPINT16 pfh )
26{
27 FIXME( "(%s, %s, %d, %p): stub\n",
28 debugstr_a(szQueue), debugstr_a(szJobTitle), nCopies, pfh );
29 return WN16_NET_ERROR;
30}
31
32/**************************************************************************
Patrik Stridvall01d5e5b2001-07-02 19:59:40 +000033 * WNetCloseJob [USER.502]
Ulrich Weigandbb1984e1999-08-07 14:32:33 +000034 */
35WORD WINAPI WNetCloseJob16( WORD fh, LPINT16 pidJob, LPSTR szQueue )
36{
37 FIXME( "(%d, %p, %s): stub\n", fh, pidJob, debugstr_a(szQueue) );
38 return WN16_NET_ERROR;
39}
40
41/**************************************************************************
Patrik Stridvall01d5e5b2001-07-02 19:59:40 +000042 * WNetWriteJob [USER.524]
Ulrich Weigandbb1984e1999-08-07 14:32:33 +000043 */
44WORD WINAPI WNetWriteJob16( HANDLE16 hJob, LPSTR lpData, LPINT16 lpcbData )
45{
46 FIXME( "(%04x, %p, %p): stub\n", hJob, lpData, lpcbData );
47 return WN16_NET_ERROR;
48}
49
50/**************************************************************************
Patrik Stridvall01d5e5b2001-07-02 19:59:40 +000051 * WNetAbortJob [USER.503]
Ulrich Weigandbb1984e1999-08-07 14:32:33 +000052 */
53WORD WINAPI WNetAbortJob16( LPSTR szQueue, WORD wJobId )
54{
55 FIXME( "(%s, %d): stub\n", debugstr_a(szQueue), wJobId );
56 return WN16_NET_ERROR;
57}
58
59/**************************************************************************
Patrik Stridvall01d5e5b2001-07-02 19:59:40 +000060 * WNetHoldJob [USER.504]
Ulrich Weigandbb1984e1999-08-07 14:32:33 +000061 */
62WORD WINAPI WNetHoldJob16( LPSTR szQueue, WORD wJobId )
63{
64 FIXME( "(%s, %d): stub\n", debugstr_a(szQueue), wJobId );
65 return WN16_NET_ERROR;
66}
67
68/**************************************************************************
Patrik Stridvall01d5e5b2001-07-02 19:59:40 +000069 * WNetReleaseJob [USER.505]
Ulrich Weigandbb1984e1999-08-07 14:32:33 +000070 */
71WORD WINAPI WNetReleaseJob16( LPSTR szQueue, WORD wJobId )
72{
73 FIXME( "(%s, %d): stub\n", debugstr_a(szQueue), wJobId );
74 return WN16_NET_ERROR;
75}
76
77/**************************************************************************
Patrik Stridvall01d5e5b2001-07-02 19:59:40 +000078 * WNetCancelJob [USER.506]
Ulrich Weigandbb1984e1999-08-07 14:32:33 +000079 */
80WORD WINAPI WNetCancelJob16( LPSTR szQueue, WORD wJobId )
81{
82 FIXME( "(%s, %d): stub\n", debugstr_a(szQueue), wJobId );
83 return WN16_NET_ERROR;
84}
85
86/**************************************************************************
Patrik Stridvall01d5e5b2001-07-02 19:59:40 +000087 * WNetSetJobCopies [USER.507]
Ulrich Weigandbb1984e1999-08-07 14:32:33 +000088 */
89WORD WINAPI WNetSetJobCopies16( LPSTR szQueue, WORD wJobId, WORD nCopies )
90{
91 FIXME( "(%s, %d, %d): stub\n", debugstr_a(szQueue), wJobId, nCopies );
92 return WN16_NET_ERROR;
93}
94
95/**************************************************************************
Patrik Stridvall01d5e5b2001-07-02 19:59:40 +000096 * WNetWatchQueue [USER.508]
Ulrich Weigandbb1984e1999-08-07 14:32:33 +000097 */
98WORD WINAPI WNetWatchQueue16( HWND16 hWnd, LPSTR szLocal, LPSTR szUser, WORD nQueue )
99{
100 FIXME( "(%04x, %s, %s, %d): stub\n",
101 hWnd, debugstr_a(szLocal), debugstr_a(szUser), nQueue );
102 return WN16_NET_ERROR;
103}
104
105/**************************************************************************
Patrik Stridvall01d5e5b2001-07-02 19:59:40 +0000106 * WNetUnwatchQueue [USER.509]
Ulrich Weigandbb1984e1999-08-07 14:32:33 +0000107 */
108WORD WINAPI WNetUnwatchQueue16( LPSTR szQueue )
109{
110 FIXME( "(%s): stub\n", debugstr_a(szQueue) );
111 return WN16_NET_ERROR;
112}
113
114/**************************************************************************
Patrik Stridvall01d5e5b2001-07-02 19:59:40 +0000115 * WNetLockQueueData [USER.510]
Ulrich Weigandbb1984e1999-08-07 14:32:33 +0000116 */
117WORD WINAPI WNetLockQueueData16( LPSTR szQueue, LPSTR szUser,
118 LPQUEUESTRUCT16 *lplpQueueStruct )
119{
120 FIXME( "(%s, %s, %p): stub\n",
121 debugstr_a(szQueue), debugstr_a(szUser), lplpQueueStruct );
122 return WN16_NET_ERROR;
123}
124
125/**************************************************************************
Patrik Stridvall01d5e5b2001-07-02 19:59:40 +0000126 * WNetUnlockQueueData [USER.511]
Ulrich Weigandbb1984e1999-08-07 14:32:33 +0000127 */
128WORD WINAPI WNetUnlockQueueData16( LPSTR szQueue )
129{
130 FIXME( "(%s): stub\n", debugstr_a(szQueue) );
131 return WN16_NET_ERROR;
132}
133
134
135/*
136 * Connections
137 */
Patrik Stridvallb4b9fae1999-04-19 14:56:29 +0000138
Alexandre Julliard46ea8b31998-05-03 19:01:20 +0000139/********************************************************************
Patrik Stridvall01d5e5b2001-07-02 19:59:40 +0000140 * WNetAddConnection [USER.517] Directs a local device to net
Alexandre Julliard46ea8b31998-05-03 19:01:20 +0000141 *
142 * Redirects a local device (either a disk drive or printer port)
143 * to a shared device on a remote server.
144 */
Ulrich Weigandbb1984e1999-08-07 14:32:33 +0000145WORD WINAPI WNetAddConnection16( LPSTR lpNetPath, LPSTR lpPassWord,
146 LPSTR lpLocalName )
Alexandre Julliard46ea8b31998-05-03 19:01:20 +0000147{
Alexandre Julliardebc32252000-03-17 15:09:48 +0000148 FIXME( "(%s, %p, %s): stub\n",
149 debugstr_a(lpNetPath), lpPassWord, debugstr_a(lpLocalName) );
150 return WN16_NET_ERROR;
Andreas Mohr1f0f4821998-11-07 12:38:07 +0000151}
152
Alexandre Julliard46ea8b31998-05-03 19:01:20 +0000153/********************************************************************
Patrik Stridvall01d5e5b2001-07-02 19:59:40 +0000154 * WNetCancelConnection [USER.518] undirects a local device
Alexandre Julliard46ea8b31998-05-03 19:01:20 +0000155 */
Ulrich Weigandbb1984e1999-08-07 14:32:33 +0000156WORD WINAPI WNetCancelConnection16( LPSTR lpName, BOOL16 bForce )
Alexandre Julliard46ea8b31998-05-03 19:01:20 +0000157{
Ulrich Weigandbb1984e1999-08-07 14:32:33 +0000158 FIXME( "(%s, %04X): stub\n", debugstr_a(lpName), bForce);
159 return WN16_NOT_SUPPORTED;
Alexandre Julliard46ea8b31998-05-03 19:01:20 +0000160}
161
Alexandre Julliard46ea8b31998-05-03 19:01:20 +0000162/********************************************************************
Patrik Stridvall01d5e5b2001-07-02 19:59:40 +0000163 * WNetGetConnection [USER.512] reverse-resolves a local device
Alexandre Julliard58199531994-04-21 01:20:00 +0000164 */
Ulrich Weigandbb1984e1999-08-07 14:32:33 +0000165WORD WINAPI WNetGetConnection16( LPSTR lpLocalName,
166 LPSTR lpRemoteName, UINT16 *cbRemoteName )
Alexandre Julliard58199531994-04-21 01:20:00 +0000167{
Alexandre Julliardbf672592000-12-12 00:44:42 +0000168 char label[32];
Alexandre Julliardebc32252000-03-17 15:09:48 +0000169
170 TRACE( "local %s\n", lpLocalName );
Alexandre Julliardbf672592000-12-12 00:44:42 +0000171 switch(GetDriveTypeA(lpLocalName))
Alexandre Julliardebc32252000-03-17 15:09:48 +0000172 {
Alexandre Julliardbf672592000-12-12 00:44:42 +0000173 case DRIVE_REMOTE:
174 GetVolumeInformationA( lpLocalName, label, sizeof(label), NULL, NULL, NULL, NULL, 0 );
175 if (strlen(label) + 1 > *cbRemoteName)
Alexandre Julliardebc32252000-03-17 15:09:48 +0000176 {
Alexandre Julliardbf672592000-12-12 00:44:42 +0000177 *cbRemoteName = strlen(label) + 1;
178 return WN16_MORE_DATA;
Alexandre Julliardebc32252000-03-17 15:09:48 +0000179 }
Alexandre Julliardbf672592000-12-12 00:44:42 +0000180 strcpy( lpRemoteName, label );
181 *cbRemoteName = strlen(lpRemoteName) + 1;
182 return WN16_SUCCESS;
183 case DRIVE_REMOVABLE:
184 case DRIVE_FIXED:
185 case DRIVE_CDROM:
186 TRACE("file is local\n");
187 return WN16_NOT_CONNECTED;
188 default:
189 return WN16_BAD_LOCALNAME;
Alexandre Julliardebc32252000-03-17 15:09:48 +0000190 }
Ulrich Weigandbb1984e1999-08-07 14:32:33 +0000191}
Alexandre Julliard594997c1995-04-30 10:05:20 +0000192
Ulrich Weigandbb1984e1999-08-07 14:32:33 +0000193/**************************************************************************
Patrik Stridvall01d5e5b2001-07-02 19:59:40 +0000194 * WNetRestoreConnection [USER.523]
Ulrich Weigandbb1984e1999-08-07 14:32:33 +0000195 */
196WORD WINAPI WNetRestoreConnection16( HWND16 hwndOwner, LPSTR lpszDevice )
197{
198 FIXME( "(%04x, %s): stub\n", hwndOwner, debugstr_a(lpszDevice) );
199 return WN16_NOT_SUPPORTED;
200}
201
202
203/*
204 * Capabilities
205 */
206
207/**************************************************************************
Patrik Stridvall01d5e5b2001-07-02 19:59:40 +0000208 * WNetGetCaps [USER.513]
Ulrich Weigandbb1984e1999-08-07 14:32:33 +0000209 */
210WORD WINAPI WNetGetCaps16( WORD capability )
211{
212 switch (capability)
Alexandre Julliard594997c1995-04-30 10:05:20 +0000213 {
Ulrich Weigandbb1984e1999-08-07 14:32:33 +0000214 case WNNC16_SPEC_VERSION:
215 return 0x30a; /* WfW 3.11 (and apparently other 3.1x) */
216
217 case WNNC16_NET_TYPE:
218 /* hi byte = network type,
219 lo byte = network vendor (Netware = 0x03) [15 types] */
220 return WNNC16_NET_MultiNet | WNNC16_SUBNET_WinWorkgroups;
221
222 case WNNC16_DRIVER_VERSION:
223 /* driver version of vendor */
224 return 0x100; /* WfW 3.11 */
225
226 case WNNC16_USER:
227 /* 1 = WNetGetUser is supported */
228 return 1;
229
230 case WNNC16_CONNECTION:
231 /* returns mask of the supported connection functions */
232 return WNNC16_CON_AddConnection | WNNC16_CON_CancelConnection
233 | WNNC16_CON_GetConnections /* | WNNC16_CON_AutoConnect */
234 | WNNC16_CON_BrowseDialog | WNNC16_CON_RestoreConnection;
235
236 case WNNC16_PRINTING:
237 /* returns mask of the supported printing functions */
238 return WNNC16_PRT_OpenJob | WNNC16_PRT_CloseJob | WNNC16_PRT_HoldJob
239 | WNNC16_PRT_ReleaseJob | WNNC16_PRT_CancelJob
240 | WNNC16_PRT_SetJobCopies | WNNC16_PRT_WatchQueue
241 | WNNC16_PRT_UnwatchQueue | WNNC16_PRT_LockQueueData
242 | WNNC16_PRT_UnlockQueueData | WNNC16_PRT_AbortJob
243 | WNNC16_PRT_WriteJob;
244
245 case WNNC16_DIALOG:
246 /* returns mask of the supported dialog functions */
247 return WNNC16_DLG_DeviceMode | WNNC16_DLG_BrowseDialog
248 | WNNC16_DLG_ConnectDialog | WNNC16_DLG_DisconnectDialog
249 | WNNC16_DLG_ViewQueueDialog | WNNC16_DLG_PropertyDialog
250 | WNNC16_DLG_ConnectionDialog
251 /* | WNNC16_DLG_PrinterConnectDialog
252 | WNNC16_DLG_SharesDialog | WNNC16_DLG_ShareAsDialog */;
253
254 case WNNC16_ADMIN:
255 /* returns mask of the supported administration functions */
256 /* not sure if long file names is a good idea */
257 return WNNC16_ADM_GetDirectoryType
258 /* | WNNC16_ADM_DirectoryNotify */ /*not yet supported*/
259 | WNNC16_ADM_LongNames /* | WNNC16_ADM_SetDefaultDrive */;
260
261 case WNNC16_ERROR:
262 /* returns mask of the supported error functions */
263 return WNNC16_ERR_GetError | WNNC16_ERR_GetErrorText;
264
265 case WNNC16_PRINTMGREXT:
266 /* returns the Print Manager version in major and
267 minor format if Print Manager functions are available */
268 return 0x30e; /* printman version of WfW 3.11 */
269
270 case 0xffff:
271 /* Win 3.11 returns HMODULE of network driver here
272 FIXME: what should we return ?
273 logonoff.exe needs it, msmail crashes with wrong value */
274 return 0;
275
276 default:
277 return 0;
Alexandre Julliard594997c1995-04-30 10:05:20 +0000278 }
Ulrich Weigandbb1984e1999-08-07 14:32:33 +0000279}
280
281
282/*
283 * Get User
284 */
285
286/**************************************************************************
Patrik Stridvall01d5e5b2001-07-02 19:59:40 +0000287 * WNetGetUser [USER.516]
Ulrich Weigandbb1984e1999-08-07 14:32:33 +0000288 */
Ron Gage7bfd0792000-03-28 20:41:46 +0000289WORD WINAPI WNetGetUser16( LPCSTR lpName, LPSTR szUser, LPINT16 nBufferSize )
Ulrich Weigandbb1984e1999-08-07 14:32:33 +0000290{
Ron Gage7bfd0792000-03-28 20:41:46 +0000291 FIXME( "(%p, %p, %p): stub\n", lpName, szUser, nBufferSize );
Ulrich Weigandbb1984e1999-08-07 14:32:33 +0000292 return WN16_NOT_SUPPORTED;
293}
294
295
296/*
297 * Browsing
298 */
299
300/**************************************************************************
Patrik Stridvall01d5e5b2001-07-02 19:59:40 +0000301 * WNetDeviceMode [USER.514]
Ulrich Weigandbb1984e1999-08-07 14:32:33 +0000302 */
303WORD WINAPI WNetDeviceMode16( HWND16 hWndOwner )
304{
305 FIXME( "(%04x): stub\n", hWndOwner );
306 return WN16_NOT_SUPPORTED;
Alexandre Julliard58199531994-04-21 01:20:00 +0000307}
308
309/**************************************************************************
Patrik Stridvall01d5e5b2001-07-02 19:59:40 +0000310 * WNetBrowseDialog [USER.515]
Alexandre Julliard46ea8b31998-05-03 19:01:20 +0000311 */
Ulrich Weigandbb1984e1999-08-07 14:32:33 +0000312WORD WINAPI WNetBrowseDialog16( HWND16 hParent, WORD nType, LPSTR szPath )
Alexandre Julliard46ea8b31998-05-03 19:01:20 +0000313{
Ulrich Weigandbb1984e1999-08-07 14:32:33 +0000314 FIXME( "(%04x, %x, %s): stub\n", hParent, nType, szPath );
315 return WN16_NOT_SUPPORTED;
Alexandre Julliardfa68b751995-04-03 16:55:37 +0000316}
317
Alexandre Julliard46ea8b31998-05-03 19:01:20 +0000318/********************************************************************
Patrik Stridvall54fe8382000-04-06 20:21:16 +0000319 * WNetConnectDialog [USER.525]
Alexandre Julliardfa68b751995-04-03 16:55:37 +0000320 */
Ulrich Weigandbb1984e1999-08-07 14:32:33 +0000321WORD WINAPI WNetConnectDialog( HWND16 hWndParent, WORD iType )
Alexandre Julliardfa68b751995-04-03 16:55:37 +0000322{
Ulrich Weigandbb1984e1999-08-07 14:32:33 +0000323 FIXME( "(%04x, %x): stub\n", hWndParent, iType );
324 return WN16_SUCCESS;
Alexandre Julliardfa68b751995-04-03 16:55:37 +0000325}
326
327/**************************************************************************
Patrik Stridvall01d5e5b2001-07-02 19:59:40 +0000328 * WNetDisconnectDialog [USER.526]
Alexandre Julliardfa68b751995-04-03 16:55:37 +0000329 */
Ulrich Weigandbb1984e1999-08-07 14:32:33 +0000330WORD WINAPI WNetDisconnectDialog16( HWND16 hwndOwner, WORD iType )
Alexandre Julliardfa68b751995-04-03 16:55:37 +0000331{
Ulrich Weigandbb1984e1999-08-07 14:32:33 +0000332 FIXME( "(%04x, %x): stub\n", hwndOwner, iType );
333 return WN16_NOT_SUPPORTED;
Alexandre Julliardfa68b751995-04-03 16:55:37 +0000334}
335
336/**************************************************************************
Patrik Stridvall01d5e5b2001-07-02 19:59:40 +0000337 * WNetConnectionDialog [USER.527]
Alexandre Julliardfa68b751995-04-03 16:55:37 +0000338 */
Ulrich Weigandbb1984e1999-08-07 14:32:33 +0000339WORD WINAPI WNetConnectionDialog16( HWND16 hWndParent, WORD iType )
Alexandre Julliardfa68b751995-04-03 16:55:37 +0000340{
Ulrich Weigandbb1984e1999-08-07 14:32:33 +0000341 FIXME( "(%04x, %x): stub\n", hWndParent, iType );
342 return WN16_SUCCESS;
Alexandre Julliardfa68b751995-04-03 16:55:37 +0000343}
344
345/**************************************************************************
Patrik Stridvall01d5e5b2001-07-02 19:59:40 +0000346 * WNetViewQueueDialog [USER.528]
Alexandre Julliardfa68b751995-04-03 16:55:37 +0000347 */
Ulrich Weigandbb1984e1999-08-07 14:32:33 +0000348WORD WINAPI WNetViewQueueDialog16( HWND16 hwndOwner, LPSTR lpszQueue )
Alexandre Julliardfa68b751995-04-03 16:55:37 +0000349{
Ulrich Weigandbb1984e1999-08-07 14:32:33 +0000350 FIXME(" (%04x, %s): stub\n", hwndOwner, debugstr_a(lpszQueue) );
351 return WN16_NOT_SUPPORTED;
Alexandre Julliardfa68b751995-04-03 16:55:37 +0000352}
353
Ulrich Weigandbb1984e1999-08-07 14:32:33 +0000354/**************************************************************************
Patrik Stridvall01d5e5b2001-07-02 19:59:40 +0000355 * WNetPropertyDialog [USER.529]
Ulrich Weigandbb1984e1999-08-07 14:32:33 +0000356 */
357WORD WINAPI WNetPropertyDialog16( HWND16 hwndParent, WORD iButton,
358 WORD nPropSel, LPSTR lpszName, WORD nType )
359{
360 FIXME( "(%04x, %x, %x, %s, %x ): stub\n",
361 hwndParent, iButton, nPropSel, debugstr_a(lpszName), nType );
362 return WN16_NOT_SUPPORTED;
363}
364
365/**************************************************************************
Patrik Stridvall01d5e5b2001-07-02 19:59:40 +0000366 * WNetGetPropertyText [USER.532]
Ulrich Weigandbb1984e1999-08-07 14:32:33 +0000367 */
368WORD WINAPI WNetGetPropertyText16( WORD iButton, WORD nPropSel, LPSTR lpszName,
369 LPSTR lpszButtonName, WORD cbButtonName, WORD nType )
370{
371 FIXME( "(%04x, %04x, %s, %s, %04x): stub\n",
372 iButton, nPropSel, debugstr_a(lpszName), debugstr_a(lpszButtonName), nType);
373 return WN16_NOT_SUPPORTED;
374}
375
376
377/*
378 * Admin
379 */
380
Alexandre Julliard46ea8b31998-05-03 19:01:20 +0000381/*********************************************************************
Patrik Stridvall01d5e5b2001-07-02 19:59:40 +0000382 * WNetGetDirectoryType [USER.530] Decides whether resource is local
Alexandre Julliard46ea8b31998-05-03 19:01:20 +0000383 *
384 * RETURNS
385 * on success, puts one of the following in *lpType:
386 * - WNDT_NETWORK on a network
387 * - WNDT_LOCAL local
Alexandre Julliardfa68b751995-04-03 16:55:37 +0000388 */
Ulrich Weigandbb1984e1999-08-07 14:32:33 +0000389WORD WINAPI WNetGetDirectoryType16( LPSTR lpName, LPINT16 lpType )
Alexandre Julliardfa68b751995-04-03 16:55:37 +0000390{
Ulrich Weigandbb1984e1999-08-07 14:32:33 +0000391 UINT type = GetDriveTypeA(lpName);
Alexandre Julliardbf672592000-12-12 00:44:42 +0000392 if ( type == DRIVE_NO_ROOT_DIR )
Ulrich Weigandbb1984e1999-08-07 14:32:33 +0000393 type = GetDriveTypeA(NULL);
Alexandre Julliarddadf78f1998-05-17 17:13:43 +0000394
Ulrich Weigandbb1984e1999-08-07 14:32:33 +0000395 *lpType = (type == DRIVE_REMOTE)? WNDT_NETWORK : WNDT_NORMAL;
Alexandre Julliardfa68b751995-04-03 16:55:37 +0000396
Ulrich Weigandbb1984e1999-08-07 14:32:33 +0000397 TRACE( "%s is %s\n", debugstr_a(lpName),
398 (*lpType == WNDT_NETWORK)? "WNDT_NETWORK" : "WNDT_NORMAL" );
399 return WN16_SUCCESS;
Alexandre Julliard46ea8b31998-05-03 19:01:20 +0000400}
401
Alexandre Julliardfa68b751995-04-03 16:55:37 +0000402/**************************************************************************
Patrik Stridvall01d5e5b2001-07-02 19:59:40 +0000403 * WNetDirectoryNotify [USER.531]
Alexandre Julliardfa68b751995-04-03 16:55:37 +0000404 */
Ulrich Weigandbb1984e1999-08-07 14:32:33 +0000405WORD WINAPI WNetDirectoryNotify16( HWND16 hwndOwner, LPSTR lpDir, WORD wOper )
Alexandre Julliardfa68b751995-04-03 16:55:37 +0000406{
Ulrich Weigandbb1984e1999-08-07 14:32:33 +0000407 FIXME( "(%04x, %s, %s): stub\n", hwndOwner, debugstr_a(lpDir),
408 (wOper == WNDN_MKDIR)? "WNDN_MKDIR" :
409 (wOper == WNDN_MVDIR)? "WNDN_MVDIR" :
410 (wOper == WNDN_RMDIR)? "WNDN_RMDIR" : "unknown" );
411 return WN16_NOT_SUPPORTED;
412}
413
414
415/*
416 * Error handling
417 */
418
419/**************************************************************************
Patrik Stridvall01d5e5b2001-07-02 19:59:40 +0000420 * WNetGetError [USER.519]
Ulrich Weigandbb1984e1999-08-07 14:32:33 +0000421 */
422WORD WINAPI WNetGetError16( LPINT16 nError )
423{
424 FIXME( "(%p): stub\n", nError );
425 return WN16_NOT_SUPPORTED;
Alexandre Julliardfa68b751995-04-03 16:55:37 +0000426}
427
428/**************************************************************************
Patrik Stridvall01d5e5b2001-07-02 19:59:40 +0000429 * WNetGetErrorText [USER.520]
Alexandre Julliardfa68b751995-04-03 16:55:37 +0000430 */
Ulrich Weigandbb1984e1999-08-07 14:32:33 +0000431WORD WINAPI WNetGetErrorText16( WORD nError, LPSTR lpBuffer, LPINT16 nBufferSize )
Alexandre Julliardfa68b751995-04-03 16:55:37 +0000432{
Ulrich Weigandbb1984e1999-08-07 14:32:33 +0000433 FIXME( "(%x, %p, %p): stub\n", nError, lpBuffer, nBufferSize );
434 return WN16_NET_ERROR;
Alexandre Julliard58199531994-04-21 01:20:00 +0000435}
436
437/**************************************************************************
Patrik Stridvall01d5e5b2001-07-02 19:59:40 +0000438 * WNetErrorText [USER.499]
Alexandre Julliard58199531994-04-21 01:20:00 +0000439 */
Ulrich Weigandbb1984e1999-08-07 14:32:33 +0000440WORD WINAPI WNetErrorText16( WORD nError, LPSTR lpszText, WORD cbText )
Alexandre Julliard58199531994-04-21 01:20:00 +0000441{
Ulrich Weigandbb1984e1999-08-07 14:32:33 +0000442 FIXME("(%x, %p, %x): stub\n", nError, lpszText, cbText );
Ulrich Weigand73cf91e1999-05-17 14:56:23 +0000443 return FALSE;
444}
445