Export (0) Print
Expand All
Expand Minimize

GetProcessIoCounters function

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 [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

WinBase.h (include Windows.h)

Library

Kernel32.lib

DLL

Kernel32.dll

See also

IO_COUNTERS
Process and Thread Functions

 

 

Community Additions

ADD
Show:
© 2014 Microsoft