Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

78 lines
2.2 KiB

/*----------------------------------------------------------------------------
LoadData.h
Header file for return structures to cpsmon.cpp
Copyright (c) 1997-1998 Microsoft Corporation
All rights reserved.
Authors:
t-geetat Geeta Tarachandani
History:
6/2/97 t-geetat Created
--------------------------------------------------------------------------*/
#include <winperf.h>
#define QUERY_GLOBAL 1
#define QUERY_ITEMS 2
#define QUERY_FOREIGN 3
#define QUERY_COSTLY 4
typedef struct _CPSMON_DATA_DEFINITION
{
PERF_OBJECT_TYPE m_CpsMonObjectType;
PERF_COUNTER_DEFINITION m_CpsMonTotalHits;
PERF_COUNTER_DEFINITION m_CpsMonNoUpgrade;
PERF_COUNTER_DEFINITION m_CpsMonDeltaUpgrade;
PERF_COUNTER_DEFINITION m_CpsMonFullUpgrade;
PERF_COUNTER_DEFINITION m_CpsMonErrors;
PERF_COUNTER_DEFINITION m_CpsMonTotalHitsPerSec;
PERF_COUNTER_DEFINITION m_CpsMonNoUpgradePerSec;
PERF_COUNTER_DEFINITION m_CpsMonDeltaUpgradePerSec;
PERF_COUNTER_DEFINITION m_CpsMonFullUpgradePerSec;
PERF_COUNTER_DEFINITION m_CpsMonErrorsPerSecs;
} CPSMON_DATA_DEFINITION;
#define NUM_OF_INFO_COUNTERS (( sizeof(CPSMON_DATA_DEFINITION) - \
sizeof(PERF_OBJECT_TYPE)) / \
sizeof(PERF_COUNTER_DEFINITION) )
extern CPSMON_DATA_DEFINITION g_CpsMonDataDef;
// The following is for alignment
typedef struct _INFO_COUNTER_BLOCK
{
PERF_COUNTER_BLOCK m_PerfCounterBlock;
LARGE_INTEGER DummyForAlignment;
} INFO_COUNTER_BLOCK;
typedef struct _CPSMON_COUNTERS
{
INFO_COUNTER_BLOCK m_CounterBlock;
DWORD m_dwTotalHits;
DWORD m_dwNoUpgrade;
DWORD m_dwDeltaUpgrade;
DWORD m_dwFullUpgrade;
DWORD m_dwErrors;
DWORD m_dwTotalHitsPerSec;
DWORD m_dwNoUpgradePerSec;
DWORD m_dwDeltaUpgradePerSec;
DWORD m_dwFullUpgradePerSec;
DWORD m_dwErrorsPerSec;
} CPSMON_COUNTERS;
BOOL UpdateDataDefFromRegistry();
void InitializeDataDef();
DWORD GetQueryType ( IN LPWSTR lpValue );
BOOL IsNumberInUnicodeList ( IN DWORD dwNumber, IN LPWSTR lpwszUnicodeList );