Alternate
e697dbe9c5997e35395fe158628dd8c5209481da
for Visual Studio 2022 and Windows 11.
読み取り中…
検索中…
一致する文字列を見つけられません
PerformanceDataHelper.h
[詳解]
1
// ----------------------------------------------------------------------------
6
7
#pragma once
8
9
#include <Pdh.h>
10
#include "
WindowsLibrary.h
"
11
#include "
TString.h
"
12
#include "
Array.hpp
"
13
14
namespace
alt
15
{
16
class
DLL_DECLSPEC
PerformanceDataItem
:
public
WindowsLibrary
17
{
18
public
:
22
APIENTRY
PerformanceDataItem
(HQUERY hQuery,
TString
key);
23
25
APIENTRY
~PerformanceDataItem
();
26
31
bool
APIENTRY AddCounter ();
32
35
TString
& APIENTRY GetKey ();
36
49
bool
APIENTRY GetValue (DWORD dwFormat, PDH_FMT_COUNTERVALUE& value);
50
51
private
:
52
PerformanceDataItem
() =
delete
;
53
54
HQUERY
_hQuery
;
55
HCOUNTER
_hCounter
;
56
TString
_counterPath
;
57
};
58
59
class
DLL_DECLSPEC
PerformanceDataHelper
:
public
WindowsLibrary
60
{
61
public
:
63
APIENTRY
PerformanceDataHelper
();
64
66
APIENTRY
~PerformanceDataHelper
();
67
72
bool
APIENTRY Open ();
73
78
bool
APIENTRY Close ();
79
83
PerformanceDataItem
& APIENTRY CreateItem (
TString
key);
84
89
bool
APIENTRY Query ();
90
91
private
:
92
HQUERY
_hQuery
;
93
};
94
}
Array.hpp
可変配列に関するクラス
DLL_DECLSPEC
#define DLL_DECLSPEC
Definition:
framework.h:17
TString.h
文字列に関するWindowsAPIを集約したクラス
WindowsLibrary.h
WindowsAPIを集約したプロジェクトファイル
alt::PerformanceDataHelper
Definition:
PerformanceDataHelper.h:60
alt::PerformanceDataHelper::_hQuery
HQUERY _hQuery
Definition:
PerformanceDataHelper.h:92
alt::PerformanceDataItem
Definition:
PerformanceDataHelper.h:17
alt::PerformanceDataItem::_counterPath
TString _counterPath
Definition:
PerformanceDataHelper.h:56
alt::PerformanceDataItem::_hCounter
HCOUNTER _hCounter
Definition:
PerformanceDataHelper.h:55
alt::PerformanceDataItem::_hQuery
HQUERY _hQuery
Definition:
PerformanceDataHelper.h:54
alt::PerformanceDataItem::PerformanceDataItem
PerformanceDataItem()=delete
alt::TString
文字列に関するWindowsAPIを集約したクラス
Definition:
TString.h:17
alt::WindowsLibrary
プロジェクト共通基底クラス
Definition:
WindowsLibrary.h:34
alt
Definition:
DBLibrary.h:12
WindowsLibrary
PerformanceDataHelper.h
構築:
1.9.6