// ntddstor.h
typedef struct _STORAGE_DEVICE_POWER_CAP {
ULONG Version;
ULONG Size;
STORAGE_DEVICE_POWER_CAP_UNITS Units;
ULONGLONG MaxPower;
} STORAGE_DEVICE_POWER_CAP, *PSTORAGE_DEVICE_POWER_CAP;
View the official Windows Driver Kit DDI reference// winioctl.h
typedef struct _STORAGE_DEVICE_POWER_CAP {
DWORD Version;
DWORD Size;
STORAGE_DEVICE_POWER_CAP_UNITS Units;
DWORDLONG MaxPower;
} STORAGE_DEVICE_POWER_CAP, *PSTORAGE_DEVICE_POWER_CAP;
View the official Win32 API referenceNo description available.
This structure is used as an input and output buffer for the IOCTL_STORAGE_DEVICE_POWER_CAP.
VersionThe version of this structure. This should be set to STORAGE_DEVICE_POWER_CAP_VERSION_V1.
SizeThe size of this structure, in bytes.
UnitsThe units of the MaxPower value. This value can be either a percentage (0-100%) or an absolute value in milliwatts. The output buffer's Units value will match the value from the input buffer.
MaxPowerOn input, MaxPower specifies the desired maximum power consumption value for the storage device. On output, MaxPower contains the value of the actual maximum power consumption level of the device. The output buffer value may be equal to, less than, or greater than the desired threshold, depending on what the device supports.
IOCTL_STORAGE_DEVICE_POWER_CAP
This structure is used as an input and output buffer for the IOCTL_STORAGE_DEVICE_POWER_CAP.
VersionThe version of this structure. This should be set to STORAGE_DEVICE_POWER_CAP_VERSION_V1.
SizeThe size of this structure.
UnitsThe units of the MaxPower value, of type STORAGE_DEVICE_POWER_CAP_UNITS.
MaxPowerContains the value of the actual maximum power consumption level of the device. This may be equal to, less than, or greater than the desired threshold, depending on what the device supports.