Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
8de2464c
Commit
8de2464c
authored
Jul 11, 2018
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jul 11, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Add more definitions for performance counters.
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
72a7de1a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
83 additions
and
2 deletions
+83
-2
winperf.h
include/winperf.h
+83
-2
No files found.
include/winperf.h
View file @
8de2464c
...
@@ -67,11 +67,17 @@
...
@@ -67,11 +67,17 @@
#define PERF_DETAIL_EXPERT 300
#define PERF_DETAIL_EXPERT 300
#define PERF_DETAIL_WIZARD 400
#define PERF_DETAIL_WIZARD 400
#include <pshpack8.h>
/* Performance data structure header
/* Performance data structure header
* returned in answer to HKEY_PERFORMANCE_DATA request
* returned in answer to HKEY_PERFORMANCE_DATA request
*/
*/
typedef
struct
_PERF_DATA_BLOCK
{
#define PERF_DATA_VERSION 1
#define PERF_DATA_REVISION 1
typedef
struct
_PERF_DATA_BLOCK
{
WCHAR
Signature
[
4
];
WCHAR
Signature
[
4
];
DWORD
LittleEndian
;
DWORD
LittleEndian
;
DWORD
Version
;
DWORD
Version
;
...
@@ -86,6 +92,81 @@ typedef struct _PERF_DATA_BLOCK {
...
@@ -86,6 +92,81 @@ typedef struct _PERF_DATA_BLOCK {
LARGE_INTEGER
PerfTime100nSec
;
LARGE_INTEGER
PerfTime100nSec
;
DWORD
SystemNameLength
;
DWORD
SystemNameLength
;
DWORD
SystemNameOffset
;
DWORD
SystemNameOffset
;
}
PERF_DATA_BLOCK
,
*
PPERF_DATA_BLOCK
,
*
LPPERF_DATA_BLOCK
;
}
PERF_DATA_BLOCK
,
*
PPERF_DATA_BLOCK
;
#define PERF_NO_INSTANCES -1
typedef
struct
_PERF_OBJECT_TYPE
{
DWORD
TotalByteLength
;
DWORD
DefinitionLength
;
DWORD
HeaderLength
;
DWORD
ObjectNameTitleIndex
;
#ifdef _WIN64
DWORD
ObjectNameTitle
;
#else
LPWSTR
ObjectNameTitle
;
#endif
DWORD
ObjectHelpTitleIndex
;
#ifdef _WIN64
DWORD
ObjectHelpTitle
;
#else
LPWSTR
ObjectHelpTitle
;
#endif
DWORD
DetailLevel
;
DWORD
NumCounters
;
LONG
DefaultCounter
;
LONG
NumInstances
;
DWORD
CodePage
;
LARGE_INTEGER
PerfTime
;
LARGE_INTEGER
PerfFreq
;
}
PERF_OBJECT_TYPE
,
*
PPERF_OBJECT_TYPE
;
typedef
struct
_PERF_COUNTER_DEFINITION
{
DWORD
ByteLength
;
DWORD
CounterNameTitleIndex
;
#ifdef _WIN64
DWORD
CounterNameTitle
;
#else
LPWSTR
CounterNameTitle
;
#endif
DWORD
CounterHelpTitleIndex
;
#ifdef _WIN64
DWORD
CounterHelpTitle
;
#else
LPWSTR
CounterHelpTitle
;
#endif
LONG
DefaultScale
;
DWORD
DetailLevel
;
DWORD
CounterType
;
DWORD
CounterSize
;
DWORD
CounterOffset
;
}
PERF_COUNTER_DEFINITION
,
*
PPERF_COUNTER_DEFINITION
;
#define PERF_NO_UNIQUE_ID -1
typedef
struct
_PERF_INSTANCE_DEFINITION
{
DWORD
ByteLength
;
DWORD
ParentObjectTitleIndex
;
DWORD
ParentObjectInstance
;
LONG
UniqueID
;
DWORD
NameOffset
;
DWORD
NameLength
;
}
PERF_INSTANCE_DEFINITION
,
*
PPERF_INSTANCE_DEFINITION
;
typedef
struct
_PERF_COUNTER_BLOCK
{
DWORD
ByteLength
;
}
PERF_COUNTER_BLOCK
,
*
PPERF_COUNTER_BLOCK
;
#include <poppack.h>
typedef
DWORD
(
APIENTRY
PM_OPEN_PROC
)(
LPWSTR
);
typedef
DWORD
(
APIENTRY
PM_COLLECT_PROC
)(
LPWSTR
,
LPVOID
*
,
LPDWORD
,
LPDWORD
);
typedef
DWORD
(
APIENTRY
PM_CLOSE_PROC
)(
void
);
typedef
DWORD
(
APIENTRY
PM_QUERY_PROC
)(
LPDWORD
,
LPVOID
*
,
LPDWORD
,
LPDWORD
);
#endif
/* _WINPERF_ */
#endif
/* _WINPERF_ */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment