From 21572967db5f8b8ba05f791dd0708c9216f46ef6 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Tue, 31 Jul 2007 00:54:42 +0200 Subject: [PATCH] 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(+) create mode 100644 dlls/winhttp/Makefile.in create mode 100644 dlls/winhttp/main.c create mode 100644 dlls/winhttp/winhttp.spec diff --git a/Makefile.in b/Makefile.in index 48cba1a788c..7ae30499911 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 6a55924cbcb..14b4aa66aab 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 8687171ee24..9a1ec62234d 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 39e3c65d801..72b2e365eb6 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 00000000000..7e76b1e62aa --- /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 + +@MAKE_DLL_RULES@ + +@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 00000000000..e90352d7843 --- /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 + +#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 00000000000..73eae073d15 --- /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 -- 2.11.4.GIT