From a26ec0e31241b972e49c10efd903a45152461335 Mon Sep 17 00:00:00 2001 From: Austin English Date: Mon, 22 Dec 2008 14:41:13 -0600 Subject: [PATCH] loadperf: add stub dll --- configure.ac | 1 + dlls/loadperf/Makefile.in | 13 ++++++++++ dlls/loadperf/loadperf.c | 35 ++++++++++++++++++++++++++++ dlls/loadperf/loadperf.spec | 15 ++++++++++++ dlls/loadperf/loadperf_main.c | 50 +++++++++++++++++++++++++++++++++++++++++ 5 files changed, 114 insertions(+), 0 deletions(-) create mode 100644 dlls/loadperf/Makefile.in create mode 100644 dlls/loadperf/loadperf.c create mode 100644 dlls/loadperf/loadperf.spec create mode 100644 dlls/loadperf/loadperf_main.c diff --git a/configure.ac b/configure.ac index ce90fca..8816f53 100644 --- a/configure.ac +++ b/configure.ac @@ -1885,6 +1885,7 @@ WINE_CONFIG_MAKEFILE([dlls/jscript/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DL WINE_CONFIG_MAKEFILE([dlls/jscript/tests/Makefile],[dlls/Maketest.rules],[dlls],[ALL_TEST_DIRS],[enable_tests]) WINE_CONFIG_MAKEFILE([dlls/kernel32/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) WINE_CONFIG_MAKEFILE([dlls/kernel32/tests/Makefile],[dlls/Maketest.rules],[dlls],[ALL_TEST_DIRS],[enable_tests]) +WINE_CONFIG_MAKEFILE([dlls/loadperf/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) WINE_CONFIG_MAKEFILE([dlls/localspl/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) WINE_CONFIG_MAKEFILE([dlls/localspl/tests/Makefile],[dlls/Maketest.rules],[dlls],[ALL_TEST_DIRS],[enable_tests]) WINE_CONFIG_MAKEFILE([dlls/localui/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) diff --git a/dlls/loadperf/Makefile.in b/dlls/loadperf/Makefile.in new file mode 100644 index 0000000..17639cd --- /dev/null +++ b/dlls/loadperf/Makefile.in @@ -0,0 +1,13 @@ +TOPSRCDIR = @top_srcdir@ +TOPOBJDIR = ../.. +SRCDIR = @srcdir@ +VPATH = @srcdir@ +MODULE = loadperf.dll +IMPORTS = kernel32 + +C_SRCS = loadperf.c \ + loadperf_main.c + +@MAKE_DLL_RULES@ + +@DEPENDENCIES@ # everything below this line is overwritten by make depend diff --git a/dlls/loadperf/loadperf.c b/dlls/loadperf/loadperf.c new file mode 100644 index 0000000..170f2ba --- /dev/null +++ b/dlls/loadperf/loadperf.c @@ -0,0 +1,35 @@ +/* + * loadperf implementation + * + * 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(loadperf); + +DWORD WINAPI UnloadPerfCounterTextStringsW( LPCWSTR lpWideCommandLine, + BOOL bQuietModeArg) +{ + FIXME("(%s, %d): stub!\n", debugstr_w(lpWideCommandLine), bQuietModeArg); + + return ERROR_SUCCESS; +} diff --git a/dlls/loadperf/loadperf.spec b/dlls/loadperf/loadperf.spec new file mode 100644 index 0000000..14b6ef0 --- /dev/null +++ b/dlls/loadperf/loadperf.spec @@ -0,0 +1,15 @@ +@ stub BackupPerfRegistryToFileW +@ stub InstallPerfDllA +@ stub InstallPerfDllW +@ stub LoadMofFromInstalledServiceA +@ stub LoadMofFromInstalledServiceW +@ stub LoadPerfCounterTextStringsA +@ stub LoadPerfCounterTextStringsW +@ stub RestorePerfRegistryFromFileW +@ stub SetServiceAsTrustedA +@ stub SetServiceAsTrustedW +@ stub UnloadPerfCounterTextStringsA +@ stdcall UnloadPerfCounterTextStringsW(wstr long) +@ stub UpdatePerfNameFilesA +@ stub UpdatePerfNameFilesW + diff --git a/dlls/loadperf/loadperf_main.c b/dlls/loadperf/loadperf_main.c new file mode 100644 index 0000000..4ce6929 --- /dev/null +++ b/dlls/loadperf/loadperf_main.c @@ -0,0 +1,50 @@ +/* + * loadperf main + * + * 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(loadperf); + +/****************************************************************** + * DllMain (loadperf.@) + */ +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; + case DLL_PROCESS_DETACH: + break; + default: + break; + } + + return TRUE; +} -- 1.5.4.3