Module: wine Branch: master Commit: f55151a33afa161a45c38ab587bb736e7a64ab69 URL: http://source.winehq.org/git/wine.git/?a=commit;h=f55151a33afa161a45c38ab587...
Author: Aric Stewart aric@codeweavers.com Date: Fri Jan 23 11:43:16 2009 -0600
rasdlg: Initial stub dll.
---
configure | 9 +++++++++ configure.ac | 1 + dlls/Makefile.in | 5 +++++ dlls/rasdlg/Makefile.in | 14 ++++++++++++++ dlls/rasdlg/rasdlg.spec | 36 ++++++++++++++++++++++++++++++++++++ dlls/rasdlg/rasdlg_main.c | 44 ++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 109 insertions(+), 0 deletions(-)
diff --git a/configure b/configure index b90bb7f..b70f783 100755 --- a/configure +++ b/configure @@ -26128,6 +26128,14 @@ dlls/rasapi32/tests/Makefile: dlls/rasapi32/tests/Makefile.in dlls/Maketest.rule ac_config_files="$ac_config_files dlls/rasapi32/tests/Makefile"
ALL_MAKEFILES="$ALL_MAKEFILES \ + dlls/rasdlg/Makefile" +test "x$enable_rasdlg" != xno && ALL_DLL_DIRS="$ALL_DLL_DIRS \ + rasdlg" +ALL_MAKEFILE_DEPENDS="$ALL_MAKEFILE_DEPENDS +dlls/rasdlg/Makefile: dlls/rasdlg/Makefile.in dlls/Makedll.rules" +ac_config_files="$ac_config_files dlls/rasdlg/Makefile" + +ALL_MAKEFILES="$ALL_MAKEFILES \ dlls/resutils/Makefile" test "x$enable_resutils" != xno && ALL_DLL_DIRS="$ALL_DLL_DIRS \ resutils" @@ -28489,6 +28497,7 @@ do "dlls/query/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/query/Makefile" ;; "dlls/rasapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;; "dlls/rasapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/tests/Makefile" ;; + "dlls/rasdlg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rasdlg/Makefile" ;; "dlls/resutils/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/resutils/Makefile" ;; "dlls/riched20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/Makefile" ;; "dlls/riched20/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/tests/Makefile" ;; diff --git a/configure.ac b/configure.ac index c2f4588..57dd55f 100644 --- a/configure.ac +++ b/configure.ac @@ -2053,6 +2053,7 @@ WINE_CONFIG_MAKEFILE([dlls/quartz/tests/Makefile],[dlls/Maketest.rules],[dlls],[ WINE_CONFIG_MAKEFILE([dlls/query/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) WINE_CONFIG_MAKEFILE([dlls/rasapi32/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) WINE_CONFIG_MAKEFILE([dlls/rasapi32/tests/Makefile],[dlls/Maketest.rules],[dlls],[ALL_TEST_DIRS],[enable_tests]) +WINE_CONFIG_MAKEFILE([dlls/rasdlg/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) WINE_CONFIG_MAKEFILE([dlls/resutils/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) WINE_CONFIG_MAKEFILE([dlls/riched20/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) WINE_CONFIG_MAKEFILE([dlls/riched20/tests/Makefile],[dlls/Maketest.rules],[dlls],[ALL_TEST_DIRS],[enable_tests]) diff --git a/dlls/Makefile.in b/dlls/Makefile.in index afdf29b..90075c6 100644 --- a/dlls/Makefile.in +++ b/dlls/Makefile.in @@ -271,6 +271,7 @@ IMPORT_LIBS = \ psapi/libpsapi.$(IMPLIBEXT) \ quartz/libquartz.$(IMPLIBEXT) \ rasapi32/librasapi32.$(IMPLIBEXT) \ + rasdlg/librasdlg.$(IMPLIBEXT) \ resutils/libresutils.$(IMPLIBEXT) \ riched20/libriched20.$(IMPLIBEXT) \ rpcrt4/librpcrt4.$(IMPLIBEXT) \ @@ -413,6 +414,7 @@ CROSS_IMPLIBS = \ psapi/libpsapi.a \ quartz/libquartz.a \ rasapi32/librasapi32.a \ + rasdlg/librasdlg.a \ resutils/libresutils.a \ riched20/libriched20.a \ rpcrt4/librpcrt4.a \ @@ -749,6 +751,9 @@ quartz/libquartz.def quartz/libquartz.a: quartz/quartz.spec $(WINEBUILD) rasapi32/librasapi32.def rasapi32/librasapi32.a: rasapi32/rasapi32.spec $(WINEBUILD) @cd rasapi32 && $(MAKE) `basename $@`
+rasdlg/librasdlg.def rasdlg/librasdlg.a: rasdlg/rasdlg.spec $(WINEBUILD) + @cd rasdlg && $(MAKE) `basename $@` + resutils/libresutils.def resutils/libresutils.a: resutils/resutils.spec $(WINEBUILD) @cd resutils && $(MAKE) `basename $@`
diff --git a/dlls/rasdlg/Makefile.in b/dlls/rasdlg/Makefile.in new file mode 100644 index 0000000..02d3a7f --- /dev/null +++ b/dlls/rasdlg/Makefile.in @@ -0,0 +1,14 @@ +TOPSRCDIR = @top_srcdir@ +TOPOBJDIR = ../.. +SRCDIR = @srcdir@ +VPATH = @srcdir@ +MODULE = rasdlg.dll +IMPORTLIB = rasdlg +IMPORTS = kernel32 + +C_SRCS = \ + rasdlg_main.c + +@MAKE_DLL_RULES@ + +@DEPENDENCIES@ # everything below this line is overwritten by make depend diff --git a/dlls/rasdlg/rasdlg.spec b/dlls/rasdlg/rasdlg.spec new file mode 100644 index 0000000..f6a36d6 --- /dev/null +++ b/dlls/rasdlg/rasdlg.spec @@ -0,0 +1,36 @@ +@ stub DwTerminalDlg +@ stub GetRasDialOutProtocols +@ stub RasAutodialDisableDlgA +@ stub RasAutodialDisableDlgW +@ stub RasAutodialQueryDlgA +@ stub RasAutodialQueryDlgW +@ stub RasDialDlgA +@ stub RasDialDlgW +@ stub RasEntryDlgA +@ stub RasEntryDlgW +@ stub RasMonitorDlgA +@ stub RasMonitorDlgW +@ stub RasPhonebookDlgA +@ stub RasPhonebookDlgW +@ stub RasSrvAddPropPages +@ stub RasSrvAddWizPages +@ stub RasSrvAllowConnectionsConfig +@ stub RasSrvCleanupService +@ stub RasSrvEnumConnections +@ stub RasSrvHangupConnection +@ stub RasSrvInitializeService +@ stub RasSrvIsConnectionConnected +@ stub RasSrvIsServiceRunning +@ stub RasSrvQueryShowIcon +@ stub RasUserEnableManualDial +@ stub RasUserGetManualDial +@ stub RasUserPrefsDlg +@ stub RasWizCreateNewEntry +@ stub RasWizGetNCCFlags +@ stub RasWizGetSuggestedEntryName +@ stub RasWizGetUserInputConnectionName +@ stub RasWizIsEntryRenamable +@ stub RasWizQueryMaxPageCount +@ stub RasWizSetEntryName +@ stub RouterEntryDlgA +@ stub RouterEntryDlgW diff --git a/dlls/rasdlg/rasdlg_main.c b/dlls/rasdlg/rasdlg_main.c new file mode 100644 index 0000000..00ceb89 --- /dev/null +++ b/dlls/rasdlg/rasdlg_main.c @@ -0,0 +1,44 @@ +/* + * Implementation of the Remote Access Common Dialog API + * + * Copyright 2009 CodeWeavers, Aric Stewart + * + * 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 <stdarg.h> + +#include "windef.h" +#include "winbase.h" +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(rasdlg); + +BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) +{ + TRACE("(0x%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved); + + switch (fdwReason) + { + case DLL_WINE_PREATTACH: + return FALSE; /* prefer native version */ + case DLL_PROCESS_ATTACH: + DisableThreadLibraryCalls(hinstDLL); + break; + default: + break; + } + + return TRUE; +}