Commit e1c59cc5 authored by Mohamad Al-Jaf's avatar Mohamad Al-Jaf Committed by Alexandre Julliard

pdh: Implement PdhVbGetDoubleCounterValue().

parent d7d94ed0
......@@ -145,7 +145,7 @@
@ stub PdhVbCreateCounterPathList
@ stub PdhVbGetCounterPathElements
@ stub PdhVbGetCounterPathFromList
@ stub PdhVbGetDoubleCounterValue
@ stdcall PdhVbGetDoubleCounterValue(ptr ptr)
@ stub PdhVbGetLogFileSize
@ stub PdhVbGetOneCounterPath
@ stub PdhVbIsGoodStatus
......
......@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment