Changeset 1590
- Timestamp:
- Nov 4, 1999, 11:56:26 AM (26 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
-
changelog (modified) (2 diffs)
-
include/win/winnetwk.h (modified) (4 diffs)
-
src/mpr/MPR.CPP (modified) (7 diffs)
-
src/mpr/MPR.DEF (modified) (3 diffs)
-
src/mpr/makefile (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/changelog
r1586 r1590 1 /* $Id: changelog,v 1.407 1999-11-03 23:29:11 sandervl Exp $ */ 1 /* $Id: changelog,v 1.408 1999-11-04 10:56:26 phaller Exp $ */ 2 3 99-11-04: Patrick Haller <phaller@gmx.net> 4 - WNETAP32: Add: numerous undocumented functions stubbed 2 5 3 6 99-11-03: knut st. osmundsen <knut.stange.osmundsen@pmsc.no> … … 26 29 and bugfix in SearchPathW 27 30 - USER32: Fix: TrackPopupMenuEx lpPM can be NULL 31 Fix LoadBitmapA checked for incorrect return value 28 32 29 33 99-11-02 Markus Montkowski <mmontkowski@gmx.de> -
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_ */ -
trunk/src/mpr/MPR.CPP
r1589 r1590 1 /* $Id: MPR.CPP,v 1. 5 1999-11-04 10:32:35phaller Exp $ */1 /* $Id: MPR.CPP,v 1.6 1999-11-04 10:55:30 phaller Exp $ */ 2 2 3 3 /* … … 32 32 // RestoreConnectionA0 33 33 // WNetClearConnections 34 // WNetConnectionDialog1A35 // WNetConnectionDialog1W36 34 // WNetConnectionDialog2 37 35 // WNetDirectoryNotifyA 38 36 // WNetDirectoryNotifyW 39 // WNetDisconnectDialog1A40 // WNetDisconnectDialog1W41 37 // WNetDisconnectDialog2 42 38 // WNetFMXEditPerm FileManager Extensions ? … … 52 48 // WNetGetDirectoryTypeW 53 49 // WNetGetHomeDirectoryW NT specific 54 // WNetGetNetworkInformationA55 // WNetGetNetworkInformationW56 50 // WNetGetPropertyTextA 57 51 // WNetGetPropertyTextW 58 // WNetGetProviderNameA59 // WNetGetProviderNameW60 52 // WNetGetSearchDialog 61 53 // WNetLogonNotify … … 438 430 439 431 /***************************************************************************** 432 * The WNetConnectionDialog1 function starts a general browsing 433 * dialog box for connecting to network resources. 434 * Parameters: LPCONNECTDLGSTRUCT lpConnDlgStruct 435 * Variables : 436 * Result : API-Returncode 437 * Remark : 438 * Status : UNTESTED STUB 439 * 440 * Author : Patrick Haller [Fri, 1998/02/27 11:55] 441 *****************************************************************************/ 442 443 ODINFUNCTION1(DWORD, WNetConnectionDialog1A, 444 LPCONNECTDLGSTRUCTA, lpConnDlgStruct) 445 { 446 dprintf(("MPR:WNetConnectionDialog1A not implemented.\n")); 447 return (ERROR_NO_NETWORK); 448 } 449 450 451 /***************************************************************************** 452 * The WNetConnectionDialog1 function starts a general browsing 453 * dialog box for connecting to network resources. 454 * Parameters: LPCONNECTDLGSTRUCT lpConnDlgStruct 455 * Variables : 456 * Result : API-Returncode 457 * Remark : 458 * Status : UNTESTED STUB 459 * 460 * Author : Patrick Haller [Fri, 1998/02/27 11:55] 461 *****************************************************************************/ 462 463 ODINFUNCTION1(DWORD, WNetConnectionDialog1W, 464 LPCONNECTDLGSTRUCTW, lpConnDlgStruct) 465 { 466 dprintf(("MPR:WNetConnectionDialog1W not implemented.\n")); 467 return (ERROR_NO_NETWORK); 468 } 469 470 471 /***************************************************************************** 440 472 * The WNetDisconnectDialog function starts a general browsing 441 473 * dialog box for disconnecting from network resources. … … 455 487 { 456 488 dprintf(("MPR:WNetDisconnectDialog not implemented.\n")); 489 return (ERROR_NO_NETWORK); 490 } 491 492 493 /***************************************************************************** 494 * The WNetDisconnectDialog1 function starts a general browsing 495 * dialog box for disconnecting from network resources. 496 * Parameters: LPDISCDLGSTRUCTA lpDisconnectDlgStruct 497 * Variables : 498 * Result : API-Returncode 499 * Remark : 500 * Status : UNTESTED STUB 501 * 502 * Author : Patrick Haller [Fri, 1998/02/27 11:55] 503 *****************************************************************************/ 504 505 ODINFUNCTION1(DWORD, WNetDisconnectDialog1A, 506 LPDISCDLGSTRUCTA, lpDisconnectDlgStruct) 507 { 508 dprintf(("MPR:WNetDisconnectDialog1A not implemented.\n")); 509 return (ERROR_NO_NETWORK); 510 } 511 512 513 /***************************************************************************** 514 * The WNetDisconnectDialog1 function starts a general browsing 515 * dialog box for disconnecting from network resources. 516 * Parameters: LPDISCDLGSTRUCTW lpDisconnectDlgStruct 517 * Variables : 518 * Result : API-Returncode 519 * Remark : 520 * Status : UNTESTED STUB 521 * 522 * Author : Patrick Haller [Fri, 1998/02/27 11:55] 523 *****************************************************************************/ 524 525 ODINFUNCTION1(DWORD, WNetDisconnectDialog1W, 526 LPDISCDLGSTRUCTW, lpDisconnectDlgStruct) 527 { 528 dprintf(("MPR:WNetDisconnectDialog1W not implemented.\n")); 457 529 return (ERROR_NO_NETWORK); 458 530 } … … 601 673 } 602 674 675 676 /***************************************************************************** 677 * The WNetGetNetworkInformation function returns extended 678 * information about a specific network provider whose name was 679 * returned by a previous network enumeration. 680 * Parameters: LPCSTR lpProvider 681 * LPNETINFOSTRUCT lpNetInfoStruct 682 * Variables : 683 * Result : API-Returncode 684 * Remark : 685 * Status : UNTESTED STUB 686 * 687 * Author : Patrick Haller [Fri, 1998/02/27 11:55] 688 *****************************************************************************/ 689 690 ODINFUNCTION2(DWORD, WNetGetNetworkInformationA, 691 LPCSTR, lpProvider, 692 LPNETINFOSTRUCT, lpNetInfoStruct) 693 { 694 dprintf(("MPR:WNetGetNetworkInformationA not implemented.\n")); 695 return (ERROR_NO_NETWORK); 696 } 697 698 699 /***************************************************************************** 700 * The WNetGetNetworkInformation function returns extended 701 * information about a specific network provider whose name was 702 * returned by a previous network enumeration. 703 * Parameters: LPCWSTR lpProvider 704 * LPNETINFOSTRUCT lpNetInfoStruct 705 * Variables : 706 * Result : API-Returncode 707 * Remark : 708 * Status : UNTESTED STUB 709 * 710 * Author : Patrick Haller [Fri, 1998/02/27 11:55] 711 *****************************************************************************/ 712 713 ODINFUNCTION2(DWORD, WNetGetNetworkInformationW, 714 LPCWSTR, lpProvider, 715 LPNETINFOSTRUCT, lpNetInfoStruct) 716 { 717 dprintf(("MPR:WNetGetNetworkInformationW not implemented.\n")); 718 return (ERROR_NO_NETWORK); 719 } 603 720 604 721 … … 772 889 773 890 /***************************************************************************** 891 * The WNetGetProviderName function obtains the provider name for 892 * a specific type of network. 893 * Parameters: DWORD dwNetType 894 * LPSTR lpProviderName 895 * LPDWORD lpBufferSize 896 * Variables : 897 * Result : API-Returncode 898 * Remark : 899 * Status : UNTESTED STUB 900 * 901 * Author : Patrick Haller [Fri, 1998/02/27 11:55] 902 *****************************************************************************/ 903 904 ODINFUNCTION3(DWORD, WNetGetProviderNameA, 905 DWORD, dwNetType, 906 LPSTR, lpProviderName, 907 LPDWORD, lpBufferSize) 908 { 909 dprintf(("MPR:WNetGetProviderNameA not implemented.\n")); 910 return (ERROR_NO_NETWORK); 911 } 912 913 914 /***************************************************************************** 915 * The WNetGetProviderName function obtains the provider name for 916 * a specific type of network. 917 * Parameters: DWORD dwNetType 918 * LPWSTR lpProviderName 919 * LPDWORD lpBufferSize 920 * Variables : 921 * Result : API-Returncode 922 * Remark : 923 * Status : UNTESTED STUB 924 * 925 * Author : Patrick Haller [Fri, 1998/02/27 11:55] 926 *****************************************************************************/ 927 928 ODINFUNCTION3(DWORD, WNetGetProviderNameW, 929 DWORD, dwNetType, 930 LPWSTR, lpProviderName, 931 LPDWORD, lpBufferSize) 932 { 933 dprintf(("MPR:WNetGetProviderNameW not implemented.\n")); 934 return (ERROR_NO_NETWORK); 935 } 936 937 938 /***************************************************************************** 774 939 * The WNetGetUniversalName, functiontakes a drive-based path for 775 940 * a network resource and obtains a data structure that contains a -
trunk/src/mpr/MPR.DEF
r1589 r1590 1 ; $Id: MPR.DEF,v 1. 3 1999-11-04 10:32:36phaller Exp $1 ; $Id: MPR.DEF,v 1.4 1999-11-04 10:55:31 phaller Exp $ 2 2 3 3 ;Created by BLAST for IBMs compiler … … 25 25 ; WNetClearConnections = _WNetClearConnections@?? @16 26 26 WNetCloseEnum = _WNetCloseEnum@4 @17 27 ; WNetConnectionDialog1A = _WNetConnectionDialog1A@??@1828 ; WNetConnectionDialog1W = _WNetConnectionDialog1W@??@1927 WNetConnectionDialog1A = _WNetConnectionDialog1A@4 @18 28 WNetConnectionDialog1W = _WNetConnectionDialog1W@4 @19 29 29 ; WNetConnectionDialog2 = _WNetConnectionDialog2@?? @20 30 30 WNetConnectionDialog = _WNetConnectionDialog@8 @21 31 31 ; WNetDirectoryNotifyA = _WNetDirectoryNotifyA@?? @22 32 32 ; WNetDirectoryNotifyW = _WNetDirectoryNotifyW@?? @23 33 ; WNetDisconnectDialog1A = _WNetDisconnectDialog1A@??@2434 ; WNetDisconnectDialog1W = _WNetDisconnectDialog1W@??@2533 WNetDisconnectDialog1A = _WNetDisconnectDialog1A@4 @24 34 WNetDisconnectDialog1W = _WNetDisconnectDialog1W@4 @25 35 35 ; WNetDisconnectDialog2 = _WNetDisconnectDialog2@?? @26 36 36 WNetDisconnectDialog = _WNetDisconnectDialog@8 @27 … … 53 53 WNetGetLastErrorA = _WNetGetLastErrorA@20 @44 54 54 WNetGetLastErrorW = _WNetGetLastErrorW@20 @45 55 ; WNetGetNetworkInformationA = _WNetGetNetworkInformationA@??@4656 ; WNetGetNetworkInformationW = _WNetGetNetworkInformationW@??@4755 WNetGetNetworkInformationA = _WNetGetNetworkInformationA@8 @46 56 WNetGetNetworkInformationW = _WNetGetNetworkInformationW@8 @47 57 57 ; WNetGetPropertyTextA = _WNetGetPropertyTextA@?? @48 58 58 ; WNetGetPropertyTextW = _WNetGetPropertyTextW@?? @49 59 ; WNetGetProviderNameA = _WNetGetProviderNameA@??@5060 ; WNetGetProviderNameW = _WNetGetProviderNameW@??@5159 WNetGetProviderNameA = _WNetGetProviderNameA@12 @50 60 WNetGetProviderNameW = _WNetGetProviderNameW@12 @51 61 61 ; WNetGetProviderTypeA = _WNetGetProviderTypeA@?? @52 62 62 ; WNetGetProviderTypeW = _WNetGetProviderTypeW@?? @53 -
trunk/src/mpr/makefile
r1585 r1590 1 # $Id: makefile,v 1. 7 1999-11-03 23:28:05 sandervlExp $1 # $Id: makefile,v 1.8 1999-11-04 10:55:31 phaller Exp $ 2 2 3 3 # … … 39 39 40 40 41 mpr.obj: mpr.cpp mpr.h41 mpr.obj: mpr.cpp 42 42 initterm.obj: initterm.cpp 43 43
Note:
See TracChangeset
for help on using the changeset viewer.
