Platform SDK: DLLs, Processes, and Threads

GetProcessIoCounters

The GetProcessIoCounters function retrieves accounting information for all I/O operations performed by the specified process.

BOOL GetProcessIoCounters(
  HANDLE hProcess,           // handle to process
  PIO_COUNTERS lpIoCounters  // I/O accouting information
);

Parameters

hProcess
[in] Handle to the process. The handle must have the PROCESS_QUERY access right.
lpIoCounters
[out] Pointer to an IO_COUNTERS structure that receives the I/O accounting information for the process.

Return Value

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Unsupported.
  Header: Declared in Winbase.h; include Windows.h.
  Library: Use Kernel32.lib.

See Also

Processes and Threads Overview, Process and Thread Functions, IO_COUNTERS