https://bugs.winehq.org/show_bug.cgi?id=50728
Eric eric.wheez@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|6.2 |9.13 Component|-unknown |pdh
--- Comment #3 from Eric eric.wheez@gmail.com --- I believe this might just be an unimplemented "PdhVbAddCounter" function in wine's own pdh.dll. https://source.winehq.org/WineAPI/pdh.html https://github.com/wine-mirror/wine/blob/dcd1eeb256c2258bf7610a32f0c676979dd...
From the terminal's output when running wine with built-in pdh.dll: wine VARA.exe ---snip--- 01b0:fixme:pdh:PdhVbAddCounter 0194B940, "\ (0)\% Processor Time", 0064F974: stub! 01b0:fixme:pdh:PdhVbAddCounter 0194B940, "\ (1)\% Processor Time", 0064F974: stub! ---snip---
Some background: I googled "find cpu load vb6" I found this proposed VB6 code to find CPU %: https://www.vbforums.com/showthread.php?718429-Cpu-Utilization-in-vb6&s=... These lines of the proposed VB6 code caught my eye: - "Set query = WMI.ExecQuery("SELECT * FROM Win32_PerfFormattedData_Counters_ProcessorInformation")" - "Set query1 = WMI.ExecQuery("Select * from Win32_Processor")"
Googling "Win32_PerfFormattedData_Counters_ProcessorInformation" led me to MSDN pages for "Performance Counter Classes" (https://learn.microsoft.com/en-us/windows/win32/cimwin32prov/performance-cou...) -> "WmiPerfClass" -> "Performance Counters Version 6.0" -> "Using Performance Counters" -> "Performance Counter Consumer APIs" -> " Performance Data Helper (PDH) library" (https://learn.microsoft.com/en-us/windows/win32/perfctrs/using-the-pdh-funct...).
Other notes: I'm not sure why using native pdh.dll's doesn't work (modern pdh.dll and NT4 pdh.dll don't seem to help the CPU % calculation). In 2020, only the old PDH dll from NT4 would allow VARA to run. These days in 2024, a native PDH doesn't seem to be required to run VARA.