Peter Oberndorfer : winhttp: Add WinHttpGetIEProxyConfigForCurrentUser stub .

Alexandre Julliard julliard at winehq.org
Thu Sep 27 09:27:33 CDT 2007


Module: wine
Branch: master
Commit: 715edc163329758000a37cfc7cc4fb7a7b294efc
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=715edc163329758000a37cfc7cc4fb7a7b294efc

Author: Peter Oberndorfer <kumbayo84 at arcor.de>
Date:   Wed Sep 26 21:22:01 2007 +0200

winhttp: Add WinHttpGetIEProxyConfigForCurrentUser stub.

---

 dlls/winhttp/main.c       |   25 +++++++++++++++++++++++++
 dlls/winhttp/winhttp.spec |    2 +-
 include/winhttp.h         |    9 +++++++++
 3 files changed, 35 insertions(+), 1 deletions(-)

diff --git a/dlls/winhttp/main.c b/dlls/winhttp/main.c
index 163f57e..b8739d2 100644
--- a/dlls/winhttp/main.c
+++ b/dlls/winhttp/main.c
@@ -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;
+}
diff --git a/dlls/winhttp/winhttp.spec b/dlls/winhttp/winhttp.spec
index ac3f7dc..d148cfc 100644
--- a/dlls/winhttp/winhttp.spec
+++ b/dlls/winhttp/winhttp.spec
@@ -10,7 +10,7 @@
 @ stub WinHttpCreateUrl
 @ stub WinHttpDetectAutoProxyConfigUrl
 @ stub WinHttpGetDefaultProxyConfiguration
-@ stub WinHttpGetIEProxyConfigForCurrentUser
+@ stdcall WinHttpGetIEProxyConfigForCurrentUser(ptr)
 @ stub WinHttpGetProxyForUrl
 @ stub WinHttpOpen
 @ stub WinHttpOpenRequest
diff --git a/include/winhttp.h b/include/winhttp.h
index d0e1cf9..f971d76 100644
--- a/include/winhttp.h
+++ b/include/winhttp.h
@@ -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
 }




More information about the wine-cvs mailing list