GetProcessIoCounters function (winbase.h)
Retrieves accounting information for all I/O operations performed by the specified process.
Syntax
BOOL GetProcessIoCounters(
[in] HANDLE hProcess,
[out] PIO_COUNTERS lpIoCounters
);
Parameters
[in] 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.
[out] 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
Requirement | Value |
---|---|
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 |