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
e1c59cc5
Commit
e1c59cc5
authored
Nov 01, 2022
by
Mohamad Al-Jaf
Committed by
Alexandre Julliard
Mar 08, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pdh: Implement PdhVbGetDoubleCounterValue().
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=54618
parent
d7d94ed0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletion
+18
-1
pdh.spec
dlls/pdh/pdh.spec
+1
-1
pdh_main.c
dlls/pdh/pdh_main.c
+17
-0
No files found.
dlls/pdh/pdh.spec
View file @
e1c59cc5
...
...
@@ -145,7 +145,7 @@
@ stub PdhVbCreateCounterPathList
@ stub PdhVbGetCounterPathElements
@ stub PdhVbGetCounterPathFromList
@ st
ub PdhVbGetDoubleCounterValue
@ st
dcall PdhVbGetDoubleCounterValue(ptr ptr)
@ stub PdhVbGetLogFileSize
@ stub PdhVbGetOneCounterPath
@ stub PdhVbIsGoodStatus
...
...
dlls/pdh/pdh_main.c
View file @
e1c59cc5
...
...
@@ -1063,6 +1063,23 @@ PDH_STATUS WINAPI PdhVbAddCounter( PDH_HQUERY query, LPCSTR path, PDH_HCOUNTER *
}
/***********************************************************************
* PdhVbGetDoubleCounterValue (PDH.@)
*/
double
WINAPI
PdhVbGetDoubleCounterValue
(
PDH_HCOUNTER
handle
,
PDH_STATUS
*
counter_status
)
{
PDH_FMT_COUNTERVALUE
value
;
PDH_STATUS
status
;
TRACE
(
"%p %p
\n
"
,
handle
,
counter_status
);
memset
(
&
value
,
0
,
sizeof
(
value
)
);
status
=
PdhGetFormattedCounterValue
(
handle
,
PDH_FMT_DOUBLE
,
NULL
,
&
value
);
if
(
counter_status
)
*
counter_status
=
status
;
return
value
.
u
.
doubleValue
;
}
/***********************************************************************
* PdhValidatePathExA (PDH.@)
*/
PDH_STATUS
WINAPI
PdhValidatePathExA
(
PDH_HLOG
source
,
LPCSTR
path
)
...
...
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