#ifndef _NTPSAPI_H
#if (PHNT_MODE != PHNT_MODE_KERNEL)
/**
* The POWER_THROTTLING_PROCESS_STATE structure is used to manage the power throttling state of a process.
*/
typedef struct _POWER_THROTTLING_PROCESS_STATE
{
ULONG Version; // The version of the structure.
ULONG ControlMask; // A mask that specifies the control settings for power throttling.
ULONG StateMask; // A mask that specifies the current state of power throttling.
} POWER_THROTTLING_PROCESS_STATE, *PPOWER_THROTTLING_PROCESS_STATE;
View code on GitHub
// ntddk.h
typedef struct _POWER_THROTTLING_PROCESS_STATE {
ULONG Version;
ULONG ControlMask;
ULONG StateMask;
} POWER_THROTTLING_PROCESS_STATE, *PPOWER_THROTTLING_PROCESS_STATE;
View the official Windows Driver Kit DDI reference
This structure is documented in Windows Driver Kit.
Stores the throttling policies and how to apply them to a target process when that process is subject to power management.
Version
The version of this structure. Set to PROCESS_POWER_THROTTLING_CURRENT_VERSION.
ControlMask
Flags that enable the caller to take control of the power throttling mechanism.
StateMask
Flags that manage the power throttling mechanism on/off state.