Andrey Turkin : pdh: Stub implementation of pdh.dll.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jun 4 08:14:44 CDT 2007


Module: wine
Branch: master
Commit: 41f15a769fe745515af166c7f0b9bd07b5252efc
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=41f15a769fe745515af166c7f0b9bd07b5252efc

Author: Andrey Turkin <andrey.turkin at gmail.com>
Date:   Sat Jun  2 02:28:45 2007 +0400

pdh: Stub implementation of pdh.dll.

---

 Makefile.in          |    2 +
 configure            |    3 +
 configure.ac         |    1 +
 dlls/Makefile.in     |    1 +
 dlls/pdh/Makefile.in |   13 ++++
 dlls/pdh/pdh.spec    |  158 ++++++++++++++++++++++++++++++++++++++++++++++++++
 dlls/pdh/pdh_main.c  |   41 +++++++++++++
 7 files changed, 219 insertions(+), 0 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index afec44b..36d950d 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -326,6 +326,7 @@ ALL_MAKEFILES = \
 	dlls/olepro32/Makefile \
 	dlls/olesvr32/Makefile \
 	dlls/opengl32/Makefile \
+	dlls/pdh/Makefile \
 	dlls/powrprof/Makefile \
 	dlls/psapi/Makefile \
 	dlls/psapi/tests/Makefile \
@@ -677,6 +678,7 @@ dlls/oledlg/Makefile: dlls/oledlg/Makefile.in dlls/Makedll.rules
 dlls/olepro32/Makefile: dlls/olepro32/Makefile.in dlls/Makedll.rules
 dlls/olesvr32/Makefile: dlls/olesvr32/Makefile.in dlls/Makedll.rules
 dlls/opengl32/Makefile: dlls/opengl32/Makefile.in dlls/Makedll.rules
+dlls/pdh/Makefile: dlls/pdh/Makefile.in dlls/Makedll.rules
 dlls/powrprof/Makefile: dlls/powrprof/Makefile.in dlls/Makedll.rules
 dlls/psapi/Makefile: dlls/psapi/Makefile.in dlls/Makedll.rules
 dlls/psapi/tests/Makefile: dlls/psapi/tests/Makefile.in dlls/Maketest.rules
diff --git a/configure b/configure
index 9c5f8f0..6e3da55 100755
--- a/configure
+++ b/configure
@@ -20721,6 +20721,8 @@ ac_config_files="$ac_config_files dlls/olesvr32/Makefile"
 
 ac_config_files="$ac_config_files dlls/opengl32/Makefile"
 
+ac_config_files="$ac_config_files dlls/pdh/Makefile"
+
 ac_config_files="$ac_config_files dlls/powrprof/Makefile"
 
 ac_config_files="$ac_config_files dlls/psapi/Makefile"
@@ -21791,6 +21793,7 @@ do
     "dlls/olepro32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
     "dlls/olesvr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olesvr32/Makefile" ;;
     "dlls/opengl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
+    "dlls/pdh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/pdh/Makefile" ;;
     "dlls/powrprof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/powrprof/Makefile" ;;
     "dlls/psapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
     "dlls/psapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
diff --git a/configure.ac b/configure.ac
index e06b2bc..9cbbaf0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1656,6 +1656,7 @@ AC_CONFIG_FILES([dlls/oledlg/Makefile])
 AC_CONFIG_FILES([dlls/olepro32/Makefile])
 AC_CONFIG_FILES([dlls/olesvr32/Makefile])
 AC_CONFIG_FILES([dlls/opengl32/Makefile])
+AC_CONFIG_FILES([dlls/pdh/Makefile])
 AC_CONFIG_FILES([dlls/powrprof/Makefile])
 AC_CONFIG_FILES([dlls/psapi/Makefile])
 AC_CONFIG_FILES([dlls/psapi/tests/Makefile])
diff --git a/dlls/Makefile.in b/dlls/Makefile.in
index 67a2976..c1b7058 100644
--- a/dlls/Makefile.in
+++ b/dlls/Makefile.in
@@ -141,6 +141,7 @@ BASEDIRS = \
 	oledlg \
 	olepro32 \
 	olesvr32 \
+	pdh \
 	powrprof \
 	psapi \
 	pstorec \
