diff --git a/configure b/configure index eaa4da73f9e..20d01820753 100755 --- a/configure +++ b/configure @@ -25780,6 +25780,14 @@ ALL_MAKEFILE_DEPENDS="$ALL_MAKEFILE_DEPENDS dlls/pdh/tests/Makefile: dlls/pdh/tests/Makefile.in dlls/Maketest.rules" ac_config_files="$ac_config_files dlls/pdh/tests/Makefile" +ALL_MAKEFILES="$ALL_MAKEFILES \\ + dlls/pidgen/Makefile" +test "x$enable_pidgen" != xno && ALL_DLL_DIRS="$ALL_DLL_DIRS \\ + pidgen" +ALL_MAKEFILE_DEPENDS="$ALL_MAKEFILE_DEPENDS +dlls/pidgen/Makefile: dlls/pidgen/Makefile.in dlls/Makedll.rules" +ac_config_files="$ac_config_files dlls/pidgen/Makefile" + ALL_MAKEFILES="$ALL_MAKEFILES \\ dlls/powrprof/Makefile" test "x$enable_powrprof" != xno && ALL_DLL_DIRS="$ALL_DLL_DIRS \\ @@ -28230,6 +28238,7 @@ do "dlls/opengl32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/opengl32/tests/Makefile" ;; "dlls/pdh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/pdh/Makefile" ;; "dlls/pdh/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/pdh/tests/Makefile" ;; + "dlls/pidgen/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/pidgen/Makefile" ;; "dlls/powrprof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/powrprof/Makefile" ;; "dlls/printui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/printui/Makefile" ;; "dlls/propsys/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/propsys/Makefile" ;; diff --git a/configure.ac b/configure.ac index 071013c47bd..b74fb19ddd1 100644 --- a/configure.ac +++ b/configure.ac @@ -1981,6 +1981,7 @@ WINE_CONFIG_MAKEFILE([dlls/opengl32/Makefile],[dlls/Makedll.rules],[dlls],[ALL_D WINE_CONFIG_MAKEFILE([dlls/opengl32/tests/Makefile],[dlls/Maketest.rules],[dlls],[ALL_TEST_DIRS],[enable_tests]) WINE_CONFIG_MAKEFILE([dlls/pdh/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) WINE_CONFIG_MAKEFILE([dlls/pdh/tests/Makefile],[dlls/Maketest.rules],[dlls],[ALL_TEST_DIRS],[enable_tests]) +WINE_CONFIG_MAKEFILE([dlls/pidgen/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) WINE_CONFIG_MAKEFILE([dlls/powrprof/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) WINE_CONFIG_MAKEFILE([dlls/printui/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) WINE_CONFIG_MAKEFILE([dlls/propsys/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) diff --git a/dlls/pidgen/Makefile.in b/dlls/pidgen/Makefile.in new file mode 100644 index 00000000000..98e6b9a5849 --- /dev/null +++ b/dlls/pidgen/Makefile.in @@ -0,0 +1,13 @@ +TOPSRCDIR = @top_srcdir@ +TOPOBJDIR = ../.. +SRCDIR = @srcdir@ +VPATH = @srcdir@ +MODULE = pidgen.dll +IMPORTS = kernel32 + +C_SRCS = \ + main.c + +@MAKE_DLL_RULES@ + +@DEPENDENCIES@ # everything below this line is overwritten by make depend diff --git a/dlls/pidgen/main.c b/dlls/pidgen/main.c new file mode 100644 index 00000000000..3aa3e844449 --- /dev/null +++ b/dlls/pidgen/main.c @@ -0,0 +1,45 @@ +/* + * Copyright 2008 Hans Leidekker 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 + +#include "windef.h" +#include "winbase.h" +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(pidgen); + +/***************************************************** + * DllMain + */ +BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved ) +{ + TRACE("(%p, %d, %p)\n", hinst, reason, reserved); + + switch(reason) + { + case DLL_WINE_PREATTACH: + return FALSE; /* prefer native version */ + + case DLL_PROCESS_ATTACH: + DisableThreadLibraryCalls( hinst ); + break; + } + return TRUE; +} diff --git a/dlls/pidgen/pidgen.spec b/dlls/pidgen/pidgen.spec new file mode 100644 index 00000000000..ad5c3694a9e --- /dev/null +++ b/dlls/pidgen/pidgen.spec @@ -0,0 +1,7 @@ +@ stub PIDGenA +@ stub PIDGenW +@ stub PIDGenSimpA +@ stub PIDGenSimpW +@ stub SetupPIDGenA +@ stub SetupPIDGenW +@ stub VerifyPIDSequenceW