6

I don't know if I didn't use the right words to search on web but I didn't find the solution to watch how much my application already read and wrote on disk.

Some one can help me with this ?

tks

[Resolved]

If some one need the function sign.

type
  _IO_COUNTERS = record
    ReadOperationCount : LONGLONG;
    WriteOperationCount : LONGLONG;
    OtherOperationCount : LONGLONG;
    ReadTransferCount : LONGLONG;
    WriteTransferCount : LONGLONG;
    OtherTransferCount : LONGLONG;
  end;
  TIoCounters = _IO_COUNTERS;

  function GetProcessIoCounters(hProcess: THandle; var lpIoCounters: TIoCounters): BOOL; stdcall external kernel32;
Rodrigo Farias Rezino
  • 2,687
  • 3
  • 33
  • 60

1 Answers1

7

if you want get this info programmatically you can use the GetProcessIoCounters function. Another alternative is using the WMI , see the Win32_Process class and check these properties (WriteOperationCount, WriteTransferCount, ReadTransferCount, ReadOperationCount).

RRUZ
  • 134,889
  • 20
  • 356
  • 483