PROCESS_ENERGY_TRACKING_STATE - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTPSAPI_H
#if (PHNT_MODE != PHNT_MODE_KERNEL)

/**
 * The PROCESS_ENERGY_TRACKING_STATE structure queries or updates process energy-tracking state.
 *
 * Query returns the current bits in StateDesiredValue and the state sequence in StateSequence.
 * Bits 0x1 and 0x2 track foreground and desktop visibility. Bits 0x4 and 0x8 control
 * PSMForegroundDuration and PSMBackgroundDuration, respectively. Query is not restricted to 0x10.
 * For set operations, StateSequence must be zero, StateUpdateMask may contain only
 * PROCESS_ENERGY_STATE_USER_SETTABLE_MASK (0x10), and StateDesiredValue must be a subset of StateUpdateMask.
 * The accepted set mask does not establish a duration-bucket meaning for bit 0x10.
 */
typedef struct _PROCESS_ENERGY_TRACKING_STATE
{
    ULONG StateUpdateMask;
    ULONG StateDesiredValue;
    ULONG StateSequence;
    ULONG UpdateTag : 1;
    WCHAR Tag[64];
} PROCESS_ENERGY_TRACKING_STATE, *PPROCESS_ENERGY_TRACKING_STATE;

#endif
#endif

View code on GitHub

NtDoc

No description available.