winhttp: Add WinHttpGetIEProxyConfigForCurrentUser stub.

This commit is contained in:
Peter Oberndorfer 2007-09-26 21:22:01 +02:00 committed by Alexandre Julliard
parent 073dd7dde2
commit 715edc1633
3 changed files with 35 additions and 1 deletions

View File

@ -82,9 +82,34 @@ HRESULT WINAPI DllUnregisterServer(void)
return S_OK;
}
/***********************************************************************
* WinHttpCheckPlatform (winhttp.@)
*/
BOOL WINAPI WinHttpCheckPlatform(void)
{
FIXME("stub\n");
SetLastError(ERROR_NOT_SUPPORTED);
return FALSE;
}
/***********************************************************************
* WinHttpGetIEProxyConfigForCurrentUser (winhttp.@)
*/
BOOL WINAPI WinHttpGetIEProxyConfigForCurrentUser(WINHTTP_CURRENT_USER_IE_PROXY_CONFIG* config)
{
if(!config)
{
SetLastError(ERROR_INVALID_PARAMETER);
return FALSE;
}
/* TODO: read from HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings */
FIXME("returning no proxy used\n");
config->fAutoDetect = FALSE;
config->lpszAutoConfigUrl = NULL;
config->lpszProxy = NULL;
config->lpszProxyBypass = NULL;
SetLastError(ERROR_SUCCESS);
return TRUE;
}

View File

@ -10,7 +10,7 @@
@ stub WinHttpCreateUrl
@ stub WinHttpDetectAutoProxyConfigUrl
@ stub WinHttpGetDefaultProxyConfiguration
@ stub WinHttpGetIEProxyConfigForCurrentUser
@ stdcall WinHttpGetIEProxyConfigForCurrentUser(ptr)
@ stub WinHttpGetProxyForUrl
@ stub WinHttpOpen
@ stub WinHttpOpenRequest

View File

@ -84,12 +84,21 @@ typedef struct
typedef WINHTTP_PROXY_INFO WINHTTP_PROXY_INFOW;
typedef LPWINHTTP_PROXY_INFO LPWINHTTP_PROXY_INFOW;
typedef struct
{
BOOL fAutoDetect;
LPWSTR lpszAutoConfigUrl;
LPWSTR lpszProxy;
LPWSTR lpszProxyBypass;
} WINHTTP_CURRENT_USER_IE_PROXY_CONFIG;
#ifdef __cplusplus
extern "C" {
#endif
BOOL WINAPI WinHttpCheckPlatform(void);
BOOL WINAPI WinHttpGetIEProxyConfigForCurrentUser(WINHTTP_CURRENT_USER_IE_PROXY_CONFIG* config);
#ifdef __cplusplus
}