186 lines
5.5 KiB
Modula-2
186 lines
5.5 KiB
Modula-2
LIBRARY pdh
|
|
|
|
EXPORTS
|
|
; PdhDllInitRoutine
|
|
PdhGetDllVersion
|
|
PdhOpenQuery = PdhOpenQueryW
|
|
PdhOpenQueryA
|
|
PdhOpenQueryW
|
|
PdhAddCounterA
|
|
PdhAddCounterW
|
|
PdhRemoveCounter
|
|
PdhCollectQueryData
|
|
PdhCloseQuery
|
|
PdhGetFormattedCounterValue
|
|
PdhGetRawCounterValue
|
|
PdhCalculateCounterFromRawValue
|
|
PdhComputeCounterStatistics
|
|
PdhGetCounterInfoA
|
|
PdhGetCounterInfoW
|
|
PdhSetCounterScaleFactor
|
|
PdhConnectMachineA
|
|
PdhConnectMachineW
|
|
PdhEnumMachinesA
|
|
PdhEnumMachinesW
|
|
PdhEnumObjectsA
|
|
PdhEnumObjectsW
|
|
PdhEnumObjectItemsA
|
|
PdhEnumObjectItemsW
|
|
PdhMakeCounterPathA
|
|
PdhMakeCounterPathW
|
|
PdhParseCounterPathA
|
|
PdhParseCounterPathW
|
|
PdhParseInstanceNameA
|
|
PdhParseInstanceNameW
|
|
PdhValidatePathA
|
|
PdhValidatePathW
|
|
PdhGetDefaultPerfObjectA
|
|
PdhGetDefaultPerfObjectW
|
|
PdhGetDefaultPerfCounterA
|
|
PdhGetDefaultPerfCounterW
|
|
PdhBrowseCountersA
|
|
PdhBrowseCountersW
|
|
PdhExpandCounterPathA
|
|
PdhExpandCounterPathW
|
|
;
|
|
; v1.1 functions
|
|
;
|
|
PdhLookupPerfNameByIndexW
|
|
PdhLookupPerfNameByIndexA
|
|
PdhLookupPerfIndexByNameW
|
|
PdhLookupPerfIndexByNameA
|
|
;
|
|
; Logging functions
|
|
;
|
|
PdhOpenLogW
|
|
PdhOpenLogA
|
|
PdhUpdateLogA
|
|
PdhUpdateLogW
|
|
PdhGetLogFileSize
|
|
PdhCloseLog
|
|
PdhSetQueryTimeRange
|
|
PdhIsRealTimeQuery
|
|
PdhGetDataSourceTimeRangeA
|
|
PdhGetDataSourceTimeRangeW
|
|
PdhSelectDataSourceA
|
|
PdhSelectDataSourceW
|
|
;
|
|
; v1.2 functions
|
|
;
|
|
PdhGetFormattedCounterArrayA
|
|
PdhGetFormattedCounterArrayW
|
|
PdhGetRawCounterArrayA
|
|
PdhGetRawCounterArrayW
|
|
;
|
|
; v2.0 functions
|
|
;
|
|
PdhCollectQueryDataEx
|
|
PdhFormatFromRawValue
|
|
PdhSetDefaultRealTimeDataSource
|
|
PdhReadRawLogRecord
|
|
PdhGetCounterTimeBase
|
|
PdhUpdateLogFileCatalog
|
|
PdhExpandWildCardPathA
|
|
PdhExpandWildCardPathW
|
|
PdhListLogFileHeaderA PRIVATE
|
|
PdhListLogFileHeaderW PRIVATE
|
|
|
|
;
|
|
; functions exported for Visual Basic only
|
|
;
|
|
PdhVbOpenQuery
|
|
PdhVbAddCounter
|
|
PdhVbGetDoubleCounterValue
|
|
PdhVbGetOneCounterPath
|
|
PdhVbCreateCounterPathList
|
|
PdhVbGetCounterPathFromList
|
|
PdhVbGetCounterPathElements
|
|
PdhVbIsGoodStatus
|
|
PdhVbOpenLog
|
|
PdhVbUpdateLog
|
|
PdhVbGetLogFileSize
|
|
;
|
|
; extended functions for WMI event trace logfile format
|
|
;
|
|
PdhBindInputDataSourceW
|
|
PdhBindInputDataSourceA
|
|
PdhOpenQueryH
|
|
PdhEnumMachinesHW
|
|
PdhEnumMachinesHA
|
|
PdhEnumObjectsHW
|
|
PdhEnumObjectsHA
|
|
PdhEnumObjectItemsHW
|
|
PdhEnumObjectItemsHA
|
|
PdhExpandWildCardPathHW
|
|
PdhExpandWildCardPathHA
|
|
PdhGetDataSourceTimeRangeH
|
|
PdhGetDefaultPerfObjectHA
|
|
PdhGetDefaultPerfObjectHW
|
|
PdhGetDefaultPerfCounterHA
|
|
PdhGetDefaultPerfCounterHW
|
|
PdhBrowseCountersHW
|
|
PdhBrowseCountersHA
|
|
|
|
; Functions for Performance Log and Alert Management
|
|
PdhPlaScheduleW PRIVATE
|
|
PdhPlaScheduleA PRIVATE
|
|
PdhPlaStartW PRIVATE
|
|
PdhPlaStartA PRIVATE
|
|
PdhPlaStopW PRIVATE
|
|
PdhPlaStopA PRIVATE
|
|
PdhPlaCreateW PRIVATE
|
|
PdhPlaCreateA PRIVATE
|
|
PdhPlaDeleteW PRIVATE
|
|
PdhPlaDeleteA PRIVATE
|
|
PdhPlaAddItemW PRIVATE
|
|
PdhPlaAddItemA PRIVATE
|
|
PdhPlaSetItemListA PRIVATE
|
|
PdhPlaSetItemListW PRIVATE
|
|
PdhPlaRemoveAllItemsW PRIVATE
|
|
PdhPlaRemoveAllItemsA PRIVATE
|
|
PdhPlaSetRunAsW PRIVATE
|
|
PdhPlaSetRunAsA PRIVATE
|
|
PdhPlaGetInfoW PRIVATE
|
|
PdhPlaGetInfoA PRIVATE
|
|
PdhPlaSetInfoW PRIVATE
|
|
PdhPlaSetInfoA PRIVATE
|
|
PdhiPlaRunAs PRIVATE
|
|
PdhiPlaSetRunAs PRIVATE
|
|
PdhPlaEnumCollectionsW PRIVATE
|
|
PdhPlaEnumCollectionsA PRIVATE
|
|
PlaTimeInfoToMilliSeconds PRIVATE
|
|
PdhPlaValidateInfoA PRIVATE
|
|
PdhPlaValidateInfoW PRIVATE
|
|
PdhiPlaGetVersion PRIVATE
|
|
PdhPlaGetLogFileNameA PRIVATE
|
|
PdhPlaGetLogFileNameW PRIVATE
|
|
PdhPlaGetScheduleW PRIVATE
|
|
PdhPlaGetScheduleA PRIVATE
|
|
PdhiPlaFormatBlanksW PRIVATE
|
|
PdhiPlaFormatBlanksA PRIVATE
|
|
|
|
PdhRelogA PRIVATE
|
|
PdhRelogW PRIVATE
|
|
|
|
PdhTranslate009CounterW PRIVATE
|
|
PdhTranslate009CounterA PRIVATE
|
|
PdhTranslateLocaleCounterW PRIVATE
|
|
PdhTranslateLocaleCounterA PRIVATE
|
|
PdhAdd009CounterW PRIVATE
|
|
PdhAdd009CounterA PRIVATE
|
|
PdhGetLogFileTypeW PRIVATE
|
|
PdhGetLogFileTypeA PRIVATE
|
|
|
|
;
|
|
; Functions for logging to SQL database
|
|
;
|
|
|
|
PdhEnumLogSetNamesA
|
|
PdhEnumLogSetNamesW
|
|
PdhVerifySQLDBA
|
|
PdhVerifySQLDBW
|
|
PdhCreateSQLTablesA
|
|
PdhCreateSQLTablesW
|
|
PdhSetLogSetRunID
|
|
PdhGetLogSetGUID
|