PsUpdateDiskCounters function (ntifs.h)
The PsUpdateDiskCounters routine updates the disk I/O counters of a given process.
Syntax
void PsUpdateDiskCounters(
PEPROCESS Process,
ULONG64 BytesRead,
ULONG64 BytesWritten,
ULONG ReadOperationCount,
ULONG WriteOperationCount,
ULONG FlushOperationCount
);
Parameters
Process
A pointer to the process to update counters for.
BytesRead
The number of bytes to update in the Read counter.
BytesWritten
The number of bytes to update in the Write counter.
ReadOperationCount
The number of read operations to update in the Read Operation counter.
WriteOperationCount
The number of write operations to update in the Write Operation counter.
FlushOperationCount
The number of flush operations to update in the Flush Operation counter.
Return value
None
Remarks
File system drivers use PsUpdateDiskCounters to update counts for disk I/O accounting. A client process can be "charged" the disk I/O counts by the file system.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8. |
Target Platform | Universal |
Header | ntifs.h (include Ntifs.h) |
Library | NtosKrnl.lib |
DLL | NtosKrnl.exe |
IRQL | <= DISPATCH_LEVEL |