GetProcessIoCounters function (Windows)

Switch View :
ScriptFree
GetProcessIoCounters function

Applies to: desktop apps only

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

Syntax

BOOL WINAPI GetProcessIoCounters(
  __in   HANDLE hProcess,
  __out  PIO_COUNTERS lpIoCounters
);

Parameters

hProcess [in]

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 [out]

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

Minimum supported server

Windows Server 2003

Header

WinBase.h (include Windows.h)

Library

Kernel32.lib

DLL

Kernel32.dll

See also

IO_COUNTERS
Process and Thread Functions

 

 

Send comments about this topic to Microsoft

Build date: 3/7/2012