// ntifs.h
BOOLEAN PsIsDiskCountersEnabled();
View the official Windows Driver Kit DDI referenceNo description available.
The enabled state of the per process disk I/O counters is returned by the PsIsDiskCountersEnabled routine.
If TRUE, the disk
A file system driver uses the PsIsDiskCountersEnabled routine to query the system enabled state of the disk I/O counters. A file system driver will use this routine prior to accounting for process disk I/O using PsUpdateDiskCounters.