mpr: Implement WNetAddConnectionA(), WNetAddConnection2A(), WNetAddConnection3A().

Signed-off-by: Pierre Schweitzer <pierre@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Pierre Schweitzer 2016-01-16 09:51:14 +01:00 committed by Alexandre Julliard
parent 092c60e98c
commit 39ec97ea9d
1 changed files with 9 additions and 14 deletions

View File

@ -1487,11 +1487,12 @@ DWORD WINAPI WNetGetResourceParentW( LPNETRESOURCEW lpNetResource,
DWORD WINAPI WNetAddConnectionA( LPCSTR lpRemoteName, LPCSTR lpPassword,
LPCSTR lpLocalName )
{
FIXME( "(%s, %p, %s): stub\n",
debugstr_a(lpRemoteName), lpPassword, debugstr_a(lpLocalName) );
NETRESOURCEA resourcesA;
SetLastError(WN_NO_NETWORK);
return WN_NO_NETWORK;
memset(&resourcesA, 0, sizeof(resourcesA));
resourcesA.lpRemoteName = (LPSTR)lpRemoteName;
resourcesA.lpLocalName = (LPSTR)lpLocalName;
return WNetUseConnectionA(NULL, &resourcesA, lpPassword, NULL, 0, NULL, 0, NULL);
}
/*********************************************************************
@ -1515,11 +1516,8 @@ DWORD WINAPI WNetAddConnection2A( LPNETRESOURCEA lpNetResource,
LPCSTR lpPassword, LPCSTR lpUserID,
DWORD dwFlags )
{
FIXME( "(%p, %p, %s, 0x%08X): stub\n",
lpNetResource, lpPassword, debugstr_a(lpUserID), dwFlags );
SetLastError(WN_NO_NETWORK);
return WN_NO_NETWORK;
return WNetUseConnectionA(NULL, lpNetResource, lpPassword, lpUserID, dwFlags,
NULL, 0, NULL);
}
/*********************************************************************
@ -1540,11 +1538,8 @@ DWORD WINAPI WNetAddConnection3A( HWND hwndOwner, LPNETRESOURCEA lpNetResource,
LPCSTR lpPassword, LPCSTR lpUserID,
DWORD dwFlags )
{
FIXME( "(%p, %p, %p, %s, 0x%08X), stub\n",
hwndOwner, lpNetResource, lpPassword, debugstr_a(lpUserID), dwFlags );
SetLastError(WN_NO_NETWORK);
return WN_NO_NETWORK;
return WNetUseConnectionA(hwndOwner, lpNetResource, lpPassword, lpUserID,
dwFlags, NULL, 0, NULL);
}
/*********************************************************************