diff --git a/dlls/pdh/Makefile.in b/dlls/pdh/Makefile.in
new file mode 100644
index 0000000..38155aa
--- /dev/null
+++ b/dlls/pdh/Makefile.in
@@ -0,0 +1,13 @@
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ../..
+SRCDIR    = @srcdir@
+VPATH     = @srcdir@
+MODULE    = pdh.dll
+IMPORTS   = kernel32
+
+C_SRCS = \
+	pdh_main.c
+
+ at MAKE_DLL_RULES@
+
+ at DEPENDENCIES@  # everything below this line is overwritten by make depend
diff --git a/dlls/pdh/pdh.spec b/dlls/pdh/pdh.spec
new file mode 100644
index 0000000..3bea949
--- /dev/null
+++ b/dlls/pdh/pdh.spec
@@ -0,0 +1,158 @@
+1 stub PdhPlaGetLogFileNameA
+@ stub PdhAdd009CounterA
+@ stub PdhAdd009CounterW
+@ stub PdhAddCounterA
+@ stub PdhAddCounterW
+@ stub PdhBindInputDataSourceA
+@ stub PdhBindInputDataSourceW
+@ stub PdhBrowseCountersA
+@ stub PdhBrowseCountersHA
+@ stub PdhBrowseCountersHW
+@ stub PdhBrowseCountersW
+@ stub PdhCalculateCounterFromRawValue
+@ stub PdhCloseLog
+@ stub PdhCloseQuery
+@ stub PdhCollectQueryData
+@ stub PdhCollectQueryDataEx
+@ stub PdhComputeCounterStatistics
+@ stub PdhConnectMachineA
+@ stub PdhConnectMachineW
+@ stub PdhCreateSQLTablesA
+@ stub PdhCreateSQLTablesW
+@ stub PdhEnumLogSetNamesA
+@ stub PdhEnumLogSetNamesW
+@ stub PdhEnumMachinesA
+@ stub PdhEnumMachinesHA
+@ stub PdhEnumMachinesHW
+@ stub PdhEnumMachinesW
+@ stub PdhEnumObjectItemsA
+@ stub PdhEnumObjectItemsHA
+@ stub PdhEnumObjectItemsHW
+@ stub PdhEnumObjectItemsW
+@ stub PdhEnumObjectsA
+@ stub PdhEnumObjectsHA
+@ stub PdhEnumObjectsHW
+@ stub PdhEnumObjectsW
+@ stub PdhExpandCounterPathA
+@ stub PdhExpandCounterPathW
+@ stub PdhExpandWildCardPathA
+@ stub PdhExpandWildCardPathHA
+@ stub PdhExpandWildCardPathHW
+@ stub PdhExpandWildCardPathW
+@ stub PdhFormatFromRawValue
+@ stub PdhGetCounterInfoA
+@ stub PdhGetCounterInfoW
+@ stub PdhGetCounterTimeBase
+@ stub PdhGetDataSourceTimeRangeA
+@ stub PdhGetDataSourceTimeRangeH
+@ stub PdhGetDataSourceTimeRangeW
+@ stub PdhGetDefaultPerfCounterA
+@ stub PdhGetDefaultPerfCounterHA
+@ stub PdhGetDefaultPerfCounterHW
+@ stub PdhGetDefaultPerfCounterW
+@ stub PdhGetDefaultPerfObjectA
+@ stub PdhGetDefaultPerfObjectHA
+@ stub PdhGetDefaultPerfObjectHW
+@ stub PdhGetDefaultPerfObjectW
+@ stub PdhGetDllVersion
+@ stub PdhGetFormattedCounterArrayA
+@ stub PdhGetFormattedCounterArrayW
+@ stub PdhGetFormattedCounterValue
+@ stub PdhGetLogFileSize
+@ stub PdhGetLogFileTypeA
+@ stub PdhGetLogFileTypeW
+@ stub PdhGetLogSetGUID
+@ stub PdhGetRawCounterArrayA
+@ stub PdhGetRawCounterArrayW
+@ stub PdhGetRawCounterValue
+@ stub PdhIsRealTimeQuery
+@ stub PdhListLogFileHeaderA
+@ stub PdhListLogFileHeaderW
+@ stub PdhLogServiceCommandA
+@ stub PdhLogServiceCommandW
+@ stub PdhLogServiceControlA
+@ stub PdhLogServiceControlW
+@ stub PdhLookupPerfIndexByNameA
+@ stub PdhLookupPerfIndexByNameW
+@ stub PdhLookupPerfNameByIndexA
+@ stub PdhLookupPerfNameByIndexW
+@ stub PdhMakeCounterPathA
+@ stub PdhMakeCounterPathW
+@ stub PdhOpenLogA
+@ stub PdhOpenLogW
+@ stub PdhOpenQuery
+@ stub PdhOpenQueryA
+@ stub PdhOpenQueryH
+@ stub PdhOpenQueryW
+@ stub PdhParseCounterPathA
+@ stub PdhParseCounterPathW
+@ stub PdhParseInstanceNameA
+@ stub PdhParseInstanceNameW
+@ stub PdhPlaAddItemA
+@ stub PdhPlaAddItemW
+@ stub PdhPlaCreateA
+@ stub PdhPlaCreateW
+@ stub PdhPlaDeleteA
+@ stub PdhPlaDeleteW
+@ stub PdhPlaEnumCollectionsA
+@ stub PdhPlaEnumCollectionsW
+@ stub PdhPlaGetInfoA
+@ stub PdhPlaGetInfoW
+@ stub PdhPlaGetLogFileNameW
+@ stub PdhPlaGetScheduleA
+@ stub PdhPlaGetScheduleW
+@ stub PdhPlaRemoveAllItemsA
+@ stub PdhPlaRemoveAllItemsW
+@ stub PdhPlaScheduleA
+@ stub PdhPlaScheduleW
+@ stub PdhPlaSetInfoA
+@ stub PdhPlaSetInfoW
+@ stub PdhPlaSetItemListA
+@ stub PdhPlaSetItemListW
+@ stub PdhPlaSetRunAsA
+@ stub PdhPlaSetRunAsW
+@ stub PdhPlaStartA
+@ stub PdhPlaStartW
+@ stub PdhPlaStopA
+@ stub PdhPlaStopW
+@ stub PdhPlaValidateInfoA
+@ stub PdhPlaValidateInfoW
+@ stub PdhReadRawLogRecord
+@ stub PdhRelogA
+@ stub PdhRelogW
+@ stub PdhRemoveCounter
+@ stub PdhSelectDataSourceA
+@ stub PdhSelectDataSourceW
+@ stub PdhSetCounterScaleFactor
+@ stub PdhSetDefaultRealTimeDataSource
+@ stub PdhSetLogSetRunID
+@ stub PdhSetQueryTimeRange
+@ stub PdhTranslate009CounterA
+@ stub PdhTranslate009CounterW
+@ stub PdhTranslateLocaleCounterA
+@ stub PdhTranslateLocaleCounterW
+@ stub PdhUpdateLogA
+@ stub PdhUpdateLogFileCatalog
+@ stub PdhUpdateLogW
+@ stub PdhValidatePathA
+@ stub PdhValidatePathW
+@ stub PdhVbAddCounter
+@ stub PdhVbCreateCounterPathList
+@ stub PdhVbGetCounterPathElements
+@ stub PdhVbGetCounterPathFromList
+@ stub PdhVbGetDoubleCounterValue
+@ stub PdhVbGetLogFileSize
+@ stub PdhVbGetOneCounterPath
+@ stub PdhVbIsGoodStatus
+@ stub PdhVbOpenLog
+@ stub PdhVbOpenQuery
+@ stub PdhVbUpdateLog
+@ stub PdhVerifySQLDBA
+@ stub PdhVerifySQLDBW
+@ stub PdhiPla2003SP1Installed
+@ stub PdhiPlaFormatBlanksA
+@ stub PdhiPlaFormatBlanksW
+@ stub PdhiPlaGetVersion
+@ stub PdhiPlaRunAs
+@ stub PdhiPlaSetRunAs
+@ stub PlaTimeInfoToMilliSeconds
diff --git a/dlls/pdh/pdh_main.c b/dlls/pdh/pdh_main.c
new file mode 100644
index 0000000..cbc1991
--- /dev/null
+++ b/dlls/pdh/pdh_main.c
@@ -0,0 +1,41 @@
+/*
+ * Performance Data Helper (pdh.dll)
+ *
+ * Copyright 2007 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 <stdarg.h>
+
+#include "windef.h"
+#include "winbase.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(pdh);
+
+BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
+{
+    TRACE("(0x%p, %d, %p)\n",hinstDLL,fdwReason,lpvReserved);
+
+    if (fdwReason == DLL_WINE_PREATTACH) return FALSE;    /* prefer native version */
+
+    if (fdwReason == DLL_PROCESS_ATTACH)
+    {
+        DisableThreadLibraryCalls( hinstDLL );
+    }
+
+    return TRUE;
+}




More information about the wine-cvs mailing list