Rob Shearman : winhttp: Add a stub for WinHttpOpen.

Alexandre Julliard julliard at winehq.org
Mon Jan 14 09:33:25 CST 2008


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

Author: Rob Shearman <rob at codeweavers.com>
Date:   Mon Jan 14 11:53:57 2008 +0000

winhttp: Add a stub for WinHttpOpen.

---

 dlls/winhttp/main.c       |   15 +++++++++++++++
 dlls/winhttp/winhttp.spec |    2 +-
 2 files changed, 16 insertions(+), 1 deletions(-)

diff --git a/dlls/winhttp/main.c b/dlls/winhttp/main.c
index 8f26859..c3616b6 100644
--- a/dlls/winhttp/main.c
+++ b/dlls/winhttp/main.c
@@ -114,3 +114,18 @@ BOOL WINAPI WinHttpGetIEProxyConfigForCurrentUser(WINHTTP_CURRENT_USER_IE_PROXY_
     SetLastError(ERROR_SUCCESS);
     return TRUE;
 }
+
+/***********************************************************************
+ *          WinHttpOpen (winhttp.@)
+ */
+HINTERNET WINAPI WinHttpOpen(LPCWSTR pwszUserAgent, DWORD dwAccessType,
+                             LPCWSTR pwszProxyName, LPCWSTR pwszProxyByPass,
+                             DWORD dwFlags)
+{
+    FIXME("(%s, %d, %s, %s, 0x%x): stub\n", debugstr_w(pwszUserAgent),
+        dwAccessType, debugstr_w(pwszProxyName), debugstr_w(pwszProxyByPass),
+        dwFlags);
+
+    SetLastError(ERROR_NOT_SUPPORTED);
+    return NULL;
+}
diff --git a/dlls/winhttp/winhttp.spec b/dlls/winhttp/winhttp.spec
index d148cfc..e1562b6 100644
--- a/dlls/winhttp/winhttp.spec
+++ b/dlls/winhttp/winhttp.spec
@@ -12,7 +12,7 @@
 @ stub WinHttpGetDefaultProxyConfiguration
 @ stdcall WinHttpGetIEProxyConfigForCurrentUser(ptr)
 @ stub WinHttpGetProxyForUrl
-@ stub WinHttpOpen
+@ stdcall WinHttpOpen(wstr long wstr wstr long)
 @ stub WinHttpOpenRequest
 @ stub WinHttpQueryAuthSchemes
 @ stub WinHttpQueryDataAvailable




More information about the wine-cvs mailing list