ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

pdh_main.c File Reference
#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/list.h"
#include "wine/unicode.h"

Go to the source code of this file.

Data Structures

union  value
struct  counter
struct  query
struct  source

Defines

#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#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)

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (pdh)
static voidheap_alloc (SIZE_T size)
static voidheap_alloc_zero (SIZE_T size)
static void heap_free (LPVOID mem)
static WCHARpdh_strdup (const WCHAR *src)
static WCHARpdh_strdup_aw (const char *src)
BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
static struct countercreate_counter (void)
static void destroy_counter (struct counter *counter)
static struct querycreate_query (void)
static void destroy_query (struct query *query)
static void CALLBACK collect_processor_time (struct counter *counter)
static void CALLBACK collect_uptime (struct counter *counter)
static BOOL pdh_match_path (LPCWSTR fullpath, LPCWSTR path)
PDH_STATUS WINAPI PdhAddCounterA (PDH_HQUERY query, LPCSTR path, DWORD_PTR userdata, PDH_HCOUNTER *counter)
PDH_STATUS WINAPI PdhAddCounterW (PDH_HQUERY hquery, LPCWSTR path, DWORD_PTR userdata, PDH_HCOUNTER *hcounter)
PDH_STATUS WINAPI PdhAddEnglishCounterA (PDH_HQUERY query, LPCSTR path, DWORD_PTR userdata, PDH_HCOUNTER *counter)
PDH_STATUS WINAPI PdhAddEnglishCounterW (PDH_HQUERY query, LPCWSTR path, DWORD_PTR userdata, PDH_HCOUNTER *counter)
static PDH_STATUS format_value (struct counter *counter, DWORD format, union value *raw1, union value *raw2, PDH_FMT_COUNTERVALUE *value)
PDH_STATUS WINAPI PdhCalculateCounterFromRawValue (PDH_HCOUNTER handle, DWORD format, PPDH_RAW_COUNTER raw1, PPDH_RAW_COUNTER raw2, PPDH_FMT_COUNTERVALUE value)
PDH_STATUS WINAPI PdhCloseQuery (PDH_HQUERY handle)
static void collect_query_data (struct query *query)
PDH_STATUS WINAPI PdhCollectQueryData (PDH_HQUERY handle)
static DWORD CALLBACK collect_query_thread (void *arg)
PDH_STATUS WINAPI PdhCollectQueryDataEx (PDH_HQUERY handle, DWORD interval, HANDLE event)
PDH_STATUS WINAPI PdhCollectQueryDataWithTime (PDH_HQUERY handle, LONGLONG *timestamp)
PDH_STATUS WINAPI PdhExpandWildCardPathA (LPCSTR szDataSource, LPCSTR szWildCardPath, LPSTR mszExpandedPathList, LPDWORD pcchPathListLength, DWORD dwFlags)
PDH_STATUS WINAPI PdhExpandWildCardPathW (LPCWSTR szDataSource, LPCWSTR szWildCardPath, LPWSTR mszExpandedPathList, LPDWORD pcchPathListLength, DWORD dwFlags)
PDH_STATUS WINAPI PdhGetCounterInfoA (PDH_HCOUNTER handle, BOOLEAN text, LPDWORD size, PPDH_COUNTER_INFO_A info)
PDH_STATUS WINAPI PdhGetCounterInfoW (PDH_HCOUNTER handle, BOOLEAN text, LPDWORD size, PPDH_COUNTER_INFO_W info)
PDH_STATUS WINAPI PdhGetCounterTimeBase (PDH_HCOUNTER handle, LONGLONG *base)
PDH_STATUS WINAPI PdhGetDllVersion (LPDWORD version)
PDH_STATUS WINAPI PdhGetFormattedCounterValue (PDH_HCOUNTER handle, DWORD format, LPDWORD type, PPDH_FMT_COUNTERVALUE value)
PDH_STATUS WINAPI PdhGetRawCounterValue (PDH_HCOUNTER handle, LPDWORD type, PPDH_RAW_COUNTER value)
PDH_STATUS WINAPI PdhLookupPerfIndexByNameA (LPCSTR machine, LPCSTR name, LPDWORD index)
PDH_STATUS WINAPI PdhLookupPerfIndexByNameW (LPCWSTR machine, LPCWSTR name, LPDWORD index)
PDH_STATUS WINAPI PdhLookupPerfNameByIndexA (LPCSTR machine, DWORD index, LPSTR buffer, LPDWORD size)
PDH_STATUS WINAPI PdhLookupPerfNameByIndexW (LPCWSTR machine, DWORD index, LPWSTR buffer, LPDWORD size)
PDH_STATUS WINAPI PdhOpenQueryA (LPCSTR source, DWORD_PTR userdata, PDH_HQUERY *query)
PDH_STATUS WINAPI PdhOpenQueryW (LPCWSTR source, DWORD_PTR userdata, PDH_HQUERY *handle)
PDH_STATUS WINAPI PdhRemoveCounter (PDH_HCOUNTER handle)
PDH_STATUS WINAPI PdhSetCounterScaleFactor (PDH_HCOUNTER handle, LONG factor)
PDH_STATUS WINAPI PdhValidatePathA (LPCSTR path)
static PDH_STATUS validate_path (LPCWSTR path)
PDH_STATUS WINAPI PdhValidatePathW (LPCWSTR path)
PDH_STATUS WINAPI PdhValidatePathExA (PDH_HLOG source, LPCSTR path)
PDH_STATUS WINAPI PdhValidatePathExW (PDH_HLOG source, LPCWSTR path)
PDH_STATUS WINAPI PdhMakeCounterPathA (PDH_COUNTER_PATH_ELEMENTS_A *e, LPSTR buffer, LPDWORD buflen, DWORD flags)
PDH_STATUS WINAPI PdhMakeCounterPathW (PDH_COUNTER_PATH_ELEMENTS_W *e, LPWSTR buffer, LPDWORD buflen, DWORD flags)
PDH_STATUS WINAPI PdhEnumObjectItemsA (LPCSTR szDataSource, LPCSTR szMachineName, LPCSTR szObjectName, LPSTR mszCounterList, LPDWORD pcchCounterListLength, LPSTR mszInstanceList, LPDWORD pcchInstanceListLength, DWORD dwDetailLevel, DWORD dwFlags)
PDH_STATUS WINAPI PdhEnumObjectItemsW (LPCWSTR szDataSource, LPCWSTR szMachineName, LPCWSTR szObjectName, LPWSTR mszCounterList, LPDWORD pcchCounterListLength, LPWSTR mszInstanceList, LPDWORD pcchInstanceListLength, DWORD dwDetailLevel, DWORD dwFlags)
PDH_STATUS WINAPI PdhSetDefaultRealTimeDataSource (DWORD source)

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_uptime []
static struct source counter_sources []

Generated on Sat May 26 2012 05:15:37 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.