ReactOS 0.4.16-dev-106-g10b08aa
|
#include <stdarg.h>
#include <math.h>
#include "windef.h"
#include "winbase.h"
#include "pdh.h"
#include "pdhmsg.h"
#include "winperf.h"
#include "wine/debug.h"
#include "wine/heap.h"
#include "wine/list.h"
Go to the source code of this file.
Classes | |
union | value |
struct | counter |
struct | query |
struct | source |
Macros | |
#define | NONAMELESSUNION |
#define | PDH_MAGIC_COUNTER 0x50444831 /* 'PDH1' */ |
#define | PDH_MAGIC_QUERY 0x50444830 /* 'PDH0' */ |
#define | TYPE_PROCESSOR_TIME |
#define | TYPE_UPTIME (PERF_SIZE_LARGE | PERF_TYPE_COUNTER | PERF_COUNTER_ELAPSED | PERF_OBJECT_TIMER | PERF_DISPLAY_SECONDS) |
Variables | |
static CRITICAL_SECTION | pdh_handle_cs = { &pdh_handle_cs_debug, -1, 0, 0, 0, 0 } |
static CRITICAL_SECTION_DEBUG | pdh_handle_cs_debug |
static const WCHAR | path_processor_time [] |
static const WCHAR | path_processor [] |
static const WCHAR | path_uptime [] |
static const struct source | counter_sources [] |
#define NONAMELESSUNION |
Definition at line 25 of file pdh_main.c.
#define PDH_MAGIC_COUNTER 0x50444831 /* 'PDH1' */ |
Definition at line 118 of file pdh_main.c.
#define PDH_MAGIC_QUERY 0x50444830 /* 'PDH0' */ |
Definition at line 139 of file pdh_main.c.
#define TYPE_PROCESSOR_TIME |
Definition at line 201 of file pdh_main.c.
#define TYPE_UPTIME (PERF_SIZE_LARGE | PERF_TYPE_COUNTER | PERF_COUNTER_ELAPSED | PERF_OBJECT_TIMER | PERF_DISPLAY_SECONDS) |
Definition at line 205 of file pdh_main.c.
Definition at line 189 of file pdh_main.c.
Definition at line 445 of file pdh_main.c.
Referenced by collect_query_thread(), PdhCollectQueryData(), and PdhCollectQueryDataWithTime().
Definition at line 489 of file pdh_main.c.
Referenced by PdhCollectQueryDataEx().
Definition at line 195 of file pdh_main.c.
Definition at line 120 of file pdh_main.c.
Referenced by PdhAddCounterW().
Definition at line 152 of file pdh_main.c.
Referenced by get_diskdrivetodiskpartition_pairs(), get_logicaldisktopartition_pairs(), msi_table_apply_transform(), PdhOpenQueryW(), and wbem_services_ExecMethod().
Definition at line 132 of file pdh_main.c.
Referenced by PdhCloseQuery(), and PdhRemoveCounter().
Definition at line 165 of file pdh_main.c.
Referenced by PdhCloseQuery().
Definition at line 74 of file pdh_main.c.
|
static |
Definition at line 336 of file pdh_main.c.
Referenced by PdhCalculateCounterFromRawValue(), and PdhGetFormattedCounterValue().
Definition at line 216 of file pdh_main.c.
Referenced by pdh_match_path().
Definition at line 225 of file pdh_main.c.
Referenced by PdhAddCounterW(), PdhLookupPerfIndexByNameW(), and PdhValidatePathW().
Definition at line 63 of file pdh_main.c.
Referenced by PdhAddCounterA(), PdhLookupPerfIndexByNameA(), PdhLookupPerfNameByIndexA(), PdhMakeCounterPathA(), PdhOpenQueryA(), and PdhValidatePathA().
PDH_STATUS WINAPI PdhAddCounterA | ( | PDH_HQUERY | query, |
LPCSTR | path, | ||
DWORD_PTR | userdata, | ||
PDH_HCOUNTER * | counter | ||
) |
Definition at line 242 of file pdh_main.c.
Referenced by PdhAddEnglishCounterA(), test_PdhAddCounterA(), test_PdhCollectQueryDataEx(), test_PdhCollectQueryDataWithTime(), test_PdhGetCounterInfoA(), test_PdhGetCounterTimeBase(), test_PdhGetFormattedCounterValue(), test_PdhGetRawCounterValue(), and test_PdhSetCounterScaleFactor().
PDH_STATUS WINAPI PdhAddCounterW | ( | PDH_HQUERY | hquery, |
LPCWSTR | path, | ||
DWORD_PTR | userdata, | ||
PDH_HCOUNTER * | hcounter | ||
) |
Definition at line 264 of file pdh_main.c.
Referenced by PdhAddCounterA(), PdhAddEnglishCounterW(), test_PdhAddCounterW(), and test_PdhGetCounterInfoW().
PDH_STATUS WINAPI PdhAddEnglishCounterA | ( | PDH_HQUERY | query, |
LPCSTR | path, | ||
DWORD_PTR | userdata, | ||
PDH_HCOUNTER * | counter | ||
) |
Definition at line 314 of file pdh_main.c.
Referenced by init_function_ptrs().
PDH_STATUS WINAPI PdhAddEnglishCounterW | ( | PDH_HQUERY | query, |
LPCWSTR | path, | ||
DWORD_PTR | userdata, | ||
PDH_HCOUNTER * | counter | ||
) |
PDH_STATUS WINAPI PdhBindInputDataSourceA | ( | PDH_HLOG * | source, |
const char * | filenamelist | ||
) |
Definition at line 1298 of file pdh_main.c.
PDH_STATUS WINAPI PdhBindInputDataSourceW | ( | PDH_HLOG * | source, |
const WCHAR * | filenamelist | ||
) |
Definition at line 1307 of file pdh_main.c.
PDH_STATUS WINAPI PdhCalculateCounterFromRawValue | ( | PDH_HCOUNTER | handle, |
DWORD | format, | ||
PPDH_RAW_COUNTER | raw1, | ||
PPDH_RAW_COUNTER | raw2, | ||
PPDH_FMT_COUNTERVALUE | value | ||
) |
Definition at line 368 of file pdh_main.c.
PDH_STATUS WINAPI PdhCloseQuery | ( | PDH_HQUERY | handle | ) |
Definition at line 397 of file pdh_main.c.
Referenced by test_PdhAddCounterA(), test_PdhAddCounterW(), test_PdhAddEnglishCounterA(), test_PdhAddEnglishCounterW(), test_PdhCollectQueryDataEx(), test_PdhCollectQueryDataWithTime(), test_PdhGetCounterInfoA(), test_PdhGetCounterInfoW(), test_PdhGetCounterTimeBase(), test_PdhGetFormattedCounterValue(), test_PdhGetRawCounterValue(), test_PdhOpenQueryA(), test_PdhOpenQueryW(), and test_PdhSetCounterScaleFactor().
PDH_STATUS WINAPI PdhCollectQueryData | ( | PDH_HQUERY | handle | ) |
Definition at line 464 of file pdh_main.c.
Referenced by test_PdhAddCounterA(), test_PdhAddCounterW(), test_PdhAddEnglishCounterA(), test_PdhAddEnglishCounterW(), test_PdhCollectQueryDataEx(), test_PdhCollectQueryDataWithTime(), test_PdhGetFormattedCounterValue(), and test_PdhGetRawCounterValue().
PDH_STATUS WINAPI PdhCollectQueryDataEx | ( | PDH_HQUERY | handle, |
DWORD | interval, | ||
HANDLE | event | ||
) |
Definition at line 520 of file pdh_main.c.
Referenced by test_PdhCollectQueryDataEx().
PDH_STATUS WINAPI PdhCollectQueryDataWithTime | ( | PDH_HQUERY | handle, |
LONGLONG * | timestamp | ||
) |
Definition at line 579 of file pdh_main.c.
Referenced by init_function_ptrs().
PDH_STATUS WINAPI PdhEnumObjectItemsA | ( | LPCSTR | szDataSource, |
LPCSTR | szMachineName, | ||
LPCSTR | szObjectName, | ||
LPSTR | mszCounterList, | ||
LPDWORD | pcchCounterListLength, | ||
LPSTR | mszInstanceList, | ||
LPDWORD | pcchInstanceListLength, | ||
DWORD | dwDetailLevel, | ||
DWORD | dwFlags | ||
) |
Definition at line 1243 of file pdh_main.c.
PDH_STATUS WINAPI PdhEnumObjectItemsW | ( | LPCWSTR | szDataSource, |
LPCWSTR | szMachineName, | ||
LPCWSTR | szObjectName, | ||
LPWSTR | mszCounterList, | ||
LPDWORD | pcchCounterListLength, | ||
LPWSTR | mszInstanceList, | ||
LPDWORD | pcchInstanceListLength, | ||
DWORD | dwDetailLevel, | ||
DWORD | dwFlags | ||
) |
Definition at line 1257 of file pdh_main.c.
PDH_STATUS WINAPI PdhExpandCounterPathA | ( | LPCSTR | szWildCardPath, |
LPSTR | mszExpandedPathList, | ||
LPDWORD | pcchPathListLength | ||
) |
Definition at line 633 of file pdh_main.c.
PDH_STATUS WINAPI PdhExpandCounterPathW | ( | LPCWSTR | szWildCardPath, |
LPWSTR | mszExpandedPathList, | ||
LPDWORD | pcchPathListLength | ||
) |
Definition at line 642 of file pdh_main.c.
PDH_STATUS WINAPI PdhExpandWildCardPathA | ( | LPCSTR | szDataSource, |
LPCSTR | szWildCardPath, | ||
LPSTR | mszExpandedPathList, | ||
LPDWORD | pcchPathListLength, | ||
DWORD | dwFlags | ||
) |
Definition at line 615 of file pdh_main.c.
Referenced by PdhExpandCounterPathA().
PDH_STATUS WINAPI PdhExpandWildCardPathW | ( | LPCWSTR | szDataSource, |
LPCWSTR | szWildCardPath, | ||
LPWSTR | mszExpandedPathList, | ||
LPDWORD | pcchPathListLength, | ||
DWORD | dwFlags | ||
) |
Definition at line 624 of file pdh_main.c.
Referenced by PdhExpandCounterPathW().
PDH_STATUS WINAPI PdhGetCounterInfoA | ( | PDH_HCOUNTER | handle, |
BOOLEAN | text, | ||
LPDWORD | size, | ||
PPDH_COUNTER_INFO_A | info | ||
) |
Definition at line 651 of file pdh_main.c.
Referenced by test_PdhGetCounterInfoA().
PDH_STATUS WINAPI PdhGetCounterInfoW | ( | PDH_HCOUNTER | handle, |
BOOLEAN | text, | ||
LPDWORD | size, | ||
PPDH_COUNTER_INFO_W | info | ||
) |
Definition at line 693 of file pdh_main.c.
Referenced by test_PdhGetCounterInfoW().
PDH_STATUS WINAPI PdhGetCounterTimeBase | ( | PDH_HCOUNTER | handle, |
LONGLONG * | base | ||
) |
Definition at line 735 of file pdh_main.c.
Referenced by test_PdhGetCounterTimeBase().
PDH_STATUS WINAPI PdhGetDllVersion | ( | LPDWORD | version | ) |
PDH_STATUS WINAPI PdhGetFormattedCounterValue | ( | PDH_HCOUNTER | handle, |
DWORD | format, | ||
LPDWORD | type, | ||
PPDH_FMT_COUNTERVALUE | value | ||
) |
Definition at line 772 of file pdh_main.c.
Referenced by test_PdhCollectQueryDataEx(), and test_PdhGetFormattedCounterValue().
PDH_STATUS WINAPI PdhGetLogFileTypeA | ( | const char * | log, |
DWORD * | type | ||
) |
Definition at line 1280 of file pdh_main.c.
PDH_STATUS WINAPI PdhGetLogFileTypeW | ( | const WCHAR * | log, |
DWORD * | type | ||
) |
Definition at line 1289 of file pdh_main.c.
PDH_STATUS WINAPI PdhGetRawCounterValue | ( | PDH_HCOUNTER | handle, |
LPDWORD | type, | ||
PPDH_RAW_COUNTER | value | ||
) |
Definition at line 806 of file pdh_main.c.
Referenced by test_PdhGetRawCounterValue().
PDH_STATUS WINAPI PdhLookupPerfIndexByNameA | ( | LPCSTR | machine, |
LPCSTR | name, | ||
LPDWORD | index | ||
) |
Definition at line 838 of file pdh_main.c.
Referenced by test_PdhLookupPerfIndexByNameA().
PDH_STATUS WINAPI PdhLookupPerfIndexByNameW | ( | LPCWSTR | machine, |
LPCWSTR | name, | ||
LPDWORD | index | ||
) |
Definition at line 863 of file pdh_main.c.
Referenced by PdhLookupPerfIndexByNameA(), and test_PdhLookupPerfIndexByNameW().
PDH_STATUS WINAPI PdhLookupPerfNameByIndexA | ( | LPCSTR | machine, |
DWORD | index, | ||
LPSTR | buffer, | ||
LPDWORD | size | ||
) |
Definition at line 890 of file pdh_main.c.
Referenced by test_PdhLookupPerfNameByIndexA().
PDH_STATUS WINAPI PdhLookupPerfNameByIndexW | ( | LPCWSTR | machine, |
DWORD | index, | ||
LPWSTR | buffer, | ||
LPDWORD | size | ||
) |
Definition at line 918 of file pdh_main.c.
Referenced by PdhLookupPerfNameByIndexA(), and test_PdhLookupPerfNameByIndexW().
PDH_STATUS WINAPI PdhMakeCounterPathA | ( | PDH_COUNTER_PATH_ELEMENTS_A * | e, |
LPSTR | buffer, | ||
LPDWORD | buflen, | ||
DWORD | flags | ||
) |
Definition at line 1137 of file pdh_main.c.
Referenced by test_PdhMakeCounterPathA().
PDH_STATUS WINAPI PdhMakeCounterPathW | ( | PDH_COUNTER_PATH_ELEMENTS_W * | e, |
LPWSTR | buffer, | ||
LPDWORD | buflen, | ||
DWORD | flags | ||
) |
Definition at line 1188 of file pdh_main.c.
Referenced by PdhMakeCounterPathA().
PDH_STATUS WINAPI PdhOpenQueryA | ( | LPCSTR | source, |
DWORD_PTR | userdata, | ||
PDH_HQUERY * | query | ||
) |
Definition at line 957 of file pdh_main.c.
Referenced by test_PdhAddCounterA(), test_PdhAddEnglishCounterA(), test_PdhCollectQueryDataEx(), test_PdhCollectQueryDataWithTime(), test_PdhGetCounterInfoA(), test_PdhGetCounterTimeBase(), test_PdhGetFormattedCounterValue(), test_PdhGetRawCounterValue(), test_PdhOpenQueryA(), and test_PdhSetCounterScaleFactor().
PDH_STATUS WINAPI PdhOpenQueryW | ( | LPCWSTR | source, |
DWORD_PTR | userdata, | ||
PDH_HQUERY * | handle | ||
) |
Definition at line 975 of file pdh_main.c.
Referenced by PdhOpenQueryA(), test_PdhAddCounterW(), test_PdhAddEnglishCounterW(), test_PdhGetCounterInfoW(), and test_PdhOpenQueryW().
PDH_STATUS WINAPI PdhRemoveCounter | ( | PDH_HCOUNTER | handle | ) |
Definition at line 1001 of file pdh_main.c.
Referenced by test_PdhAddCounterA(), test_PdhAddCounterW(), test_PdhAddEnglishCounterA(), and test_PdhAddEnglishCounterW().
PDH_STATUS WINAPI PdhSetCounterScaleFactor | ( | PDH_HCOUNTER | handle, |
LONG | factor | ||
) |
Definition at line 1024 of file pdh_main.c.
Referenced by test_PdhGetCounterInfoA(), test_PdhGetCounterInfoW(), test_PdhGetFormattedCounterValue(), and test_PdhSetCounterScaleFactor().
PDH_STATUS WINAPI PdhSetDefaultRealTimeDataSource | ( | DWORD | source | ) |
Definition at line 1271 of file pdh_main.c.
PDH_STATUS WINAPI PdhValidatePathA | ( | LPCSTR | path | ) |
Definition at line 1051 of file pdh_main.c.
Referenced by PdhValidatePathExA(), and test_PdhValidatePathA().
PDH_STATUS WINAPI PdhValidatePathExA | ( | PDH_HLOG | source, |
LPCSTR | path | ||
) |
Definition at line 1107 of file pdh_main.c.
Referenced by init_function_ptrs().
PDH_STATUS WINAPI PdhValidatePathExW | ( | PDH_HLOG | source, |
LPCWSTR | path | ||
) |
Definition at line 1122 of file pdh_main.c.
Referenced by init_function_ptrs().
PDH_STATUS WINAPI PdhValidatePathW | ( | LPCWSTR | path | ) |
Definition at line 1077 of file pdh_main.c.
Referenced by PdhValidatePathA(), PdhValidatePathExW(), and test_PdhValidatePathW().
PDH_STATUS WINAPI PdhVbAddCounter | ( | PDH_HQUERY | query, |
LPCSTR | path, | ||
PDH_HCOUNTER * | counter | ||
) |
Definition at line 1095 of file pdh_main.c.
|
static |
WINE_DEFAULT_DEBUG_CHANNEL | ( | pdh | ) |
Definition at line 209 of file pdh_main.c.
Referenced by PdhAddCounterW(), PdhLookupPerfIndexByNameW(), PdhLookupPerfNameByIndexW(), and PdhValidatePathW().
Definition at line 184 of file pdh_main.c.
Definition at line 181 of file pdh_main.c.
Definition at line 186 of file pdh_main.c.
|
static |
Definition at line 44 of file pdh_main.c.
Referenced by collect_query_thread(), DllMain(), PdhAddCounterW(), PdhCalculateCounterFromRawValue(), PdhCloseQuery(), PdhCollectQueryData(), PdhCollectQueryDataEx(), PdhCollectQueryDataWithTime(), PdhGetCounterInfoA(), PdhGetCounterInfoW(), PdhGetCounterTimeBase(), PdhGetFormattedCounterValue(), PdhGetRawCounterValue(), PdhRemoveCounter(), and PdhSetCounterScaleFactor().
|
static |
Definition at line 45 of file pdh_main.c.