Libor said in news
[email protected]:
it is the PDH.DLL library located in windows\system32 folder
Well, since PDH is a DLL file (a file full of callable functions) rather
than an executable, then "finding" the processor value is something you
are doing in some program you are coding. Visit a newsgroup related to
whatever programming language you are using.
I suppose you could use rundll.exe to call a function in the DLL file
but then you know how you want to use it. When I look at PDH.dll with
Filesnoop, none of the exports (entry points) listed look like they
return some "processor" value. So what are you REALLY running (that may
use the pdh.dll file)? Might you actually be running the Performance
Monitor (perfmon.exe)? If so, how are YOU trying to add the processor
to the monitoring list?
File information
================
File name: C:\WINDOWS\system32\pdh.dll
Display name: pdh.dll
File type: Application Extension
File size: 254,976 Bytes (249 KB)
File size on disk: 258,048 Bytes (252 KB)
File attributes:
Date created: 3/31/2003 7:00:00 AM
Date modified: 3/31/2003 7:00:00 AM
Last accessed: 5/25/2004 5:22:12 PM
Version information
===================
CompanyName: Microsoft Corporation
FileDescription: Windows Performance Data Helper DLL
FileVersion: 5.1.2600.1106 (xpsp1.020828-1920)
InternalName: PDH.DLL
LegalCopyright: C Microsoft Corporation. All rights reserved.
OriginalFilename: PDH.DLL
ProductName: MicrosoftR WindowsR Operating System
ProductVersion: 5.1.2600.1106
Imports
=======
msvcrt.dll
ntdll.dll
SHLWAPI.dll
KERNEL32.dll
RPCRT4.dll
ADVAPI32.dll
comdlg32.dll
USER32.dll
ole32.dll
GDI32.dll
OLEAUT32.dll
ODBC32.dll
odbcbcp.dll
CRYPT32.dll
Exports
=======
PdhAdd009CounterA
PdhAdd009CounterW
PdhAddCounterA
PdhAddCounterW
PdhBindInputDataSourceA
PdhBindInputDataSourceW
PdhBrowseCountersA
PdhBrowseCountersHA
PdhBrowseCountersHW
PdhBrowseCountersW
PdhCalculateCounterFromRawValue
PdhCloseLog
PdhCloseQuery
PdhCollectQueryData
PdhCollectQueryDataEx
PdhComputeCounterStatistics
PdhConnectMachineA
PdhConnectMachineW
PdhCreateSQLTablesA
PdhCreateSQLTablesW
PdhEnumLogSetNamesA
PdhEnumLogSetNamesW
PdhEnumMachinesA
PdhEnumMachinesHA
PdhEnumMachinesHW
PdhEnumMachinesW
PdhEnumObjectItemsA
PdhEnumObjectItemsHA
PdhEnumObjectItemsHW
PdhEnumObjectItemsW
PdhEnumObjectsA
PdhEnumObjectsHA
PdhEnumObjectsHW
PdhEnumObjectsW
PdhExpandCounterPathA
PdhExpandCounterPathW
PdhExpandWildCardPathA
PdhExpandWildCardPathHA
PdhExpandWildCardPathHW
PdhExpandWildCardPathW
PdhFormatFromRawValue
PdhGetCounterInfoA
PdhGetCounterInfoW
PdhGetCounterTimeBase
PdhGetDataSourceTimeRangeA
PdhGetDataSourceTimeRangeH
PdhGetDataSourceTimeRangeW
PdhGetDefaultPerfCounterA
PdhGetDefaultPerfCounterHA
PdhGetDefaultPerfCounterHW
PdhGetDefaultPerfCounterW
PdhGetDefaultPerfObjectA
PdhGetDefaultPerfObjectHA
PdhGetDefaultPerfObjectHW
PdhGetDefaultPerfObjectW
PdhGetDllVersion
PdhGetFormattedCounterArrayA
PdhGetFormattedCounterArrayW
PdhGetFormattedCounterValue
PdhGetLogFileSize
PdhGetLogFileTypeA
PdhGetLogFileTypeW
PdhGetLogSetGUID
PdhGetRawCounterArrayA
PdhGetRawCounterArrayW
PdhGetRawCounterValue
PdhIsRealTimeQuery
PdhListLogFileHeaderA
PdhListLogFileHeaderW
PdhLogServiceCommandA
PdhLogServiceCommandW
PdhLogServiceControlA
PdhLogServiceControlW
PdhLookupPerfIndexByNameA
PdhLookupPerfIndexByNameW
PdhLookupPerfNameByIndexA
PdhLookupPerfNameByIndexW
PdhMakeCounterPathA
PdhMakeCounterPathW
PdhOpenLogA
PdhOpenLogW
PdhOpenQuery
PdhOpenQueryA
PdhOpenQueryH
PdhOpenQueryW
PdhParseCounterPathA
PdhParseCounterPathW
PdhParseInstanceNameA
PdhParseInstanceNameW
PdhPlaAddItemA
PdhPlaAddItemW
PdhPlaCreateA
PdhPlaCreateW
PdhPlaDeleteA
PdhPlaDeleteW
PdhPlaEnumCollectionsA
PdhPlaEnumCollectionsW
PdhPlaGetInfoA
PdhPlaGetInfoW
PdhPlaGetLogFileNameA
PdhPlaGetLogFileNameW
PdhPlaGetScheduleA
PdhPlaGetScheduleW
PdhPlaRemoveAllItemsA
PdhPlaRemoveAllItemsW
PdhPlaScheduleA
PdhPlaScheduleW
PdhPlaSetInfoA
PdhPlaSetInfoW
PdhPlaSetItemListA
PdhPlaSetItemListW
PdhPlaSetRunAsA
PdhPlaSetRunAsW
PdhPlaStartA
PdhPlaStartW
PdhPlaStopA
PdhPlaStopW
PdhPlaValidateInfoA
PdhPlaValidateInfoW
PdhReadRawLogRecord
PdhRelogA
PdhRelogW
PdhRemoveCounter
PdhSelectDataSourceA
PdhSelectDataSourceW
PdhSetCounterScaleFactor
PdhSetDefaultRealTimeDataSource
PdhSetLogSetRunID
PdhSetQueryTimeRange
PdhTranslate009CounterA
PdhTranslate009CounterW
PdhTranslateLocaleCounterA
PdhTranslateLocaleCounterW
PdhUpdateLogA
PdhUpdateLogFileCatalog
PdhUpdateLogW
PdhValidatePathA
PdhValidatePathW
PdhVbAddCounter
PdhVbCreateCounterPathList
PdhVbGetCounterPathElements
PdhVbGetCounterPathFromList
PdhVbGetDoubleCounterValue
PdhVbGetLogFileSize
PdhVbGetOneCounterPath
PdhVbIsGoodStatus
PdhVbOpenLog
PdhVbOpenQuery
PdhVbUpdateLog
PdhVerifySQLDBA
PdhVerifySQLDBW
PdhiPlaFormatBlanksA
PdhiPlaFormatBlanksW
PdhiPlaGetVersion
PdhiPlaRunAs
PdhiPlaSetRunAs
PlaTimeInfoToMilliSeconds