11 #define WN_SUCCESS 0x0000
12 #define WN_NOT_SUPPORTED 0x0001
13 #define WN_NET_ERROR 0x0002
14 #define WN_MORE_DATA 0x0003
15 #define WN_BAD_POINTER 0x0004
16 #define WN_BAD_VALUE 0x0005
17 #define WN_BAD_PASSWORD 0x0006
18 #define WN_ACCESS_DENIED 0x0007
19 #define WN_FUNCTION_BUSY 0x0008
20 #define WN_WINDOWS_ERROR 0x0009
21 #define WN_BAD_USER 0x000A
22 #define WN_OUT_OF_MEMORY 0x000B
23 #define WN_CANCEL 0x000C
24 #define WN_CONTINUE 0x000D
25 #define WN_NOT_CONNECTED 0x0030
26 #define WN_OPEN_FILES 0x0031
27 #define WN_BAD_NETNAME 0x0032
28 #define WN_BAD_LOCALNAME 0x0033
29 #define WN_ALREADY_CONNECTED 0x0034
30 #define WN_DEVICE_ERROR 0x0035
31 #define WN_CONNECTION_CLOSED 0x0036
33 typedef LPSTR LPNETRESOURCE
;
35 /**************************************************************************
36 * WNetErrorText [USER.499]
38 int WNetErrorText(WORD nError
,LPSTR lpszText
,WORD cbText
)
40 printf("EMPTY STUB !!! WNetErrorText(%x,%p,%x)\n",
41 nError
,lpszText
,cbText
);
45 /**************************************************************************
46 * WNetOpenJob [USER.501]
48 int WNetOpenJob(LPSTR szQueue
,LPSTR szJobTitle
,WORD nCopies
,LPWORD pfh
)
50 printf("EMPTY STUB !!! WNetOpenJob('%s','%s',%x,%p)\n",
51 szQueue
,szJobTitle
,nCopies
,pfh
);
55 /**************************************************************************
56 * WNetCloseJob [USER.502]
58 int WNetCloseJob(WORD fh
,LPWORD pidJob
,LPSTR szQueue
)
60 printf("EMPTY STUB !!! WNetCloseJob(%x,%p,'%s')\n",
65 /**************************************************************************
66 * WNetAbortJob [USER.503]
68 int WNetAbortJob(LPSTR szQueue
,WORD wJobId
)
70 printf("EMPTY STUB !!! WNetAbortJob('%s',%x)\n",
75 /**************************************************************************
76 * WNetHoldJob [USER.504]
78 int WNetHoldJob(LPSTR szQueue
,WORD wJobId
)
80 printf("EMPTY STUB !!! WNetHoldJob('%s',%x)\n",
85 /**************************************************************************
86 * WNetReleaseJob [USER.505]
88 int WNetReleaseJob(LPSTR szQueue
,WORD wJobId
)
90 printf("EMPTY STUB !!! WNetReleaseJob('%s',%x)\n",
95 /**************************************************************************
96 * WNetCancelJob [USER.506]
98 int WNetCancelJob(LPSTR szQueue
,WORD wJobId
)
100 printf("EMPTY STUB !!! WNetCancelJob('%s',%x)\n",
105 /**************************************************************************
106 * WNetSetJobCopies [USER.507]
108 int WNetSetJobCopies(LPSTR szQueue
,WORD wJobId
,WORD nCopies
)
110 printf("EMPTY STUB !!! WNetSetJobCopies('%s',%x,%x)\n",
111 szQueue
,wJobId
,nCopies
);
115 /**************************************************************************
116 * WNetWatchQueue [USER.508]
118 int WNetWatchQueue(HWND hWnd
,LPSTR szLocal
,LPSTR szUser
,WORD nQueue
)
120 printf("EMPTY STUB !!! WNetWatchQueue(%04x,'%s','%s',%x)\n",
121 hWnd
,szLocal
,szUser
,nQueue
);
125 /**************************************************************************
126 * WNetUnwatchQueue [USER.509]
128 int WNetUnwatchQueue(LPSTR szQueue
)
130 printf("EMPTY STUB !!! WNetUnwatchQueue('%s')\n", szQueue
);
134 /**************************************************************************
135 * WNetLockQueueData [USER.510]
137 int WNetLockQueueData(LPSTR szQueue
,LPSTR szUser
,void *lplpQueueStruct
)
139 printf("EMPTY STUB !!! WNetLockQueueData('%s','%s',%p)\n",
140 szQueue
,szUser
,lplpQueueStruct
);
144 /**************************************************************************
145 * WNetUnlockQueueData [USER.511]
147 int WNetUnlockQueueData(LPSTR szQueue
)
149 printf("EMPTY STUB !!! WNetUnlockQueueData('%s')\n",szQueue
);
153 /**************************************************************************
154 * WNetGetConnection [USER.512]
156 int WNetGetConnection(LPSTR lpLocalName
,
157 LPSTR lpRemoteName
, UINT
*cbRemoteName
)
161 if (lpLocalName
[1] == ':')
163 int drive
= toupper(lpLocalName
[0]) - 'A';
164 switch(GetDriveType16(drive
))
166 case DRIVE_CANNOTDETERMINE
:
167 case DRIVE_DOESNOTEXIST
:
168 return WN_BAD_LOCALNAME
;
169 case DRIVE_REMOVABLE
:
171 return WN_NOT_CONNECTED
;
173 path
= DRIVE_GetDosCwd(drive
);
174 if (strlen(path
) + 1 > *cbRemoteName
) return WN_MORE_DATA
;
175 strcpy( lpRemoteName
, path
);
176 *cbRemoteName
= strlen(lpRemoteName
) + 1;
180 return WN_BAD_LOCALNAME
;
183 /**************************************************************************
184 * WNetGetCaps [USER.513]
186 int WNetGetCaps(WORD capability
)
191 /**************************************************************************
192 * WNetDeviceMode [USER.514]
194 int WNetDeviceMode(HWND hWndOwner
)
196 printf("EMPTY STUB !!! WNetDeviceMode(%04x)\n",hWndOwner
);
200 /**************************************************************************
201 * WNetBrowseDialog [USER.515]
203 int WNetBrowseDialog(HWND hParent
,WORD nType
,LPSTR szPath
)
205 printf("EMPTY STUB !!! WNetBrowseDialog(%04x,%x,'%s')\n",
206 hParent
,nType
,szPath
);
210 /**************************************************************************
211 * WNetGetUser [USER.516]
213 UINT
WNetGetUser(LPSTR lpLocalName
, LPSTR lpUserName
, DWORD
*lpSize
)
215 printf("EMPTY STUB !!! WNetGetUser(%p, %p, %p);\n",
216 lpLocalName
, lpUserName
, lpSize
);
220 /**************************************************************************
221 * WNetAddConnection [USER.517]
223 UINT
WNetAddConnection(LPSTR lpNetPath
, LPSTR lpPassWord
, LPSTR lpLocalName
)
225 printf("EMPTY STUB !!! WNetAddConnection('%s', %p, '%s');\n",
226 lpNetPath
, lpPassWord
, lpLocalName
);
231 /**************************************************************************
232 * WNetCancelConnection [USER.518]
234 UINT
WNetCancelConnection(LPSTR lpName
, BOOL bForce
)
236 printf("EMPTY STUB !!! WNetCancelConnection('%s', %04X);\n",
241 /**************************************************************************
242 * WNetGetError [USER.519]
244 int WNetGetError(LPWORD nError
)
246 printf("EMPTY STUB !!! WNetGetError(%p)\n",nError
);
250 /**************************************************************************
251 * WNetGetErrorText [USER.520]
253 int WNetGetErrorText(WORD nError
, LPSTR lpBuffer
, LPWORD nBufferSize
)
255 printf("EMPTY STUB !!! WNetGetErrorText(%x,%p,%p)\n",
256 nError
,lpBuffer
,nBufferSize
);
260 /**************************************************************************
261 * WNetRestoreConnection [USER.523]
263 int WNetRestoreConnection(HWND hwndOwner
,LPSTR lpszDevice
)
265 printf("EMPTY STUB !!! WNetRestoreConnection(%04x,'%s')\n",
266 hwndOwner
,lpszDevice
);
270 /**************************************************************************
271 * WNetWriteJob [USER.524]
273 int WNetWriteJob(HANDLE16 hJob
,void *lpData
,LPWORD lpcbData
)
275 printf("EMPTY STUB !!! WNetWriteJob(%04x,%p,%p)\n",
276 hJob
,lpData
,lpcbData
);
280 /**************************************************************************
281 * WnetConnectDialog [USER.525]
283 UINT
WNetConnectDialog(HWND hWndParent
, WORD iType
)
285 printf("EMPTY STUB !!! WNetConnectDialog(%04x, %4X)\n", hWndParent
, iType
);
289 /**************************************************************************
290 * WNetDisconnectDialog [USER.526]
292 int WNetDisconnectDialog(HWND hwndOwner
, WORD iType
)
294 printf("EMPTY STUB !!! WNetDisconnectDialog(%04x,%x)\n",
299 /**************************************************************************
300 * WnetConnectionDialog [USER.527]
302 UINT
WNetConnectionDialog(HWND hWndParent
, WORD iType
)
304 printf("EMPTY STUB !!! WNetConnectionDialog(%04x, %4X)\n",
309 /**************************************************************************
310 * WNetViewQueueDialog [USER.528]
312 int WNetViewQueueDialog(HWND hwndOwner
,LPSTR lpszQueue
)
314 printf("EMPTY STUB !!! WNetViewQueueDialog(%04x,'%s')\n",
315 hwndOwner
,lpszQueue
);
319 /**************************************************************************
320 * WNetPropertyDialog [USER.529]
322 int WNetPropertyDialog(HWND hwndParent
,WORD iButton
,
323 WORD nPropSel
,LPSTR lpszName
,WORD nType
)
325 printf("EMPTY STUB !!! WNetPropertyDialog(%04x,%x,%x,'%s',%x)\n",
326 hwndParent
,iButton
,nPropSel
,lpszName
,nType
);
330 /**************************************************************************
331 * WNetGetDirectoryType [USER.530]
333 int WNetGetDirectoryType(LPSTR lpName
,void *lpType
)
335 printf("EMPTY STUB !!! WNetGetDirectoryType('%s',%p)\n",
340 /**************************************************************************
341 * WNetDirectoryNotify [USER.531]
343 int WNetDirectoryNotify(HWND hwndOwner
,void *lpDir
,WORD wOper
)
345 printf("EMPTY STUB !!! WNetDirectoryNotify(%04x,%p,%x)\n",
346 hwndOwner
,lpDir
,wOper
);
350 /**************************************************************************
351 * WNetGetPropertyText [USER.532]
353 int WNetGetPropertyText(HWND hwndParent
,WORD iButton
,WORD nPropSel
,
354 LPSTR lpszName
,WORD nType
)
356 printf("EMPTY STUB !!! WNetGetPropertyText(%04x,%x,%x,'%s',%x)\n",
357 hwndParent
,iButton
,nPropSel
,lpszName
,nType
);
361 /**************************************************************************
362 * WNetAddConnection2 [USER.???]
364 UINT
WNetAddConnection2(LPSTR lpNetPath
, LPSTR lpPassWord
,
365 LPSTR lpLocalName
, LPSTR lpUserName
)
367 printf("EMPTY STUB !!! WNetAddConnection2('%s', %p, '%s', '%s');\n",
368 lpNetPath
, lpPassWord
, lpLocalName
, lpUserName
);
372 /**************************************************************************
373 * WNetCloseEnum [USER.???]
375 UINT
WNetCloseEnum(HANDLE16 hEnum
)
377 printf("EMPTY STUB !!! WNetCloseEnum(%04x);\n", hEnum
);
381 /**************************************************************************
382 * WNetEnumResource [USER.???]
384 UINT
WNetEnumResource(HANDLE16 hEnum
, DWORD cRequ
,
385 DWORD
*lpCount
, LPVOID lpBuf
)
387 printf("EMPTY STUB !!! WNetEnumResource(%04x, %08lX, %p, %p);\n",
388 hEnum
, cRequ
, lpCount
, lpBuf
);
392 /**************************************************************************
393 * WNetOpenEnum [USER.???]
395 UINT
WNetOpenEnum(DWORD dwScope
, DWORD dwType
,
396 LPNETRESOURCE lpNet
, HANDLE16
*lphEnum
)
398 printf("EMPTY STUB !!! WNetOpenEnum(%08lX, %08lX, %p, %p);\n",
399 dwScope
, dwType
, lpNet
, lphEnum
);