From 73cf91e00a5d0291c124e838ac0ffb22042e6d8f Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Mon, 17 May 1999 14:56:23 +0000 Subject: [PATCH] Some stubs added. --- misc/network.c | 72 ++++++++++++++++++++++++++++++++++++++++++++++++ relay32/mpr.spec | 10 +++---- 2 files changed, 77 insertions(+), 5 deletions(-) diff --git a/misc/network.c b/misc/network.c index 0e3fcd6ca81..5690623ff78 100644 --- a/misc/network.c +++ b/misc/network.c @@ -828,6 +828,68 @@ DWORD WINAPI WNetGetUserW( return WN_NO_NETWORK; } +/***************************************************************** + * WNetGetProviderNameA [MPR.79] + */ +DWORD WINAPI WNetGetProviderNameA( + DWORD dwNetType, + LPSTR lpProvider, + LPDWORD lpBufferSize) +{ + FIXME_(wnet)(": stub\n"); + SetLastError(WN_NO_NETWORK); + return WN_NO_NETWORK; +} + +/***************************************************************** + * WNetGetProviderNameW [MPR.80] + */ +DWORD WINAPI WNetGetProviderNameW( + DWORD dwNetType, + LPWSTR lpProvider, + LPDWORD lpBufferSize) +{ + FIXME_(wnet)(": stub\n"); + SetLastError(WN_NO_NETWORK); + return WN_NO_NETWORK; +} + +/***************************************************************** + * WNetUseConnectionA [MPR.100] + */ +DWORD WINAPI WNetUseConnectionA( + HWND hwndOwner, + LPNETRESOURCEA lpNetResource, + LPSTR lpPassword, + LPSTR lpUserID, + DWORD dwFlags, + LPSTR lpAccessName, + LPDWORD lpBufferSize, + LPDWORD lpResult) +{ + FIXME_(wnet)(": stub\n"); + SetLastError(WN_NO_NETWORK); + return WN_NO_NETWORK; +} + +/***************************************************************** + * WNetUseConnectionW [MPR.101] + */ +DWORD WINAPI WNetUseConnectionW( + HWND hwndOwner, + LPNETRESOURCEW lpNetResource, + LPWSTR lpPassword, + LPWSTR lpUserID, + DWORD dwFlags, + LPWSTR lpAccessName, + LPDWORD lpBufferSize, + LPDWORD lpResult) +{ + FIXME_(wnet)(": stub\n"); + SetLastError(WN_NO_NETWORK); + return WN_NO_NETWORK; +} + /* * FIXME: The following routines should use a private heap ... @@ -863,3 +925,13 @@ BOOL WINAPI MPR_Free( LPVOID lpMem ) return FALSE; } +/***************************************************************** + * [MPR.25] + */ +BOOL WINAPI _MPR_25( LPBYTE lpMem, INT len ) +{ + FIXME_(mpr)( "(%p, %d): stub\n", lpMem, len ); + + return FALSE; +} + diff --git a/relay32/mpr.spec b/relay32/mpr.spec index 90036c364b8..eb675907bc0 100644 --- a/relay32/mpr.spec +++ b/relay32/mpr.spec @@ -25,7 +25,7 @@ type win32 0022 stdcall MPR_Alloc(long) MPR_Alloc 0023 stdcall MPR_ReAlloc(ptr long) MPR_ReAlloc 0024 stdcall MPR_Free(ptr) MPR_Free -0025 stub MPR_25 +0025 stdcall MPR_25(ptr long) _MPR_25 0026 stdcall MultinetGetConnectionPerformanceA(ptr ptr) MultinetGetConnectionPerformanceA 0027 stub MultinetGetConnectionPerformanceW 0028 stdcall MultinetGetErrorTextA(long ptr long)MultinetGetErrorTextA @@ -79,8 +79,8 @@ type win32 0076 stub WNetGetLastErrorW 0077 stub WNetGetNetworkInformationA 0078 stub WNetGetNetworkInformationW -0079 stub WNetGetProviderNameA -0080 stub WNetGetProviderNameW +0079 stdcall WNetGetProviderNameA(long ptr ptr) WNetGetProviderNameA +0080 stdcall WNetGetProviderNameW(long ptr ptr) WNetGetProviderNameW 0081 stdcall WNetGetResourceInformationA(ptr ptr ptr ptr) WNetGetResourceInformationA 0082 stub WNetGetResourceInformationW 0083 stub WNetGetResourceParentA @@ -100,8 +100,8 @@ type win32 0097 stub WNetRestoreConnectionW 0098 stub WNetSetConnectionA 0099 stub WNetSetConnectionW -0100 stub WNetUseConnectionA -0101 stub WNetUseConnectionW +0100 stdcall WNetUseConnectionA(long ptr str str long str ptr ptr) WNetUseConnectionA +0101 stdcall WNetUseConnectionW(long ptr wstr wstr long wstr ptr ptr) WNetUseConnectionW 0102 stub WNetVerifyPasswordA 0103 stub WNetVerifyPasswordW