mirror of
https://github.com/reactos/reactos.git
synced 2024-08-21 10:53:15 +00:00
[MPR]
Import Wine commits: - 39ec97ea9dcba270bbea31a7eaa7b842bf1beb1f, Implement WNetAddConnectionA(), WNetAddConnection2A(), WNetAddConnection3A(). - 092c60e98cec9956127145f7c8a5db88082ce7d2, Implement WNetAddConnectionW(), WNetAddConnection2W(), WNetAddConnection3W(). CORE-10032 ROSAPPS-303 svn path=/trunk/; revision=70619
This commit is contained in:
parent
68e9874f36
commit
e7f66b6dad
|
@ -1477,11 +1477,12 @@ DWORD WINAPI WNetGetResourceParentW( LPNETRESOURCEW lpNetResource,
|
||||||
DWORD WINAPI WNetAddConnectionA( LPCSTR lpRemoteName, LPCSTR lpPassword,
|
DWORD WINAPI WNetAddConnectionA( LPCSTR lpRemoteName, LPCSTR lpPassword,
|
||||||
LPCSTR lpLocalName )
|
LPCSTR lpLocalName )
|
||||||
{
|
{
|
||||||
FIXME( "(%s, %p, %s): stub\n",
|
NETRESOURCEA resourcesA;
|
||||||
debugstr_a(lpRemoteName), lpPassword, debugstr_a(lpLocalName) );
|
|
||||||
|
|
||||||
SetLastError(WN_NO_NETWORK);
|
memset(&resourcesA, 0, sizeof(resourcesA));
|
||||||
return WN_NO_NETWORK;
|
resourcesA.lpRemoteName = (LPSTR)lpRemoteName;
|
||||||
|
resourcesA.lpLocalName = (LPSTR)lpLocalName;
|
||||||
|
return WNetUseConnectionA(NULL, &resourcesA, lpPassword, NULL, 0, NULL, 0, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*********************************************************************
|
/*********************************************************************
|
||||||
|
@ -1490,11 +1491,12 @@ DWORD WINAPI WNetAddConnectionA( LPCSTR lpRemoteName, LPCSTR lpPassword,
|
||||||
DWORD WINAPI WNetAddConnectionW( LPCWSTR lpRemoteName, LPCWSTR lpPassword,
|
DWORD WINAPI WNetAddConnectionW( LPCWSTR lpRemoteName, LPCWSTR lpPassword,
|
||||||
LPCWSTR lpLocalName )
|
LPCWSTR lpLocalName )
|
||||||
{
|
{
|
||||||
FIXME( "(%s, %p, %s): stub\n",
|
NETRESOURCEW resourcesW;
|
||||||
debugstr_w(lpRemoteName), lpPassword, debugstr_w(lpLocalName) );
|
|
||||||
|
|
||||||
SetLastError(WN_NO_NETWORK);
|
memset(&resourcesW, 0, sizeof(resourcesW));
|
||||||
return WN_NO_NETWORK;
|
resourcesW.lpRemoteName = (LPWSTR)lpRemoteName;
|
||||||
|
resourcesW.lpLocalName = (LPWSTR)lpLocalName;
|
||||||
|
return WNetUseConnectionW(NULL, &resourcesW, lpPassword, NULL, 0, NULL, 0, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*********************************************************************
|
/*********************************************************************
|
||||||
|
@ -1504,11 +1506,8 @@ DWORD WINAPI WNetAddConnection2A( LPNETRESOURCEA lpNetResource,
|
||||||
LPCSTR lpPassword, LPCSTR lpUserID,
|
LPCSTR lpPassword, LPCSTR lpUserID,
|
||||||
DWORD dwFlags )
|
DWORD dwFlags )
|
||||||
{
|
{
|
||||||
FIXME( "(%p, %p, %s, 0x%08X): stub\n",
|
return WNetUseConnectionA(NULL, lpNetResource, lpPassword, lpUserID, dwFlags,
|
||||||
lpNetResource, lpPassword, debugstr_a(lpUserID), dwFlags );
|
NULL, 0, NULL);
|
||||||
|
|
||||||
SetLastError(WN_NO_NETWORK);
|
|
||||||
return WN_NO_NETWORK;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*********************************************************************
|
/*********************************************************************
|
||||||
|
@ -1518,11 +1517,8 @@ DWORD WINAPI WNetAddConnection2W( LPNETRESOURCEW lpNetResource,
|
||||||
LPCWSTR lpPassword, LPCWSTR lpUserID,
|
LPCWSTR lpPassword, LPCWSTR lpUserID,
|
||||||
DWORD dwFlags )
|
DWORD dwFlags )
|
||||||
{
|
{
|
||||||
FIXME( "(%p, %p, %s, 0x%08X): stub\n",
|
return WNetUseConnectionW(NULL, lpNetResource, lpPassword, lpUserID, dwFlags,
|
||||||
lpNetResource, lpPassword, debugstr_w(lpUserID), dwFlags );
|
NULL, 0, NULL);
|
||||||
|
|
||||||
SetLastError(WN_NO_NETWORK);
|
|
||||||
return WN_NO_NETWORK;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*********************************************************************
|
/*********************************************************************
|
||||||
|
@ -1532,11 +1528,8 @@ DWORD WINAPI WNetAddConnection3A( HWND hwndOwner, LPNETRESOURCEA lpNetResource,
|
||||||
LPCSTR lpPassword, LPCSTR lpUserID,
|
LPCSTR lpPassword, LPCSTR lpUserID,
|
||||||
DWORD dwFlags )
|
DWORD dwFlags )
|
||||||
{
|
{
|
||||||
FIXME( "(%p, %p, %p, %s, 0x%08X), stub\n",
|
return WNetUseConnectionA(hwndOwner, lpNetResource, lpPassword, lpUserID,
|
||||||
hwndOwner, lpNetResource, lpPassword, debugstr_a(lpUserID), dwFlags );
|
dwFlags, NULL, 0, NULL);
|
||||||
|
|
||||||
SetLastError(WN_NO_NETWORK);
|
|
||||||
return WN_NO_NETWORK;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*********************************************************************
|
/*********************************************************************
|
||||||
|
@ -1546,11 +1539,8 @@ DWORD WINAPI WNetAddConnection3W( HWND hwndOwner, LPNETRESOURCEW lpNetResource,
|
||||||
LPCWSTR lpPassword, LPCWSTR lpUserID,
|
LPCWSTR lpPassword, LPCWSTR lpUserID,
|
||||||
DWORD dwFlags )
|
DWORD dwFlags )
|
||||||
{
|
{
|
||||||
FIXME( "(%p, %p, %p, %s, 0x%08X), stub\n",
|
return WNetUseConnectionW(hwndOwner, lpNetResource, lpPassword, lpUserID,
|
||||||
hwndOwner, lpNetResource, lpPassword, debugstr_w(lpUserID), dwFlags );
|
dwFlags, NULL, 0, NULL);
|
||||||
|
|
||||||
SetLastError(WN_NO_NETWORK);
|
|
||||||
return WN_NO_NETWORK;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************
|
/*****************************************************************
|
||||||
|
|
Loading…
Reference in a new issue