Jacek Caban : winhttp: Added winhttp.dll.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Jul 31 07:55:12 CDT 2007


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

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Tue Jul 31 00:54:42 2007 +0200

winhttp: Added winhttp.dll.

---

 Makefile.in               |    2 +
 configure                 |    3 ++
 configure.ac              |    1 +
 dlls/Makefile.in          |    1 +
 dlls/winhttp/Makefile.in  |   12 ++++++
 dlls/winhttp/main.c       |   84 +++++++++++++++++++++++++++++++++++++++++++++
 dlls/winhttp/winhttp.spec |   31 ++++++++++++++++
 7 files changed, 134 insertions(+), 0 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index 48cba1a..7ae3049 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -425,6 +425,7 @@ ALL_MAKEFILES = \
 	dlls/winequartz.drv/Makefile \
 	dlls/winex11.drv/Makefile \
 	dlls/wing32/Makefile \
+	dlls/winhttp/Makefile \
 	dlls/wininet/Makefile \
 	dlls/wininet/tests/Makefile \
 	dlls/winmm/Makefile \
@@ -786,6 +787,7 @@ dlls/wineps.drv/Makefile: dlls/wineps.drv/Makefile.in dlls/Makedll.rules
 dlls/winequartz.drv/Makefile: dlls/winequartz.drv/Makefile.in dlls/Makedll.rules
 dlls/winex11.drv/Makefile: dlls/winex11.drv/Makefile.in dlls/Makedll.rules
 dlls/wing32/Makefile: dlls/wing32/Makefile.in dlls/Makedll.rules
+dlls/winhttp/Makefile: dlls/winhttp/Makefile.in dlls/Makedll.rules
 dlls/wininet/Makefile: dlls/wininet/Makefile.in dlls/Makedll.rules
 dlls/wininet/tests/Makefile: dlls/wininet/tests/Makefile.in dlls/Maketest.rules
 dlls/winmm/Makefile: dlls/winmm/Makefile.in dlls/Makedll.rules
diff --git a/configure b/configure
index 6a55924..14b4aa6 100755
--- a/configure
+++ b/configure
@@ -20799,6 +20799,8 @@ ac_config_files="$ac_config_files dlls/winex11.drv/Makefile"
 
 ac_config_files="$ac_config_files dlls/wing32/Makefile"
 
+ac_config_files="$ac_config_files dlls/winhttp/Makefile"
+
 ac_config_files="$ac_config_files dlls/wininet/Makefile"
 
 ac_config_files="$ac_config_files dlls/wininet/tests/Makefile"
@@ -21790,6 +21792,7 @@ do
     "dlls/winequartz.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winequartz.drv/Makefile" ;;
     "dlls/winex11.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winex11.drv/Makefile" ;;
     "dlls/wing32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wing32/Makefile" ;;
+    "dlls/winhttp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winhttp/Makefile" ;;
     "dlls/wininet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
     "dlls/wininet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
     "dlls/winmm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
diff --git a/configure.ac b/configure.ac
index 8687171..9a1ec62 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1825,6 +1825,7 @@ AC_CONFIG_FILES([dlls/wineps.drv/Makefile])
 AC_CONFIG_FILES([dlls/winequartz.drv/Makefile])
 AC_CONFIG_FILES([dlls/winex11.drv/Makefile])
 AC_CONFIG_FILES([dlls/wing32/Makefile])
+AC_CONFIG_FILES([dlls/winhttp/Makefile])
 AC_CONFIG_FILES([dlls/wininet/Makefile])
 AC_CONFIG_FILES([dlls/wininet/tests/Makefile])
 AC_CONFIG_FILES([dlls/winmm/Makefile])
diff --git a/dlls/Makefile.in b/dlls/Makefile.in
index 39e3c65..72b2e36 100644
--- a/dlls/Makefile.in
+++ b/dlls/Makefile.in
@@ -212,6 +212,7 @@ BASEDIRS = \
 	wineoss.drv \
 	wineps.drv \
 	wing32 \
+	winhttp \
 	wininet \
 	winmm \
 	winnls32 \
