7 #ifndef _INC_cPerfMon_H
8 #define _INC_cPerfMon_H
13 #if defined(_WIN32) && defined(_MSC_VER) && ! defined(UNDER_CE)
14 #include "../GrayLibBase.h"
32 PDH_HCOUNTER m_hCounter;
34 cPerfMonCounter() noexcept
39 HRESULT GetCounterValue(OUT PDH_FMT_COUNTERVALUE& FmtValue, DWORD dwFormat)
const;
54 cPerfMonQuery() noexcept;
57 HRESULT OpenPerf(const
FILECHAR_t* pszDataSource =
nullptr, DWORD_PTR dwUserData = 0);
60 HRESULT AddPerfCounter( OUT cPerfMonCounter& Counter, const
FILECHAR_t* pszDataSource, DWORD_PTR dwUserData = 0);
#define GRAYLIB_LINK
Definition: GrayLibBase.h:35
INT32 HRESULT
_WIN32 style error codes. INT32
Definition: SysTypes.h:465
#define HANDLE_NULL
Invalid OS handle for _WIN32. Not invalid OS handle for linux.
Definition: cOSHandle.h:21
#define UNITTEST_FRIEND(n)
Define this in the class body to be unit tested. Allow the unit test to access private/protected stuf...
Definition: cUnitTestDecl.h:17
UNITTEST2_PREDEF(cQuadtree)
char FILECHAR_t
a UTF8 char in a file name. like TCHAR
Definition: FileName.h:22