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 @@ ...@@ -145,7 +145,7 @@
@ stub PdhVbCreateCounterPathList @ stub PdhVbCreateCounterPathList
@ stub PdhVbGetCounterPathElements @ stub PdhVbGetCounterPathElements
@ stub PdhVbGetCounterPathFromList @ stub PdhVbGetCounterPathFromList
@ stub PdhVbGetDoubleCounterValue @ stdcall PdhVbGetDoubleCounterValue(ptr ptr)
@ stub PdhVbGetLogFileSize @ stub PdhVbGetLogFileSize
@ stub PdhVbGetOneCounterPath @ stub PdhVbGetOneCounterPath
@ stub PdhVbIsGoodStatus @ stub PdhVbIsGoodStatus
......
...@@ -1063,6 +1063,23 @@ PDH_STATUS WINAPI PdhVbAddCounter( PDH_HQUERY query, LPCSTR path, PDH_HCOUNTER * ...@@ -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.@) * PdhValidatePathExA (PDH.@)
*/ */
PDH_STATUS WINAPI PdhValidatePathExA( PDH_HLOG source, LPCSTR path ) 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