Implemented wininet.InternetGetConnectedStateEx.

This commit is contained in:
Sylvain Petreolle 2003-06-06 18:17:00 +00:00 committed by Alexandre Julliard
parent 36d0e2ba63
commit cc02ef89c4
2 changed files with 25 additions and 0 deletions

View File

@ -380,6 +380,30 @@ BOOL WINAPI InternetGetConnectedState(LPDWORD lpdwStatus, DWORD dwReserved)
return TRUE;
}
/***********************************************************************
* InternetGetConnectedStateEx (WININET.@)
*
* Return connected state
*
* RETURNS
* TRUE if connected
* if lpdwStatus is not null, return the status (off line,
* modem, lan...) in it.
* FALSE if not connected
*/
BOOL WINAPI InternetGetConnectedStateExW(LPDWORD lpdwStatus, LPWSTR lpszConnectionName,
DWORD dwNameLen, DWORD dwReserved)
{
/* Must be zero */
if(dwReserved)
return FALSE;
if (lpdwStatus) {
FIXME("always returning LAN connection.\n");
*lpdwStatus = INTERNET_CONNECTION_LAN;
}
return TRUE;
}
/***********************************************************************
* InternetConnectA (WININET.@)

View File

@ -106,6 +106,7 @@
@ stub InternetFindNextFileW
@ stub InternetGetCertByURL
@ stdcall InternetGetConnectedState(ptr long)
@ stdcall InternetGetConnectedStateExW(ptr ptr long long)
@ stdcall InternetGetCookieA(str str ptr long)
@ stdcall InternetGetCookieW(wstr wstr ptr long)
@ stdcall InternetGetLastResponseInfoA(ptr str ptr)