pdh: Implement PdhVbGetDoubleCounterValue().

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54618
This commit is contained in:
Mohamad Al-Jaf 2022-11-01 20:49:41 -05:00 committed by Alexandre Julliard
parent d7d94ed0df
commit e1c59cc562
2 changed files with 18 additions and 1 deletions

View file

@ -145,7 +145,7 @@
@ stub PdhVbCreateCounterPathList
@ stub PdhVbGetCounterPathElements
@ stub PdhVbGetCounterPathFromList
@ stub PdhVbGetDoubleCounterValue
@ stdcall PdhVbGetDoubleCounterValue(ptr ptr)
@ stub PdhVbGetLogFileSize
@ stub PdhVbGetOneCounterPath
@ stub PdhVbIsGoodStatus

View file

@ -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.@)
*/