On Tue Mar 7 08:30:06 2023 +0000, Hans Leidekker wrote:
This could be simplified like this: `` 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; } ``
This is definitely simpler. Thanks for the review!