PF_ROBUSTNESS_CONTROL - NtDoc

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

/**
 * The PF_ROBUSTNESS_CONTROL structure supplies process and file lists for Superfetch robustness control.
 */
typedef struct _PF_ROBUSTNESS_CONTROL
{
    union
    {
        ULONG VersionAndCommand;                // Packed version in bits 0..15 and command in bits 16..31.
        struct
        {
            USHORT Version;                     // PF_ROBUSTNESS_CONTROL_VERSION
            USHORT Command;                     // PF_ROBUSTNESS_CONTROL_COMMAND
        } DUMMYSTRUCTNAME;
    } DUMMYUNIONNAME;
    ULONG DeprioProcessCount;                   // Number of deprioritized process entries.
    ULONG ExemptProcessCount;                   // Number of exempt process entries.
    ULONG DeprioFileCount;                      // Number of deprioritized file entries.
    ULONG ExemptFileCount;                      // Number of exempt file entries.
    ULONG Reserved;                             // Reserved field; initialize to zero and do not interpret on output.
    //
    // Pass FIELD_OFFSET(PF_ROBUSTNESS_CONTROL, Buffer) + 8 * the sum of all four counts.
    // Variable-size payload:
    //   PF_ROBUST_PROCESS_ENTRY ProcessEntries[DeprioProcessCount + ExemptProcessCount];
    //   PF_ROBUST_FILE_ENTRY FileEntries[DeprioFileCount + ExemptFileCount];
    //
    UCHAR Buffer[ANYSIZE_ARRAY];                // Variable payload of process entries followed by file entries.
} PF_ROBUSTNESS_CONTROL, *PPF_ROBUSTNESS_CONTROL;

#endif

View code on GitHub

NtDoc

No description available.