GetProcessIoCounters function

Retrieves accounting information for all I/O operations performed by the specified process.

Syntax

BOOL GetProcessIoCounters(
  HANDLE       hProcess,
  PIO_COUNTERS lpIoCounters
);

Parameters

hProcess

A handle to the process. The handle must have the PROCESS_QUERY_INFORMATION or PROCESS_QUERY_LIMITED_INFORMATION access right. For more information, see Process Security and Access Rights.

Windows Server 2003 and Windows XP:  The handle must have the PROCESS_QUERY_INFORMATION access right.

lpIoCounters

A 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

   
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header winbase.h (include Windows.h)
Library Kernel32.lib
DLL Kernel32.dll

See Also

IO_COUNTERS

Process and Thread Functions