source: trunk/include/win/winnetwk.h@ 10367

Last change on this file since 10367 was 1590, checked in by phaller, 26 years ago

Add: undocumented function stubs

File size: 12.0 KB
Line 
1/* $Id: winnetwk.h,v 1.2 1999-11-04 10:55:46 phaller Exp $ */
2
3#ifndef _WINNETWK_H_
4#define _WINNETWK_H_
5
6#include "windef.h"
7
8
9typedef struct {
10 DWORD dwScope;
11 DWORD dwType;
12 DWORD dwDisplayType;
13 DWORD dwUsage;
14 LPSTR lpLocalName;
15 LPSTR lpRemoteName;
16 LPSTR lpComment ;
17 LPSTR lpProvider;
18} NETRESOURCEA,*LPNETRESOURCEA;
19
20typedef struct {
21 DWORD dwScope;
22 DWORD dwType;
23 DWORD dwDisplayType;
24 DWORD dwUsage;
25 LPWSTR lpLocalName;
26 LPWSTR lpRemoteName;
27 LPWSTR lpComment ;
28 LPWSTR lpProvider;
29} NETRESOURCEW,*LPNETRESOURCEW;
30
31DECL_WINELIB_TYPE_AW(NETRESOURCE)
32DECL_WINELIB_TYPE_AW(LPNETRESOURCE)
33
34typedef struct {
35 DWORD cbStructure; /* size of this structure in bytes */
36 HWND hwndOwner; /* owner window for the dialog */
37 LPNETRESOURCEA lpConnRes;/* Requested Resource info */
38 DWORD dwFlags; /* flags (see below) */
39 DWORD dwDevNum; /* number of devices connected to */
40} CONNECTDLGSTRUCTA, *LPCONNECTDLGSTRUCTA;
41typedef struct {
42 DWORD cbStructure; /* size of this structure in bytes */
43 HWND hwndOwner; /* owner window for the dialog */
44 LPNETRESOURCEW lpConnRes;/* Requested Resource info */
45 DWORD dwFlags; /* flags (see below) */
46 DWORD dwDevNum; /* number of devices connected to */
47} CONNECTDLGSTRUCTW, *LPCONNECTDLGSTRUCTW;
48
49DECL_WINELIB_TYPE_AW(CONNECTDLGSTRUCT)
50DECL_WINELIB_TYPE_AW(LPCONNECTDLGSTRUCT)
51
52
53typedef struct _DISCDLGSTRUCTA{
54 DWORD cbStructure;
55 HWND hwndOwner;
56 LPSTR lpLocalName;
57 LPSTR lpRemoteName;
58 DWORD dwFlags;
59} DISCDLGSTRUCTA, *LPDISCDLGSTRUCTA;
60
61typedef struct _DISCDLGSTRUCTW{
62 DWORD cbStructure;
63 HWND hwndOwner;
64 LPWSTR lpLocalName;
65 LPWSTR lpRemoteName;
66 DWORD dwFlags;
67} DISCDLGSTRUCTW, *LPDISCDLGSTRUCTW;
68
69
70typedef struct _NETINFOSTRUCT{
71 DWORD cbStructure;
72 DWORD dwProviderVersion;
73 DWORD dwStatus;
74 DWORD dwCharacteristics;
75 ULONG_PTR dwHandle;
76 WORD wNetType;
77 DWORD dwPrinters;
78 DWORD dwDrives;
79} NETINFOSTRUCT, *LPNETINFOSTRUCT;
80
81/**/
82#define CONNDLG_RO_PATH 0x00000001 /* Resource path should be read-only */
83#define CONNDLG_CONN_POINT 0x00000002 /* Netware -style movable connection point enabled */
84#define CONNDLG_USE_MRU 0x00000004 /* Use MRU combobox */
85#define CONNDLG_HIDE_BOX 0x00000008 /* Hide persistent connect checkbox */
86#define CONNDLG_PERSIST 0x00000010 /* Force persistent connection */
87#define CONNDLG_NOT_PERSIST 0x00000020 /* Force connection NOT persistent */
88
89
90typedef struct {
91 DWORD cbStructure;
92 DWORD dwFlags;
93 DWORD dwSpeed;
94 DWORD dwDelay;
95 DWORD dwOptDataSize;
96} NETCONNECTINFOSTRUCT,*LPNETCONNECTINFOSTRUCT;
97
98
99/****************************************************************************
100 * Defines *
101 ****************************************************************************/
102
103#define RESOURCETYPE_ANY 0x00000000
104#define RESOURCETYPE_DISK 0x00000001
105#define RESOURCETYPE_PRINT 0x00000002
106
107#define CONNECT_UPDATE_PROFILE 0x00000001
108#define CONNECT_UPDATE_RECENT 0x00000002
109#define CONNECT_TEMPORARY 0x00000004
110#define CONNECT_INTERACTIVE 0x00000008
111#define CONNECT_PROMPT 0x00000010
112#define CONNECT_NEED_DRIVE 0x00000020
113
114
115/****************************************************************************
116 * Prototypes *
117 ****************************************************************************/
118
119UINT WINAPI MultinetGetErrorTextA(DWORD,DWORD,DWORD);
120UINT WINAPI MultinetGetErrorTextW(DWORD,DWORD,DWORD);
121#define MultinetGetErrorText WINELIB_NAME_AW(MultinetGetErrorText_)
122
123
124DWORD WIN32API MultinetGetConnectionPerformanceA (LPNETRESOURCEA lpNetResource,
125 LPNETCONNECTINFOSTRUCT lpNetConnectInfoStruct);
126
127DWORD WIN32API MultinetGetConnectionPerformanceW (LPNETRESOURCEW lpNetResource,
128 LPNETCONNECTINFOSTRUCT lpNetConnectInfoStruct);
129
130DWORD WIN32API WNetAddConnection2A(LPNETRESOURCEA lpNetResource,
131 LPCSTR lpPassword,
132 LPCSTR lpUsername,
133 DWORD fdwConnection);
134
135DWORD WIN32API WNetAddConnection2W(LPNETRESOURCEW lpNetResource,
136 LPCWSTR lpPassword,
137 LPCWSTR lpUsername,
138 DWORD fdwConnection);
139
140DWORD WIN32API WNetAddConnection3A(HWND hwndOwner,
141 LPNETRESOURCEA lpNetResource,
142 LPCSTR lpPassword,
143 LPCSTR lpUsername,
144 DWORD fdwConnection);
145
146DWORD WIN32API WNetAddConnection3W(HWND hwndOwner,
147 LPNETRESOURCEW lpNetResource,
148 LPCWSTR lpPassword,
149 LPCWSTR lpUsername,
150 DWORD fdwConnection);
151
152DWORD WIN32API WNetAddConnectionA(LPCSTR lpRemoteName,
153 LPCSTR lpPassword,
154 LPCSTR lpUsername);
155
156DWORD WIN32API WNetAddConnectionW(LPCWSTR lpRemoteName,
157 LPCWSTR lpPassword,
158 LPCWSTR lpUsername);
159
160DWORD WIN32API WNetCancelConnection2A(LPTSTR lpszName,
161 DWORD fdwConnection,
162 BOOL fForce);
163
164DWORD WIN32API WNetCancelConnection2W(LPWSTR lpszName,
165 DWORD fdwConnection,
166 BOOL fForce);
167
168DWORD WIN32API WNetCancelConnectionA(LPTSTR lpszName,
169 BOOL fForce);
170
171DWORD WIN32API WNetCancelConnectionW(LPWSTR lpszName,
172 BOOL fForce);
173
174DWORD WIN32API WNetCloseEnum (HANDLE hEnum);
175
176DWORD WIN32API WNetConnectionDialog (HWND hwnd,
177 DWORD fdwResourceType);
178
179DWORD WIN32API WNetConnectionDialog1A(LPCONNECTDLGSTRUCTA lpConnDlgStruct);
180
181DWORD WIN32API WNetConnectionDialog1W(LPCONNECTDLGSTRUCTW lpConnDlgStruct);
182
183DWORD WIN32API WNetDisconnectDialog (HWND hwnd,
184 DWORD fdwResourceType);
185
186DWORD WIN32API WNetDisconnectDialog1A(LPDISCDLGSTRUCTA lpDisconnectDlgStruct);
187
188DWORD WIN32API WNetDisconnectDialog1W(LPDISCDLGSTRUCTW lpDisconnectDlgStruct);
189
190DWORD WIN32API WNetEnumResourceA (HANDLE hEnum,
191 LPDWORD lpcEntries,
192 LPVOID lpvBuffer,
193 LPDWORD lpcBuffer);
194
195DWORD WIN32API WNetEnumResourceW (HANDLE hEnum,
196 LPDWORD lpcEntries,
197 LPVOID lpvBuffer,
198 LPDWORD lpcBuffer);
199
200DWORD WIN32API WNetGetConnectionA (LPTSTR lpszLocalName,
201 LPTSTR lpszRemoteName,
202 LPDWORD lpcchBuffer);
203
204DWORD WIN32API WNetGetConnectionW (LPWSTR lpszLocalName,
205 LPWSTR lpszRemoteName,
206 LPDWORD lpcchBuffer);
207
208DWORD WIN32API WNetGetLastErrorA (LPDWORD lpdwErrorCode,
209 LPTSTR lpszDescription,
210 DWORD cchDescription,
211 LPTSTR lpszName,
212 DWORD cchName);
213
214DWORD WIN32API WNetGetLastErrorW (LPDWORD lpdwErrorCode,
215 LPWSTR lpszDescription,
216 DWORD cchDescription,
217 LPWSTR lpszName,
218 DWORD cchName);
219
220DWORD WIN32API WNetGetNetworkInformationA(LPCSTR lpProvider,
221 LPNETINFOSTRUCT lpNetInfoStruct);
222
223DWORD WIN32API WNetGetNetworkInformationW(LPCWSTR lpProvider,
224 LPNETINFOSTRUCT lpNetInfoStruct);
225
226DWORD WIN32API WNetGetResourceInformationA(LPNETRESOURCEA lpNetResource,
227 LPVOID lpBuffer,
228 LPDWORD cbBuffer,
229 LPTSTR *lplpSystem);
230
231DWORD WIN32API WNetGetResourceInformationW(LPNETRESOURCEW lpNetResource,
232 LPVOID lpBuffer,
233 LPDWORD cbBuffer,
234 LPWSTR *lplpSystem);
235
236DWORD WIN32API WNetGetResourceParentA(LPNETRESOURCEA lpNetResource,
237 LPVOID lpBuffer,
238 LPDWORD lpBufferSize);
239
240DWORD WIN32API WNetGetResourceParentW(LPNETRESOURCEW lpNetResource,
241 LPVOID lpBuffer,
242 LPDWORD lpBufferSize);
243
244DWORD WIN32API WNetGetProviderNameA(DWORD dwNetType,
245 LPSTR lpProviderName,
246 LPDWORD lpBufferSize);
247
248DWORD WIN32API WNetGetProviderNameW(DWORD dwNetType,
249 LPWSTR lpProviderName,
250 LPDWORD lpBufferSize);
251
252DWORD WIN32API WNetGetUniversalNameA(LPCSTR lpLocalPath,
253 DWORD dwInfoLevel,
254 LPVOID lpBuffer,
255 LPDWORD lpBufferSize);
256
257DWORD WIN32API WNetGetUniversalNameW(LPCWSTR lpLocalPath,
258 DWORD dwInfoLevel,
259 LPVOID lpBuffer,
260 LPDWORD lpBufferSize);
261
262DWORD WIN32API WNetGetUserA(LPTSTR lpszLocalName,
263 LPTSTR lpszUserName,
264 LPDWORD lpcchBuffer);
265
266DWORD WIN32API WNetGetUserW(LPWSTR lpszLocalName,
267 LPWSTR lpszUserName,
268 LPDWORD lpcchBuffer);
269
270DWORD WIN32API WNetOpenEnumA(DWORD fdwScope,
271 DWORD fdwType,
272 DWORD fdwUsage,
273 LPNETRESOURCEA lpNetResource,
274 LPHANDLE lphEnum);
275
276DWORD WIN32API WNetOpenEnumW(DWORD fdwScope,
277 DWORD fdwType,
278 DWORD fdwUsage,
279 LPNETRESOURCEW lpNetResource,
280 LPHANDLE lphEnum);
281
282DWORD WIN32API WNetSetLastErrorA (DWORD dwErrorCode,
283 LPTSTR lpszDescription,
284 LPTSTR lpszName);
285
286DWORD WIN32API WNetSetLastErrorW (DWORD dwErrorCode,
287 LPWSTR lpszDescription,
288 LPWSTR lpszName);
289
290DWORD WIN32API WNetUseConnectionA(HWND hwndOwner,
291 LPNETRESOURCEA lpNetResource,
292 LPSTR lpPassword,
293 LPSTR lpUserID,
294 DWORD dwFlags,
295 LPSTR lpAccessName,
296 LPDWORD lpBufferSize,
297 LPDWORD lpResult);
298
299DWORD WIN32API WNetUseConnectionW(HWND hwndOwner,
300 LPNETRESOURCEW lpNetResource,
301 LPWSTR lpPassword,
302 LPWSTR lpUserID,
303 DWORD dwFlags,
304 LPWSTR lpAccessName,
305 LPDWORD lpBufferSize,
306 LPDWORD lpResult);
307
308
309
310
311#endif /* _WINNETWK_H_ */
Note: See TracBrowser for help on using the repository browser.