Disk Access Monitor lazarus / 34-Windows ---------------------------------------------------------------------- fatmonk · 2018-07-13 16:34 I'm looking to build a little tool that shows disk I/O in Windows (or even cross-platform if possible). I've found this page (https://code.msdn.microsoft.com/windowsapps/Disk-Activity-Task-bar- af8ae245) which describes using PerformanceCounters to do this, but I can't find an equivalent in Lazarus. Thanks, Dan ---------------------------------------------------------------------- ASerge · 2018-07-13 19:37 Quote from: fatmonk on July 13, 2018, 06:34:02 pm...which describes using PerformanceCounters to do this, but I can't find an equivalent in Lazarus. I don't know. Try to write yourself, using WinApi. ---------------------------------------------------------------------- fatmonk · 2018-07-16 16:38 Sorry, I should have been clearer in my question... I wasn't looking for equivalent sample code (I am planning to try writing equivalent sample code myself). What I am looking for is an equivalent library for FPC/Lazarus that would allow me to access the Windows PerformanceCounters. I guess from your reply that WinApi is the way to go, but I can't find any calls that seem equivalent to the ones used in the VB sample code, for example: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i PerformanceCounterCategory.Exists("LogicalDisk")ReadCounter = New PerformanceCounter("LogicalDisk", "Disk Read Bytes/sec", "_Total")R = ReadCounter.NextValue Sorry, my original question was pretty badly written. -FM ---------------------------------------------------------------------- Thaddy · 2018-07-16 16:49 Try this https://tondrej.blogspot.com/2004/09/perfmon-ready.html It is for Delphi but in mode delphi there is no reason it should not work. (D7 is 99.9% compatible )