ReactOS 0.4.16-dev-1020-gf135cab
|
#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 120 of file pdh_main.c.
#define PDH_MAGIC_QUERY 0x50444830 /* 'PDH0' */ |
Definition at line 141 of file pdh_main.c.
#define TYPE_PROCESSOR_TIME |
Definition at line 203 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 207 of file pdh_main.c.
Definition at line 191 of file pdh_main.c.
Definition at line 447 of file pdh_main.c.
Referenced by collect_query_thread(), PdhCollectQueryData(), and PdhCollectQueryDataWithTime().
Definition at line 491 of file pdh_main.c.
Referenced by PdhCollectQueryDataEx().
Definition at line 197 of file pdh_main.c.
Definition at line 122 of file pdh_main.c.
Referenced by PdhAddCounterW().
Definition at line 154 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 134 of file pdh_main.c.
Referenced by PdhCloseQuery(), and PdhRemoveCounter().
Definition at line 167 of file pdh_main.c.
Referenced by PdhCloseQuery().
Definition at line 74 of file pdh_main.c.
|
static |
Definition at line 338 of file pdh_main.c.
Referenced by PdhCalculateCounterFromRawValue(), and PdhGetFormattedCounterValue().
Definition at line 218 of file pdh_main.c.
Referenced by pdh_match_path().
Definition at line 227 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 244 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 266 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 316 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 1300 of file pdh_main.c.
PDH_STATUS WINAPI PdhBindInputDataSourceW | ( | PDH_HLOG * | source, |
const WCHAR * | filenamelist | ||
) |
Definition at line 1309 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 370 of file pdh_main.c.
PDH_STATUS WINAPI PdhCloseQuery | ( | PDH_HQUERY | handle | ) |
Definition at line 399 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 466 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 522 of file pdh_main.c.
Referenced by test_PdhCollectQueryDataEx().
PDH_STATUS WINAPI PdhCollectQueryDataWithTime | ( | PDH_HQUERY | handle, |
LONGLONG * | timestamp | ||
) |
Definition at line 581 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 1245 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 1259 of file pdh_main.c.
PDH_STATUS WINAPI PdhExpandCounterPathA | ( | LPCSTR | szWildCardPath, |
LPSTR | mszExpandedPathList, | ||
LPDWORD | pcchPathListLength | ||
) |
Definition at line 635 of file pdh_main.c.
PDH_STATUS WINAPI PdhExpandCounterPathW | ( | LPCWSTR | szWildCardPath, |
LPWSTR | mszExpandedPathList, | ||
LPDWORD | pcchPathListLength | ||
) |
Definition at line 644 of file pdh_main.c.
PDH_STATUS WINAPI PdhExpandWildCardPathA | ( | LPCSTR | szDataSource, |
LPCSTR | szWildCardPath, | ||
LPSTR | mszExpandedPathList, | ||
LPDWORD | pcchPathListLength, | ||
DWORD | dwFlags | ||
) |
Definition at line 617 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 626 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 653 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 695 of file pdh_main.c.
Referenced by test_PdhGetCounterInfoW().
PDH_STATUS WINAPI PdhGetCounterTimeBase | ( | PDH_HCOUNTER | handle, |
LONGLONG * | base | ||
) |
Definition at line 737 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 774 of file pdh_main.c.
Referenced by test_PdhCollectQueryDataEx(), and test_PdhGetFormattedCounterValue().
PDH_STATUS WINAPI PdhGetLogFileTypeA | ( | const char * | log, |
DWORD * | type | ||
) |
Definition at line 1282 of file pdh_main.c.
PDH_STATUS WINAPI PdhGetLogFileTypeW | ( | const WCHAR * | log, |
DWORD * | type | ||
) |
Definition at line 1291 of file pdh_main.c.
PDH_STATUS WINAPI PdhGetRawCounterValue | ( | PDH_HCOUNTER | handle, |
LPDWORD | type, | ||
PPDH_RAW_COUNTER | value | ||
) |
Definition at line 808 of file pdh_main.c.
Referenced by test_PdhGetRawCounterValue().
PDH_STATUS WINAPI PdhLookupPerfIndexByNameA | ( | LPCSTR | machine, |
LPCSTR | name, | ||
LPDWORD | index | ||
) |
Definition at line 840 of file pdh_main.c.
Referenced by test_PdhLookupPerfIndexByNameA().
PDH_STATUS WINAPI PdhLookupPerfIndexByNameW | ( | LPCWSTR | machine, |
LPCWSTR | name, | ||
LPDWORD | index | ||
) |
Definition at line 865 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 892 of file pdh_main.c.
Referenced by test_PdhLookupPerfNameByIndexA().
PDH_STATUS WINAPI PdhLookupPerfNameByIndexW | ( | LPCWSTR | machine, |
DWORD | index, | ||
LPWSTR | buffer, | ||
LPDWORD | size | ||
) |
Definition at line 920 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 1139 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 1190 of file pdh_main.c.
Referenced by PdhMakeCounterPathA().
PDH_STATUS WINAPI PdhOpenQueryA | ( | LPCSTR | source, |
DWORD_PTR | userdata, | ||
PDH_HQUERY * | query | ||
) |
Definition at line 959 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 977 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 1003 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 1026 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 1273 of file pdh_main.c.
PDH_STATUS WINAPI PdhValidatePathA | ( | LPCSTR | path | ) |
Definition at line 1053 of file pdh_main.c.
Referenced by PdhValidatePathExA(), and test_PdhValidatePathA().
PDH_STATUS WINAPI PdhValidatePathExA | ( | PDH_HLOG | source, |
LPCSTR | path | ||
) |
Definition at line 1109 of file pdh_main.c.
Referenced by init_function_ptrs().
PDH_STATUS WINAPI PdhValidatePathExW | ( | PDH_HLOG | source, |
LPCWSTR | path | ||
) |
Definition at line 1124 of file pdh_main.c.
Referenced by init_function_ptrs().
PDH_STATUS WINAPI PdhValidatePathW | ( | LPCWSTR | path | ) |
Definition at line 1079 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 1097 of file pdh_main.c.
|
static |
WINE_DEFAULT_DEBUG_CHANNEL | ( | pdh | ) |
Definition at line 211 of file pdh_main.c.
Referenced by PdhAddCounterW(), PdhLookupPerfIndexByNameW(), PdhLookupPerfNameByIndexW(), and PdhValidatePathW().
Definition at line 186 of file pdh_main.c.
Definition at line 183 of file pdh_main.c.
Definition at line 188 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.