Implemented InternetGetConnectedStateExA.
This commit is contained in:
parent
97cc28ff0f
commit
11f341cff1
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue