12 #define WNNC_NET_MSNET 0x00010000
13 #define WNNC_NET_LANMAN 0x00020000
14 #define WNNC_NET_NETWARE 0x00030000
15 #define WNNC_NET_VINES 0x00040000
16 #define WNNC_NET_10NET 0x00050000
17 #define WNNC_NET_LOCUS 0x00060000
18 #define WNNC_NET_SUN_PC_NFS 0x00070000
19 #define WNNC_NET_LANSTEP 0x00080000
20 #define WNNC_NET_9TILES 0x00090000
21 #define WNNC_NET_LANTASTIC 0x000A0000
22 #define WNNC_NET_AS400 0x000B0000
23 #define WNNC_NET_FTP_NFS 0x000C0000
24 #define WNNC_NET_PATHWORKS 0x000D0000
25 #define WNNC_NET_LIFENET 0x000E0000
26 #define WNNC_NET_POWERLAN 0x000F0000
27 #define WNNC_NET_BWNFS 0x00100000
28 #define WNNC_NET_COGENT 0x00110000
29 #define WNNC_NET_FARALLON 0x00120000
30 #define WNNC_NET_APPLETALK 0x00130000
31 #define WNNC_NET_INTERGRAPH 0x00140000
37 #define RESOURCE_CONNECTED 0x00000001
38 #define RESOURCE_GLOBALNET 0x00000002
39 #define RESOURCE_REMEMBERED 0x00000003
40 #define RESOURCE_RECENT 0x00000004
41 #define RESOURCE_CONTEXT 0x00000005
43 #define RESOURCETYPE_ANY 0x00000000
44 #define RESOURCETYPE_DISK 0x00000001
45 #define RESOURCETYPE_PRINT 0x00000002
46 #define RESOURCETYPE_RESERVED 0x00000008
47 #define RESOURCETYPE_UNKNOWN 0xFFFFFFFF
49 #define RESOURCEUSAGE_CONNECTABLE 0x00000001
50 #define RESOURCEUSAGE_CONTAINER 0x00000002
51 #define RESOURCEUSAGE_NOLOCALDEVICE 0x00000004
52 #define RESOURCEUSAGE_SIBLING 0x00000008
53 #define RESOURCEUSAGE_ALL (RESOURCEUSAGE_CONNECTABLE | RESOURCEUSAGE_CONTAINER)
54 #define RESOURCEUSAGE_RESERVED 0x80000000
56 #define RESOURCEDISPLAYTYPE_GENERIC 0x00000000
57 #define RESOURCEDISPLAYTYPE_DOMAIN 0x00000001
58 #define RESOURCEDISPLAYTYPE_SERVER 0x00000002
59 #define RESOURCEDISPLAYTYPE_SHARE 0x00000003
60 #define RESOURCEDISPLAYTYPE_FILE 0x00000004
61 #define RESOURCEDISPLAYTYPE_GROUP 0x00000005
62 #define RESOURCEDISPLAYTYPE_NETWORK 0x00000006
63 #define RESOURCEDISPLAYTYPE_ROOT 0x00000007
64 #define RESOURCEDISPLAYTYPE_SHAREADMIN 0x00000008
65 #define RESOURCEDISPLAYTYPE_DIRECTORY 0x00000009
66 #define RESOURCEDISPLAYTYPE_TREE 0x0000000A
77 } NETRESOURCEA,*LPNETRESOURCEA;
88 } NETRESOURCEW,*LPNETRESOURCEW;
90 DECL_WINELIB_TYPE_AW(NETRESOURCE)
91 DECL_WINELIB_TYPE_AW(LPNETRESOURCE)
98 #define NETPROPERTY_PERSISTENT 1
100 #define CONNECT_UPDATE_PROFILE 0x00000001
101 #define CONNECT_UPDATE_RECENT 0x00000002
102 #define CONNECT_TEMPORARY 0x00000004
103 #define CONNECT_INTERACTIVE 0x00000008
104 #define CONNECT_PROMPT 0x00000010
105 #define CONNECT_NEED_DRIVE 0x00000020
106 #define CONNECT_REFCOUNT 0x00000040
107 #define CONNECT_REDIRECT 0x00000080
108 #define CONNECT_LOCALDRIVE 0x00000100
109 #define CONNECT_CURRENT_MEDIA 0x00000200
111 DWORD WINAPI WNetAddConnectionA(LPCSTR,LPCSTR,LPCSTR);
112 DWORD WINAPI WNetAddConnectionW(LPCWSTR,LPCWSTR,LPCWSTR);
113 #define WNetAddConnection WINELIB_NAME_AW(WNetAddConnection)
114 DWORD WINAPI WNetAddConnection2A(LPNETRESOURCEA,LPCSTR,LPCSTR,DWORD);
115 DWORD WINAPI WNetAddConnection2W(LPNETRESOURCEW,LPCWSTR,LPCWSTR,DWORD);
116 #define WNetAddConnection2 WINELIB_NAME_AW(WNetAddConnection2)
117 DWORD WINAPI WNetAddConnection3A(HWND,LPNETRESOURCEA,LPCSTR,LPCSTR,DWORD);
118 DWORD WINAPI WNetAddConnection3W(HWND,LPNETRESOURCEW,LPCWSTR,LPCWSTR,DWORD);
119 #define WNetAddConnection3 WINELIB_NAME_AW(WNetAddConnection3)
120 DWORD WINAPI WNetCancelConnectionA(LPCSTR,BOOL);
121 DWORD WINAPI WNetCancelConnectionW(LPCWSTR,BOOL);
122 #define WNetCancelConnection WINELIB_NAME_AW(WNetCancelConnection)
123 DWORD WINAPI WNetCancelConnection2A(LPCSTR,DWORD,BOOL);
124 DWORD WINAPI WNetCancelConnection2W(LPCWSTR,DWORD,BOOL);
125 #define WNetCancelConnection2 WINELIB_NAME_AW(WNetCancelConnection2)
126 DWORD WINAPI WNetGetConnectionA(LPCSTR,LPSTR,LPDWORD);
127 DWORD WINAPI WNetGetConnectionW(LPCWSTR,LPWSTR,LPDWORD);
128 #define WNetGetConnection WINELIB_NAME_AW(WNetGetConnection)
129 DWORD WINAPI WNetUseConnectionA(HWND,LPNETRESOURCEA,LPCSTR,LPCSTR,DWORD,LPSTR,LPDWORD,LPDWORD);
130 DWORD WINAPI WNetUseConnectionW(HWND,LPNETRESOURCEW,LPCWSTR,LPCWSTR,DWORD,LPWSTR,LPDWORD,LPDWORD);
131 #define WNetUseConnection WINELIB_NAME_AW(WNetUseConnection)
132 DWORD WINAPI WNetSetConnectionA(LPCSTR,DWORD,LPVOID);
133 DWORD WINAPI WNetSetConnectionW(LPCWSTR,DWORD,LPVOID);
134 #define WNetSetConnection WINELIB_NAME_AW(WNetSetConnection)
137 * Network connection dialogs
141 DWORD cbStructure; /* size of this structure in bytes */
142 HWND hwndOwner; /* owner window for the dialog */
143 LPNETRESOURCEA lpConnRes;/* Requested Resource info */
144 DWORD dwFlags; /* flags (see below) */
145 DWORD dwDevNum; /* number of devices connected to */
146 } CONNECTDLGSTRUCTA, *LPCONNECTDLGSTRUCTA;
148 DWORD cbStructure; /* size of this structure in bytes */
149 HWND hwndOwner; /* owner window for the dialog */
150 LPNETRESOURCEW lpConnRes;/* Requested Resource info */
151 DWORD dwFlags; /* flags (see below) */
152 DWORD dwDevNum; /* number of devices connected to */
153 } CONNECTDLGSTRUCTW, *LPCONNECTDLGSTRUCTW;
155 DECL_WINELIB_TYPE_AW(CONNECTDLGSTRUCT)
156 DECL_WINELIB_TYPE_AW(LPCONNECTDLGSTRUCT)
158 #define CONNDLG_RO_PATH 0x00000001 /* Resource path should be read-only */
159 #define CONNDLG_CONN_POINT 0x00000002 /* Netware -style movable connection point enabled */
160 #define CONNDLG_USE_MRU 0x00000004 /* Use MRU combobox */
161 #define CONNDLG_HIDE_BOX 0x00000008 /* Hide persistent connect checkbox */
162 #define CONNDLG_PERSIST 0x00000010 /* Force persistent connection */
163 #define CONNDLG_NOT_PERSIST 0x00000020 /* Force connection NOT persistent */
166 DWORD cbStructure; /* size of this structure in bytes */
167 HWND hwndOwner; /* owner window for the dialog */
168 LPSTR lpLocalName; /* local device name */
169 LPSTR lpRemoteName; /* network resource name */
170 DWORD dwFlags; /* flags */
171 } DISCDLGSTRUCTA, *LPDISCDLGSTRUCTA;
173 DWORD cbStructure; /* size of this structure in bytes */
174 HWND hwndOwner; /* owner window for the dialog */
175 LPWSTR lpLocalName; /* local device name */
176 LPWSTR lpRemoteName; /* network resource name */
177 DWORD dwFlags; /* flags */
178 } DISCDLGSTRUCTW, *LPDISCDLGSTRUCTW;
180 DECL_WINELIB_TYPE_AW(DISCDLGSTRUCT)
181 DECL_WINELIB_TYPE_AW(LPDISCDLGSTRUCT)
183 #define DISC_UPDATE_PROFILE 0x00000001
184 #define DISC_NO_FORCE 0x00000040
186 DWORD WINAPI WNetConnectionDialog(HWND,DWORD);
187 DWORD WINAPI WNetDisconnectDialog(HWND,DWORD);
188 DWORD WINAPI WNetConnectionDialog1A(LPCONNECTDLGSTRUCTA);
189 DWORD WINAPI WNetConnectionDialog1W(LPCONNECTDLGSTRUCTW);
190 #define WNetConnectionDialog1 WINELIB_NAME_AW(WNetConnectionDialog1)
191 DWORD WINAPI WNetDisconnectDialog1A(LPDISCDLGSTRUCTA);
192 DWORD WINAPI WNetDisconnectDialog1W(LPDISCDLGSTRUCTW);
193 #define WNetDisconnectDialog1 WINELIB_NAME_AW(WNetDisconnectDialog1)
199 DWORD WINAPI WNetOpenEnumA(DWORD,DWORD,DWORD,LPNETRESOURCEA,LPHANDLE);
200 DWORD WINAPI WNetOpenEnumW(DWORD,DWORD,DWORD,LPNETRESOURCEW,LPHANDLE);
201 #define WNetOpenEnum WINELIB_NAME_AW(WNetOpenEnum)
202 DWORD WINAPI WNetEnumResourceA(HANDLE,LPDWORD,LPVOID,LPDWORD);
203 DWORD WINAPI WNetEnumResourceW(HANDLE,LPDWORD,LPVOID,LPDWORD);
204 #define WNetEnumResource WINELIB_NAME_AW(WNetEnumResource)
205 DWORD WINAPI WNetCloseEnum(HANDLE);
211 #define UNIVERSAL_NAME_INFO_LEVEL 0x00000001
212 #define REMOTE_NAME_INFO_LEVEL 0x00000002
215 LPSTR lpUniversalName;
216 } UNIVERSAL_NAME_INFOA, *LPUNIVERSAL_NAME_INFOA;
218 LPWSTR lpUniversalName;
219 } UNIVERSAL_NAME_INFOW, *LPUNIVERSAL_NAME_INFOW;
221 DECL_WINELIB_TYPE_AW(UNIVERSAL_NAME_INFO)
222 DECL_WINELIB_TYPE_AW(LPUNIVERSAL_NAME_INFO)
225 LPSTR lpUniversalName;
226 LPSTR lpConnectionName;
227 LPSTR lpRemainingPath;
228 }REMOTE_NAME_INFOA, *LPREMOTE_NAME_INFOA;
230 LPWSTR lpUniversalName;
231 LPWSTR lpConnectionName;
232 LPWSTR lpRemainingPath;
233 }REMOTE_NAME_INFOW, *LPREMOTE_NAME_INFOW;
235 DECL_WINELIB_TYPE_AW(REMOTE_NAME_INFO)
236 DECL_WINELIB_TYPE_AW(LPREMOTE_NAME_INFO)
238 DWORD WINAPI WNetGetUniversalNameA(LPCSTR,DWORD,LPVOID,LPDWORD);
239 DWORD WINAPI WNetGetUniversalNameW(LPCWSTR,DWORD,LPVOID,LPDWORD);
240 #define WNetGetUniversalName WINELIB_NAME_AW(WNetGetUniversalName)
246 DWORD WINAPI WNetGetUserA(LPCSTR,LPSTR,LPDWORD);
247 DWORD WINAPI WNetGetUserW(LPCWSTR,LPWSTR,LPDWORD);
248 #define WNetGetUser WINELIB_NAME_AW(WNetGetUser)
250 #define WNFMT_MULTILINE 0x01
251 #define WNFMT_ABBREVIATED 0x02
252 #define WNFMT_INENUM 0x10
253 #define WNFMT_CONNECTION 0x20
255 DWORD WINAPI WNetGetProviderNameA(DWORD,LPSTR,LPDWORD);
256 DWORD WINAPI WNetGetProviderNameW(DWORD,LPWSTR,LPDWORD);
257 #define WNetGetProviderName WINELIB_NAME_AW(WNetGetProviderName)
261 DWORD dwProviderVersion;
263 DWORD dwCharacteristics;
268 } NETINFOSTRUCT, *LPNETINFOSTRUCT;
270 #define NETINFO_DLL16 0x00000001
271 #define NETINFO_DISKRED 0x00000004
272 #define NETINFO_PRINTERRED 0x00000008
274 DWORD WINAPI WNetGetNetworkInformationA(LPCSTR,LPNETINFOSTRUCT);
275 DWORD WINAPI WNetGetNetworkInformationW(LPCWSTR,LPNETINFOSTRUCT);
276 #define WNetGetNetworkInformation WINELIB_NAME_AW(WNetGetNetworkInformation)
283 DWORD WINAPI WNetGetLastErrorA(LPDWORD,LPSTR,DWORD,LPSTR,DWORD);
284 DWORD WINAPI WNetGetLastErrorW(LPDWORD,LPWSTR,DWORD,LPWSTR,DWORD);
285 #define WNetGetLastError WINELIB_NAME_AW(WNetGetLastError)
287 #define WN_SUCCESS NO_ERROR
288 #define WN_NO_ERROR NO_ERROR
289 #define WN_NOT_SUPPORTED ERROR_NOT_SUPPORTED
290 #define WN_CANCEL ERROR_CANCELLED
291 #define WN_RETRY ERROR_RETRY
292 #define WN_NET_ERROR ERROR_UNEXP_NET_ERR
293 #define WN_MORE_DATA ERROR_MORE_DATA
294 #define WN_BAD_POINTER ERROR_INVALID_ADDRESS
295 #define WN_BAD_VALUE ERROR_INVALID_PARAMETER
296 #define WN_BAD_USER ERROR_BAD_USERNAME
297 #define WN_BAD_PASSWORD ERROR_INVALID_PASSWORD
298 #define WN_ACCESS_DENIED ERROR_ACCESS_DENIED
299 #define WN_FUNCTION_BUSY ERROR_BUSY
300 #define WN_WINDOWS_ERROR ERROR_UNEXP_NET_ERR
301 #define WN_OUT_OF_MEMORY ERROR_NOT_ENOUGH_MEMORY
302 #define WN_NO_NETWORK ERROR_NO_NETWORK
303 #define WN_EXTENDED_ERROR ERROR_EXTENDED_ERROR
304 #define WN_BAD_LEVEL ERROR_INVALID_LEVEL
305 #define WN_BAD_HANDLE ERROR_INVALID_HANDLE
306 #define WN_NOT_INITIALIZING ERROR_ALREADY_INITIALIZED
307 #define WN_NO_MORE_DEVICES ERROR_NO_MORE_DEVICES
309 #define WN_NOT_CONNECTED ERROR_NOT_CONNECTED
310 #define WN_OPEN_FILES ERROR_OPEN_FILES
311 #define WN_DEVICE_IN_USE ERROR_DEVICE_IN_USE
312 #define WN_BAD_NETNAME ERROR_BAD_NET_NAME
313 #define WN_BAD_LOCALNAME ERROR_BAD_DEVICE
314 #define WN_ALREADY_CONNECTED ERROR_ALREADY_ASSIGNED
315 #define WN_DEVICE_ERROR ERROR_GEN_FAILURE
316 #define WN_CONNECTION_CLOSED ERROR_CONNECTION_UNAVAIL
317 #define WN_NO_NET_OR_BAD_PATH ERROR_NO_NET_OR_BAD_PATH
318 #define WN_BAD_PROVIDER ERROR_BAD_PROVIDER
319 #define WN_CANNOT_OPEN_PROFILE ERROR_CANNOT_OPEN_PROFILE
320 #define WN_BAD_PROFILE ERROR_BAD_PROFILE
321 #define WN_BAD_DEV_TYPE ERROR_BAD_DEV_TYPE
322 #define WN_DEVICE_ALREADY_REMEMBERED ERROR_DEVICE_ALREADY_REMEMBERED
324 #define WN_NO_MORE_ENTRIES ERROR_NO_MORE_ITEMS
325 #define WN_NOT_CONTAINER ERROR_NOT_CONTAINER
327 #define WN_NOT_AUTHENTICATED ERROR_NOT_AUTHENTICATED
328 #define WN_NOT_LOGGED_ON ERROR_NOT_LOGGED_ON
329 #define WN_NOT_VALIDATED ERROR_NO_LOGON_SERVERS
333 * Multinet (for Shell)
342 } NETCONNECTINFOSTRUCT,*LPNETCONNECTINFOSTRUCT;
344 #define WNCON_FORNETCARD 0x00000001
345 #define WNCON_NOTROUTED 0x00000002
346 #define WNCON_SLOWLINK 0x00000004
347 #define WNCON_DYNAMIC 0x00000008
349 DWORD WINAPI MultinetGetConnectionPerformanceA(LPNETRESOURCEA,LPNETCONNECTINFOSTRUCT);
350 DWORD WINAPI MultinetGetConnectionPerformanceW(LPNETRESOURCEW,LPNETCONNECTINFOSTRUCT);
351 #define MultinetGetConnectionPerformance WINELIB_NAME_AW(MultinetGetConnectionPerformance)
352 DWORD WINAPI MultinetGetErrorTextA(DWORD,DWORD,DWORD);
353 DWORD WINAPI MultinetGetErrorTextW(DWORD,DWORD,DWORD);
354 #define MultinetGetErrorText WINELIB_NAME_AW(MultinetGetErrorText)
360 /* WNetEnumCachedPasswords */
361 typedef struct tagPASSWORD_CACHE_ENTRY
369 } PASSWORD_CACHE_ENTRY;
371 typedef BOOL CALLBACK (*ENUMPASSWORDPROC)(PASSWORD_CACHE_ENTRY *, DWORD);
372 UINT WINAPI WNetEnumCachedPasswords( LPSTR, WORD, BYTE, ENUMPASSWORDPROC, DWORD);
374 #endif /* _WINNETWK_H_ */