diff --git a/dlls/winhttp/Makefile.in b/dlls/winhttp/Makefile.in
new file mode 100644
index 0000000..7e76b1e
--- /dev/null
+++ b/dlls/winhttp/Makefile.in
@@ -0,0 +1,12 @@
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ../..
+SRCDIR    = @srcdir@
+VPATH     = @srcdir@
+MODULE    = winhttp
+IMPORTS   = kernel32
+
+C_SRCS	  = main.c
+
+ at MAKE_DLL_RULES@
+
+ at DEPENDENCIES@  # everything below this line is overwritten by make depend
diff --git a/dlls/winhttp/main.c b/dlls/winhttp/main.c
new file mode 100644
index 0000000..e90352d
--- /dev/null
+++ b/dlls/winhttp/main.c
@@ -0,0 +1,84 @@
+/*
+ * Copyright 2007 Jacek Caban for CodeWeavers
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#include "config.h"
+
+#include <stdarg.h>
+
+#define COBJMACROS
+
+#include "windef.h"
+#include "winbase.h"
+
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(winhttp);
+
+/******************************************************************
+ *              DllMain (winhttp.@)
+ */
+BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
+{
+    switch(fdwReason)
+    {
+    case DLL_WINE_PREATTACH:
+        return FALSE;  /* prefer native version */
+    case DLL_PROCESS_ATTACH:
+        DisableThreadLibraryCalls(hInstDLL);
+        break;
+    case DLL_PROCESS_DETACH:
+        break;
+    }
+    return TRUE;
+}
+
+/******************************************************************
+ *		DllGetClassObject (winhttp.@)
+ */
+HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
+{
+    FIXME("(%s %s %p)\n", debugstr_guid(rclsid), debugstr_guid(riid), ppv);
+    return CLASS_E_CLASSNOTAVAILABLE;
+}
+
+/******************************************************************
+ *              DllCanUnloadNow (winhttp.@)
+ */
+HRESULT WINAPI DllCanUnloadNow(void)
+{
+    FIXME("()\n");
+    return S_FALSE;
+}
+
+/***********************************************************************
+ *          DllRegisterServer (winhttp.@)
+ */
+HRESULT WINAPI DllRegisterServer(void)
+{
+    FIXME("()\n");
+    return S_OK;
+}
+
+/***********************************************************************
+ *          DllUnregisterServer (winhttp.@)
+ */
+HRESULT WINAPI DllUnregisterServer(void)
+{
+    FIXME("()\n");
+    return S_OK;
+}
diff --git a/dlls/winhttp/winhttp.spec b/dlls/winhttp/winhttp.spec
new file mode 100644
index 0000000..73eae07
--- /dev/null
+++ b/dlls/winhttp/winhttp.spec
@@ -0,0 +1,31 @@
+@ stdcall -private DllCanUnloadNow()
+@ stdcall -private DllGetClassObject(ptr ptr ptr)
+@ stdcall -private DllRegisterServer()
+@ stdcall -private DllUnregisterServer()
+@ stub WinHttpAddRequestHeaders
+@ stub WinHttpCheckPlatform
+@ stub WinHttpCloseHandle
+@ stub WinHttpConnect
+@ stub WinHttpCrackUrl
+@ stub WinHttpCreateUrl
+@ stub WinHttpDetectAutoProxyConfigUrl
+@ stub WinHttpGetDefaultProxyConfiguration
+@ stub WinHttpGetIEProxyConfigForCurrentUser
+@ stub WinHttpGetProxyForUrl
+@ stub WinHttpOpen
+@ stub WinHttpOpenRequest
+@ stub WinHttpQueryAuthSchemes
+@ stub WinHttpQueryDataAvailable
+@ stub WinHttpQueryHeaders
+@ stub WinHttpQueryOption
+@ stub WinHttpReadData
+@ stub WinHttpReceiveResponse
+@ stub WinHttpSendRequest
+@ stub WinHttpSetCredentials
+@ stub WinHttpSetDefaultProxyConfiguration
+@ stub WinHttpSetOption
+@ stub WinHttpSetStatusCallback
+@ stub WinHttpSetTimeouts
+@ stub WinHttpTimeFromSystemTime
+@ stub WinHttpTimeToSystemTime
+@ stub WinHttpWriteData




More information about the wine-cvs mailing list