Commit 11f341cf authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

Implemented InternetGetConnectedStateExA.

parent 97cc28ff
......@@ -644,8 +644,9 @@ BOOL WINAPI InternetGetConnectedState(LPDWORD lpdwStatus, DWORD dwReserved)
return TRUE;
}
/***********************************************************************
* InternetGetConnectedStateEx (WININET.@)
* InternetGetConnectedStateExW (WININET.@)
*
* Return connected state
*
......@@ -671,6 +672,35 @@ BOOL WINAPI InternetGetConnectedStateExW(LPDWORD lpdwStatus, LPWSTR lpszConnecti
return TRUE;
}
/***********************************************************************
* InternetGetConnectedStateExA (WININET.@)
*/
BOOL WINAPI InternetGetConnectedStateExA(LPDWORD lpdwStatus, LPSTR lpszConnectionName,
DWORD dwNameLen, DWORD dwReserved)
{
LPWSTR lpwszConnectionName = NULL;
BOOL rc;
TRACE("(%p, %s, %ld, 0x%08lx)\n", lpdwStatus, debugstr_a(lpszConnectionName), dwNameLen, dwReserved);
if (lpszConnectionName && dwNameLen > 0)
lpwszConnectionName= HeapAlloc(GetProcessHeap(), 0, dwNameLen * sizeof(WCHAR));
rc = InternetGetConnectedStateExW(lpdwStatus,lpwszConnectionName, dwNameLen,
dwReserved);
if (rc && lpwszConnectionName)
{
WideCharToMultiByte(CP_ACP,0,lpwszConnectionName,-1,lpszConnectionName,
dwNameLen, NULL, NULL);
HeapFree(GetProcessHeap(),0,lpwszConnectionName);
}
return rc;
}
/***********************************************************************
* InternetConnectW (WININET.@)
*
......
......@@ -126,6 +126,7 @@
@ stdcall InternetFindNextFileW(ptr ptr)
@ stub InternetGetCertByURL
@ stdcall InternetGetConnectedState(ptr long)
@ stdcall InternetGetConnectedStateExA(ptr ptr long long)
@ stdcall InternetGetConnectedStateExW(ptr ptr long long)
@ stdcall InternetGetCookieA(str str ptr long)
@ stdcall InternetGetCookieW(wstr wstr ptr long)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment