Commit 715edc16 authored by Peter Oberndorfer's avatar Peter Oberndorfer Committed by Alexandre Julliard

winhttp: Add WinHttpGetIEProxyConfigForCurrentUser stub.

parent 073dd7dd
...@@ -82,9 +82,34 @@ HRESULT WINAPI DllUnregisterServer(void) ...@@ -82,9 +82,34 @@ HRESULT WINAPI DllUnregisterServer(void)
return S_OK; return S_OK;
} }
/***********************************************************************
* WinHttpCheckPlatform (winhttp.@)
*/
BOOL WINAPI WinHttpCheckPlatform(void) BOOL WINAPI WinHttpCheckPlatform(void)
{ {
FIXME("stub\n"); FIXME("stub\n");
SetLastError(ERROR_NOT_SUPPORTED); SetLastError(ERROR_NOT_SUPPORTED);
return FALSE; 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;
}
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
@ stub WinHttpCreateUrl @ stub WinHttpCreateUrl
@ stub WinHttpDetectAutoProxyConfigUrl @ stub WinHttpDetectAutoProxyConfigUrl
@ stub WinHttpGetDefaultProxyConfiguration @ stub WinHttpGetDefaultProxyConfiguration
@ stub WinHttpGetIEProxyConfigForCurrentUser @ stdcall WinHttpGetIEProxyConfigForCurrentUser(ptr)
@ stub WinHttpGetProxyForUrl @ stub WinHttpGetProxyForUrl
@ stub WinHttpOpen @ stub WinHttpOpen
@ stub WinHttpOpenRequest @ stub WinHttpOpenRequest
......
...@@ -84,12 +84,21 @@ typedef struct ...@@ -84,12 +84,21 @@ typedef struct
typedef WINHTTP_PROXY_INFO WINHTTP_PROXY_INFOW; typedef WINHTTP_PROXY_INFO WINHTTP_PROXY_INFOW;
typedef LPWINHTTP_PROXY_INFO LPWINHTTP_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 #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
BOOL WINAPI WinHttpCheckPlatform(void); BOOL WINAPI WinHttpCheckPlatform(void);
BOOL WINAPI WinHttpGetIEProxyConfigForCurrentUser(WINHTTP_CURRENT_USER_IE_PROXY_CONFIG* config);
#ifdef __cplusplus #ifdef __cplusplus
} }
......
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