mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 09:41:41 +00:00
pdh: Implement PdhVbGetDoubleCounterValue().
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54618
This commit is contained in:
parent
d7d94ed0df
commit
e1c59cc562
|
@ -145,7 +145,7 @@
|
|||
@ stub PdhVbCreateCounterPathList
|
||||
@ stub PdhVbGetCounterPathElements
|
||||
@ stub PdhVbGetCounterPathFromList
|
||||
@ stub PdhVbGetDoubleCounterValue
|
||||
@ stdcall PdhVbGetDoubleCounterValue(ptr ptr)
|
||||
@ stub PdhVbGetLogFileSize
|
||||
@ stub PdhVbGetOneCounterPath
|
||||
@ stub PdhVbIsGoodStatus
|
||||
|
|
|
@ -1062,6 +1062,23 @@ PDH_STATUS WINAPI PdhVbAddCounter( PDH_HQUERY query, LPCSTR path, PDH_HCOUNTER *
|
|||
return PDH_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
* 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.@)
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue