loadperf: Add stub loadperf.dll.
diff --git a/configure b/configure
index 6426882..a124c6a 100755
--- a/configure
+++ b/configure
Binary files differ
diff --git a/configure.ac b/configure.ac
index aaeff42..a4fdd8d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1900,6 +1900,7 @@
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..3d5019b
--- /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_main.c
+
+@MAKE_DLL_RULES@
+
+@DEPENDENCIES@ # everything below this line is overwritten by make depend
diff --git a/dlls/loadperf/loadperf.spec b/dlls/loadperf/loadperf.spec
new file mode 100644
index 0000000..9b64cf4
--- /dev/null
+++ b/dlls/loadperf/loadperf.spec
@@ -0,0 +1,14 @@
+@ stub BackupPerfRegistryToFileW
+@ stub InstallPerfDllA
+@ stub InstallPerfDllW
+@ stub LoadMofFromInstalledServiceA
+@ stub LoadMofFromInstalledServiceW
+@ stub LoadPerfCounterTextStringsA
+@ stub LoadPerfCounterTextStringsW
+@ stub RestorePerfRegistryFromFileW
+@ stub SetServiceAsTrustedA
+@ stub SetServiceAsTrustedW
+@ stub UnloadPerfCounterTextStringsA
+@ stub UnloadPerfCounterTextStringsW
+@ stub UpdatePerfNameFilesA
+@ stub UpdatePerfNameFilesW
diff --git a/dlls/loadperf/loadperf_main.c b/dlls/loadperf/loadperf_main.c
new file mode 100644
index 0000000..74ba24e
--- /dev/null
+++ b/dlls/loadperf/loadperf_main.c
@@ -0,0 +1,47 @@
+/*
+ * Implementation of loadperf.dll
+ *
+ * Copyright 2009 Andrey Turkin
+ *
+ * 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>
+
+#include "windef.h"
+#include "winbase.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(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;
+ }
+
+ return TRUE;
+}