Changeset 1590 for trunk/include/win/winnetwk.h
- Timestamp:
- Nov 4, 1999, 11:56:26 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/win/winnetwk.h
r4 r1590 1 /* $Id: winnetwk.h,v 1. 1 1999-05-24 20:19:22 ktkExp $ */1 /* $Id: winnetwk.h,v 1.2 1999-11-04 10:55:46 phaller Exp $ */ 2 2 3 3 #ifndef _WINNETWK_H_ … … 51 51 52 52 53 typedef struct _DISCDLGSTRUCTA{ 54 DWORD cbStructure; 55 HWND hwndOwner; 56 LPSTR lpLocalName; 57 LPSTR lpRemoteName; 58 DWORD dwFlags; 59 } DISCDLGSTRUCTA, *LPDISCDLGSTRUCTA; 60 61 typedef struct _DISCDLGSTRUCTW{ 62 DWORD cbStructure; 63 HWND hwndOwner; 64 LPWSTR lpLocalName; 65 LPWSTR lpRemoteName; 66 DWORD dwFlags; 67 } DISCDLGSTRUCTW, *LPDISCDLGSTRUCTW; 68 69 70 typedef 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 53 81 /**/ 54 82 #define CONNDLG_RO_PATH 0x00000001 /* Resource path should be read-only */ … … 67 95 DWORD dwOptDataSize; 68 96 } NETCONNECTINFOSTRUCT,*LPNETCONNECTINFOSTRUCT; 69 70 71 UINT WINAPI WNetAddConnection2A(LPNETRESOURCEA,LPCSTR,LPCSTR,DWORD); 72 UINT WINAPI WNetAddConnection2W(LPNETRESOURCEW,LPCWSTR,LPCWSTR,DWORD); 73 #define WNetAddConnection2 WINELIB_NAME_AW(WNetAddConnection2_) 74 UINT WINAPI WNetAddConnection3A(HWND,LPNETRESOURCEA,LPCSTR,LPCSTR,DWORD); 75 UINT WINAPI WNetAddConnection3W(HWND,LPNETRESOURCEW,LPCWSTR,LPCWSTR,DWORD); 76 #define WNetAddConnection3 WINELIB_NAME_AW(WNetAddConnection3_) 77 UINT WINAPI WNetConnectionDialog1(HWND,DWORD); 78 UINT WINAPI WNetConnectionDialog1A(LPCONNECTDLGSTRUCTA); 79 UINT WINAPI WNetConnectionDialog1W(LPCONNECTDLGSTRUCTW); 80 #define WNetConnectionDialog1 WINELIB_NAME_AW(WNetConnectionDialog1_) 81 UINT WINAPI MultinetGetErrorTextA(DWORD,DWORD,DWORD); 82 UINT WINAPI MultinetGetErrorTextW(DWORD,DWORD,DWORD); 83 #define MultinetGetErrorText WINELIB_NAME_AW(MultinetGetErrorText_) 97 98 99 /**************************************************************************** 100 * Defines * 101 ****************************************************************************/ 84 102 85 103 #define RESOURCETYPE_ANY 0x00000000 … … 94 112 #define CONNECT_NEED_DRIVE 0x00000020 95 113 114 115 /**************************************************************************** 116 * Prototypes * 117 ****************************************************************************/ 118 119 UINT WINAPI MultinetGetErrorTextA(DWORD,DWORD,DWORD); 120 UINT WINAPI MultinetGetErrorTextW(DWORD,DWORD,DWORD); 121 #define MultinetGetErrorText WINELIB_NAME_AW(MultinetGetErrorText_) 122 123 124 DWORD WIN32API MultinetGetConnectionPerformanceA (LPNETRESOURCEA lpNetResource, 125 LPNETCONNECTINFOSTRUCT lpNetConnectInfoStruct); 126 127 DWORD WIN32API MultinetGetConnectionPerformanceW (LPNETRESOURCEW lpNetResource, 128 LPNETCONNECTINFOSTRUCT lpNetConnectInfoStruct); 129 130 DWORD WIN32API WNetAddConnection2A(LPNETRESOURCEA lpNetResource, 131 LPCSTR lpPassword, 132 LPCSTR lpUsername, 133 DWORD fdwConnection); 134 135 DWORD WIN32API WNetAddConnection2W(LPNETRESOURCEW lpNetResource, 136 LPCWSTR lpPassword, 137 LPCWSTR lpUsername, 138 DWORD fdwConnection); 139 140 DWORD WIN32API WNetAddConnection3A(HWND hwndOwner, 141 LPNETRESOURCEA lpNetResource, 142 LPCSTR lpPassword, 143 LPCSTR lpUsername, 144 DWORD fdwConnection); 145 146 DWORD WIN32API WNetAddConnection3W(HWND hwndOwner, 147 LPNETRESOURCEW lpNetResource, 148 LPCWSTR lpPassword, 149 LPCWSTR lpUsername, 150 DWORD fdwConnection); 151 152 DWORD WIN32API WNetAddConnectionA(LPCSTR lpRemoteName, 153 LPCSTR lpPassword, 154 LPCSTR lpUsername); 155 156 DWORD WIN32API WNetAddConnectionW(LPCWSTR lpRemoteName, 157 LPCWSTR lpPassword, 158 LPCWSTR lpUsername); 159 160 DWORD WIN32API WNetCancelConnection2A(LPTSTR lpszName, 161 DWORD fdwConnection, 162 BOOL fForce); 163 164 DWORD WIN32API WNetCancelConnection2W(LPWSTR lpszName, 165 DWORD fdwConnection, 166 BOOL fForce); 167 168 DWORD WIN32API WNetCancelConnectionA(LPTSTR lpszName, 169 BOOL fForce); 170 171 DWORD WIN32API WNetCancelConnectionW(LPWSTR lpszName, 172 BOOL fForce); 173 174 DWORD WIN32API WNetCloseEnum (HANDLE hEnum); 175 176 DWORD WIN32API WNetConnectionDialog (HWND hwnd, 177 DWORD fdwResourceType); 178 179 DWORD WIN32API WNetConnectionDialog1A(LPCONNECTDLGSTRUCTA lpConnDlgStruct); 180 181 DWORD WIN32API WNetConnectionDialog1W(LPCONNECTDLGSTRUCTW lpConnDlgStruct); 182 183 DWORD WIN32API WNetDisconnectDialog (HWND hwnd, 184 DWORD fdwResourceType); 185 186 DWORD WIN32API WNetDisconnectDialog1A(LPDISCDLGSTRUCTA lpDisconnectDlgStruct); 187 188 DWORD WIN32API WNetDisconnectDialog1W(LPDISCDLGSTRUCTW lpDisconnectDlgStruct); 189 190 DWORD WIN32API WNetEnumResourceA (HANDLE hEnum, 191 LPDWORD lpcEntries, 192 LPVOID lpvBuffer, 193 LPDWORD lpcBuffer); 194 195 DWORD WIN32API WNetEnumResourceW (HANDLE hEnum, 196 LPDWORD lpcEntries, 197 LPVOID lpvBuffer, 198 LPDWORD lpcBuffer); 199 200 DWORD WIN32API WNetGetConnectionA (LPTSTR lpszLocalName, 201 LPTSTR lpszRemoteName, 202 LPDWORD lpcchBuffer); 203 204 DWORD WIN32API WNetGetConnectionW (LPWSTR lpszLocalName, 205 LPWSTR lpszRemoteName, 206 LPDWORD lpcchBuffer); 207 208 DWORD WIN32API WNetGetLastErrorA (LPDWORD lpdwErrorCode, 209 LPTSTR lpszDescription, 210 DWORD cchDescription, 211 LPTSTR lpszName, 212 DWORD cchName); 213 214 DWORD WIN32API WNetGetLastErrorW (LPDWORD lpdwErrorCode, 215 LPWSTR lpszDescription, 216 DWORD cchDescription, 217 LPWSTR lpszName, 218 DWORD cchName); 219 220 DWORD WIN32API WNetGetNetworkInformationA(LPCSTR lpProvider, 221 LPNETINFOSTRUCT lpNetInfoStruct); 222 223 DWORD WIN32API WNetGetNetworkInformationW(LPCWSTR lpProvider, 224 LPNETINFOSTRUCT lpNetInfoStruct); 225 226 DWORD WIN32API WNetGetResourceInformationA(LPNETRESOURCEA lpNetResource, 227 LPVOID lpBuffer, 228 LPDWORD cbBuffer, 229 LPTSTR *lplpSystem); 230 231 DWORD WIN32API WNetGetResourceInformationW(LPNETRESOURCEW lpNetResource, 232 LPVOID lpBuffer, 233 LPDWORD cbBuffer, 234 LPWSTR *lplpSystem); 235 236 DWORD WIN32API WNetGetResourceParentA(LPNETRESOURCEA lpNetResource, 237 LPVOID lpBuffer, 238 LPDWORD lpBufferSize); 239 240 DWORD WIN32API WNetGetResourceParentW(LPNETRESOURCEW lpNetResource, 241 LPVOID lpBuffer, 242 LPDWORD lpBufferSize); 243 244 DWORD WIN32API WNetGetProviderNameA(DWORD dwNetType, 245 LPSTR lpProviderName, 246 LPDWORD lpBufferSize); 247 248 DWORD WIN32API WNetGetProviderNameW(DWORD dwNetType, 249 LPWSTR lpProviderName, 250 LPDWORD lpBufferSize); 251 252 DWORD WIN32API WNetGetUniversalNameA(LPCSTR lpLocalPath, 253 DWORD dwInfoLevel, 254 LPVOID lpBuffer, 255 LPDWORD lpBufferSize); 256 257 DWORD WIN32API WNetGetUniversalNameW(LPCWSTR lpLocalPath, 258 DWORD dwInfoLevel, 259 LPVOID lpBuffer, 260 LPDWORD lpBufferSize); 261 262 DWORD WIN32API WNetGetUserA(LPTSTR lpszLocalName, 263 LPTSTR lpszUserName, 264 LPDWORD lpcchBuffer); 265 266 DWORD WIN32API WNetGetUserW(LPWSTR lpszLocalName, 267 LPWSTR lpszUserName, 268 LPDWORD lpcchBuffer); 269 270 DWORD WIN32API WNetOpenEnumA(DWORD fdwScope, 271 DWORD fdwType, 272 DWORD fdwUsage, 273 LPNETRESOURCEA lpNetResource, 274 LPHANDLE lphEnum); 275 276 DWORD WIN32API WNetOpenEnumW(DWORD fdwScope, 277 DWORD fdwType, 278 DWORD fdwUsage, 279 LPNETRESOURCEW lpNetResource, 280 LPHANDLE lphEnum); 281 282 DWORD WIN32API WNetSetLastErrorA (DWORD dwErrorCode, 283 LPTSTR lpszDescription, 284 LPTSTR lpszName); 285 286 DWORD WIN32API WNetSetLastErrorW (DWORD dwErrorCode, 287 LPWSTR lpszDescription, 288 LPWSTR lpszName); 289 290 DWORD 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 299 DWORD 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 96 311 #endif /* _WINNETWK_H_ */
Note:
See TracChangeset
for help on using the changeset viewer.