Changeset 1589 for trunk/src/mpr/MPR.CPP
- Timestamp:
- Nov 4, 1999, 11:32:36 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mpr/MPR.CPP
r584 r1589 1 /* $Id: MPR.CPP,v 1. 4 1999-08-19 16:52:23phaller Exp $ */1 /* $Id: MPR.CPP,v 1.5 1999-11-04 10:32:35 phaller Exp $ */ 2 2 3 3 /* … … 23 23 #include <heapstring.h> 24 24 #include <misc.h> 25 #include "mpr.h"25 #include <winnetwk.h> 26 26 27 27 // Undocumented Stuff 28 28 // MPR.DLL of Windows NT 29 29 30 // MultinetGetConnectionPerformanceA31 // MultinetGetConnectionPerformanceW32 30 // MultinetGetErrorTextA 33 31 // MultinetGetErrorTextW … … 68 66 // WNetSetConnectionA 69 67 // WNetSetConnectionW 70 // WNetSetLastErrorA PH: implemented71 // WNetSetLastErrorW PH: implemented72 68 // WNetSupportGlobalEnum 73 // WNetUseConnectionA74 // WNetUseConnectionW75 69 76 70 … … 86 80 } MPRGLOBALS; 87 81 82 83 /***************************************************************************** 84 * Purpose: The MultinetGetConnectionPerformance finctuion returns information 85 * about the expected performance of a connection used to access a 86 * network resource. 87 * Parameters: LPNETRESOURCEA lpNetResource 88 * LPNETCONNECTIONINFOSTRUCT lpNetConnectInfoStruct 89 * Variables : 90 * Result : API-Returncode 91 * Remark : not documented 92 * Status : UNTESTED 93 * 94 * Author : Patrick Haller [Thu, 1999/11/04 19:55] 95 *****************************************************************************/ 96 97 ODINFUNCTION2(DWORD, MultinetGetConnectionPerformanceA, 98 LPNETRESOURCEA, lpNetResource, 99 LPNETCONNECTINFOSTRUCT, lpNetConnectInfoStruct) 100 { 101 dprintf(("MPR:MultinetGetConnectionPerformanceA not implemented.\n")); 102 return (ERROR_NO_NETWORK); 103 } 104 105 106 /***************************************************************************** 107 * Purpose: The MultinetGetConnectionPerformance finctuion returns information 108 * about the expected performance of a connection used to access a 109 * network resource. 110 * Parameters: LPNETRESOURCEW lpNetResource 111 * LPNETCONNECTIONINFOSTRUCT lpNetConnectInfoStruct 112 * Variables : 113 * Result : API-Returncode 114 * Remark : not documented 115 * Status : UNTESTED 116 * 117 * Author : Patrick Haller [Thu, 1999/11/04 19:55] 118 *****************************************************************************/ 119 120 ODINFUNCTION2(DWORD, MultinetGetConnectionPerformanceW, 121 LPNETRESOURCEW, lpNetResource, 122 LPNETCONNECTINFOSTRUCT, lpNetConnectInfoStruct) 123 { 124 dprintf(("MPR:MultinetGetConnectionPerformanceW not implemented.\n")); 125 return (ERROR_NO_NETWORK); 126 } 88 127 89 128 … … 106 145 *****************************************************************************/ 107 146 108 ODINFUNCTION4(DWORD, OS2WNetAddConnection2A,147 ODINFUNCTION4(DWORD, WNetAddConnection2A, 109 148 LPNETRESOURCEA, lpNetResource, 110 149 LPCSTR, lpPassword, … … 135 174 *****************************************************************************/ 136 175 137 ODINFUNCTION4(DWORD, OS2WNetAddConnection2W,176 ODINFUNCTION4(DWORD, WNetAddConnection2W, 138 177 LPNETRESOURCEW, lpNetResource, 139 178 LPCWSTR, lpPassword, … … 166 205 *****************************************************************************/ 167 206 168 ODINFUNCTION5(DWORD, OS2WNetAddConnection3A,207 ODINFUNCTION5(DWORD, WNetAddConnection3A, 169 208 HWND, hwndOwner, 170 209 LPNETRESOURCEA, lpNetResource, … … 197 236 *****************************************************************************/ 198 237 199 ODINFUNCTION5(DWORD, OS2WNetAddConnection3W,238 ODINFUNCTION5(DWORD, WNetAddConnection3W, 200 239 HWND, hwndOwner, 201 240 LPNETRESOURCEW, lpNetResource, … … 224 263 *****************************************************************************/ 225 264 226 ODINFUNCTION3(DWORD, OS2WNetAddConnectionA,265 ODINFUNCTION3(DWORD, WNetAddConnectionA, 227 266 LPCSTR, lpRemoteName, 228 267 LPCSTR, lpPassword, … … 249 288 *****************************************************************************/ 250 289 251 ODINFUNCTION3(DWORD, OS2WNetAddConnectionW,290 ODINFUNCTION3(DWORD, WNetAddConnectionW, 252 291 LPCWSTR, lpRemoteName, 253 292 LPCWSTR, lpPassword, … … 275 314 *****************************************************************************/ 276 315 277 ODINFUNCTION3(DWORD, OS2WNetCancelConnection2A,316 ODINFUNCTION3(DWORD, WNetCancelConnection2A, 278 317 LPTSTR, lpszName, 279 318 DWORD, fdwConnection, … … 301 340 *****************************************************************************/ 302 341 303 ODINFUNCTION3(DWORD, OS2WNetCancelConnection2W,342 ODINFUNCTION3(DWORD, WNetCancelConnection2W, 304 343 LPWSTR, lpszName, 305 344 DWORD, fdwConnection, … … 324 363 *****************************************************************************/ 325 364 326 ODINFUNCTION2(DWORD, OS2WNetCancelConnectionA,365 ODINFUNCTION2(DWORD, WNetCancelConnectionA, 327 366 LPTSTR, lpszName, 328 367 BOOL, fForce) … … 346 385 *****************************************************************************/ 347 386 348 ODINFUNCTION2(DWORD, OS2WNetCancelConnectionW,387 ODINFUNCTION2(DWORD, WNetCancelConnectionW, 349 388 LPWSTR, lpszName, 350 389 BOOL, fForce) … … 368 407 *****************************************************************************/ 369 408 370 ODINFUNCTION1(DWORD, OS2WNetCloseEnum,409 ODINFUNCTION1(DWORD, WNetCloseEnum, 371 410 HANDLE, hEnum) 372 411 { … … 389 428 *****************************************************************************/ 390 429 391 ODINFUNCTION2(DWORD, OS2WNetConnectionDialog,430 ODINFUNCTION2(DWORD, WNetConnectionDialog, 392 431 HWND, hwnd, 393 432 DWORD, fdwResourceType) … … 411 450 *****************************************************************************/ 412 451 413 ODINFUNCTION2(DWORD, OS2WNetDisconnectDialog,452 ODINFUNCTION2(DWORD, WNetDisconnectDialog, 414 453 HWND, hwnd, 415 454 DWORD, fdwResourceType) … … 435 474 *****************************************************************************/ 436 475 437 ODINFUNCTION4(DWORD, OS2WNetEnumResourceA,476 ODINFUNCTION4(DWORD, WNetEnumResourceA, 438 477 HANDLE, hEnum, 439 478 LPDWORD, lpcEntries, … … 461 500 *****************************************************************************/ 462 501 463 ODINFUNCTION4(DWORD, OS2WNetEnumResourceW,502 ODINFUNCTION4(DWORD, WNetEnumResourceW, 464 503 HANDLE, hEnum, 465 504 LPDWORD, lpcEntries, … … 486 525 *****************************************************************************/ 487 526 488 ODINFUNCTION3(DWORD, OS2WNetGetConnectionA,527 ODINFUNCTION3(DWORD, WNetGetConnectionA, 489 528 LPTSTR, lpszLocalName, 490 529 LPTSTR, lpszRemoteName, … … 510 549 *****************************************************************************/ 511 550 512 ODINFUNCTION3(DWORD, OS2WNetGetConnectionW,551 ODINFUNCTION3(DWORD, WNetGetConnectionW, 513 552 LPWSTR, lpszLocalName, 514 553 LPWSTR, lpszRemoteName, … … 536 575 *****************************************************************************/ 537 576 538 ODINFUNCTION5(DWORD, OS2WNetGetLastErrorA,577 ODINFUNCTION5(DWORD, WNetGetLastErrorA, 539 578 LPDWORD, lpdwErrorCode, 540 579 LPTSTR, lpszDescription, … … 580 619 *****************************************************************************/ 581 620 582 ODINFUNCTION5(DWORD, OS2WNetGetLastErrorW,621 ODINFUNCTION5(DWORD, WNetGetLastErrorW, 583 622 LPDWORD, lpdwErrorCode, 584 623 LPWSTR, lpszDescription, … … 630 669 *****************************************************************************/ 631 670 632 ODINFUNCTION4(DWORD, OS2WNetGetResourceInformationA,671 ODINFUNCTION4(DWORD, WNetGetResourceInformationA, 633 672 LPNETRESOURCEA, lpNetResource, 634 673 LPVOID, lpBuffer, … … 664 703 *****************************************************************************/ 665 704 666 ODINFUNCTION4(DWORD, OS2WNetGetResourceInformationW,705 ODINFUNCTION4(DWORD, WNetGetResourceInformationW, 667 706 LPNETRESOURCEW, lpNetResource, 668 707 LPVOID, lpBuffer, … … 696 735 *****************************************************************************/ 697 736 698 ODINFUNCTION3(DWORD, OS2WNetGetResourceParentA,737 ODINFUNCTION3(DWORD, WNetGetResourceParentA, 699 738 LPNETRESOURCEA, lpNetResource, 700 739 LPVOID, lpBuffer, … … 722 761 *****************************************************************************/ 723 762 724 ODINFUNCTION3(DWORD, OS2WNetGetResourceParentW,763 ODINFUNCTION3(DWORD, WNetGetResourceParentW, 725 764 LPNETRESOURCEW, lpNetResource, 726 765 LPVOID, lpBuffer, … … 748 787 *****************************************************************************/ 749 788 750 ODINFUNCTION4(DWORD, OS2WNetGetUniversalNameA,789 ODINFUNCTION4(DWORD, WNetGetUniversalNameA, 751 790 LPCSTR, lpLocalPath, 752 791 DWORD, dwInfoLevel, … … 775 814 *****************************************************************************/ 776 815 777 ODINFUNCTION4(DWORD, OS2WNetGetUniversalNameW,816 ODINFUNCTION4(DWORD, WNetGetUniversalNameW, 778 817 LPCWSTR, lpLocalPath, 779 818 DWORD, dwInfoLevel, … … 800 839 *****************************************************************************/ 801 840 802 ODINFUNCTION3(DWORD, OS2WNetGetUserA,841 ODINFUNCTION3(DWORD, WNetGetUserA, 803 842 LPTSTR, lpszLocalName, 804 843 LPTSTR, lpszUserName, … … 824 863 *****************************************************************************/ 825 864 826 ODINFUNCTION3(DWORD, OS2WNetGetUserW,865 ODINFUNCTION3(DWORD, WNetGetUserW, 827 866 LPWSTR, lpszLocalName, 828 867 LPWSTR, lpszUserName, … … 850 889 *****************************************************************************/ 851 890 852 ODINFUNCTION5(DWORD, OS2WNetOpenEnumA,891 ODINFUNCTION5(DWORD, WNetOpenEnumA, 853 892 DWORD, fdwScope, 854 893 DWORD, fdwType, … … 878 917 *****************************************************************************/ 879 918 880 ODINFUNCTION5(DWORD, OS2WNetOpenEnumW,919 ODINFUNCTION5(DWORD, WNetOpenEnumW, 881 920 DWORD, fdwScope, 882 921 DWORD, fdwType, … … 904 943 *****************************************************************************/ 905 944 906 ODINFUNCTION3(DWORD, OS2WNetSetLastErrorA,945 ODINFUNCTION3(DWORD, WNetSetLastErrorA, 907 946 DWORD, dwErrorCode, 908 947 LPTSTR, lpszDescription, … … 930 969 *****************************************************************************/ 931 970 932 ODINFUNCTION3(DWORD, OS2WNetSetLastErrorW,971 ODINFUNCTION3(DWORD, WNetSetLastErrorW, 933 972 DWORD, dwErrorCode, 934 973 LPWSTR, lpszDescription, … … 941 980 942 981 982 /***************************************************************************** 983 * Purpose: The WNetUSeConnectionA function is used to establish a connection 984 * to a network object, especially for browsing. The function may 985 * optionally prompt the user for login or authentification. 986 * Parameters: HWND hwndOwner 987 * LPNETRESOURCEA lpNetResource 988 * LPSTR lpPassword 989 * LPSTR lpUserID 990 * DWORD dwFlags 991 * LPSTR lpAccessName 992 * LPDWORD lpBufferSize 993 * LPDWORD lpResult 994 * Variables : 995 * Result : API-Returncode 996 * Remark : not documented 997 * Status : UNTESTED 998 * 999 * Author : Patrick Haller [Thu, 1999/11/04 19:55] 1000 *****************************************************************************/ 1001 1002 ODINFUNCTION8(DWORD, WNetUseConnectionA, 1003 HWND, hwndOwner, 1004 LPNETRESOURCEA,lpNetResource, 1005 LPSTR, lpPassword, 1006 LPSTR, lpUserID, 1007 DWORD, dwFlags, 1008 LPSTR, lpAccessName, 1009 LPDWORD, lpBufferSize, 1010 LPDWORD, lpResult) 1011 { 1012 dprintf(("MPR:WNetUseConnectionA not implemented.\n")); 1013 return (ERROR_NO_NETWORK); 1014 } 1015 1016 1017 /***************************************************************************** 1018 * Purpose: The WNetUSeConnectionW function is used to establish a connection 1019 * to a network object, especially for browsing. The function may 1020 * optionally prompt the user for login or authentification. 1021 * Parameters: HWND hwndOwner 1022 * LPNETRESOURCEW lpNetResource 1023 * LPWSTR lpPassword 1024 * LPWSTR lpUserID 1025 * DWORD dwFlags 1026 * LPWSTR lpAccessName 1027 * LPDWORD lpBufferSize 1028 * LPDWORD lpResult 1029 * Variables : 1030 * Result : API-Returncode 1031 * Remark : not documented 1032 * Status : UNTESTED 1033 * 1034 * Author : Patrick Haller [Thu, 1999/11/04 19:55] 1035 *****************************************************************************/ 1036 1037 ODINFUNCTION8(DWORD, WNetUseConnectionW, 1038 HWND, hwndOwner, 1039 LPNETRESOURCEW,lpNetResource, 1040 LPWSTR, lpPassword, 1041 LPWSTR, lpUserID, 1042 DWORD, dwFlags , 1043 LPWSTR, lpAccessName, 1044 LPDWORD, lpBufferSize, 1045 LPDWORD, lpResult) 1046 { 1047 dprintf(("MPR:WNetUseConnectionW not implemented.\n")); 1048 return (ERROR_NO_NETWORK); 1049 } 1050
Note:
See TracChangeset
for help on using the changeset viewer.