PF_PREFETCH_VOLUME_INFO - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTPFAPI_H

// rev
/**
 * The PF_PREFETCH_VOLUME_INFO structure describes a volume and its file records in a prefetch request.
 */
typedef struct _PF_PREFETCH_VOLUME_INFO
{
    LARGE_INTEGER VolumeCreationTime;           // Volume creation time used to verify volume identity.
    ULONG VolumeSerialNumber;                   // Volume serial number used to verify volume identity.
    union
    {
        ULONG Flags;                            // Packed power-state flag (bit 0) and file count (bits 1..31).
        struct
        {
            ULONG CheckPowerState : 1;          // Requests a volume power-state check before prefetching.
            ULONG PrefetchFileCount : 31;       // Number of PF_PREFETCH_FILE_INFO records for the volume.
        };
    };
    union
    {
        ULONGLONG PrefetchFileInfoOffset;       // Byte offset from PF_PREFETCH_REQUEST to the file-record array.
        PPF_PREFETCH_FILE_INFO PrefetchFileInfo; // Kernel-private patched view.
    };
    ULONG VolumePathLength;                     // WCHAR count, excluding terminator; 1..0x7ffe.
    ULONG Reserved;                             // Reserved field; initialize to zero and do not interpret on output.
    union
    {
        ULONGLONG VolumePathOffset;             // Byte offset from PF_PREFETCH_REQUEST to the UTF-16 volume path.
        PWSTR VolumePath;                       // Kernel-private patched view.
    };
} PF_PREFETCH_VOLUME_INFO, *PPF_PREFETCH_VOLUME_INFO;

#endif

View code on GitHub

NtDoc

No description available.