STORAGE_DEVICE_POWER_CAP - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// 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 reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ns-ntddstor-_storage_device_power_cap)

STORAGE_DEVICE_POWER_CAP structure

Description

This structure is used as an input and output buffer for the IOCTL_STORAGE_DEVICE_POWER_CAP.

Members

Version

The version of this structure. This should be set to STORAGE_DEVICE_POWER_CAP_VERSION_V1.

Size

The size of this structure, in bytes.

Units

The 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.

MaxPower

On 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.

See also

IOCTL_STORAGE_DEVICE_POWER_CAP


Win32 API reference (ns-winioctl-storage_device_power_cap)

STORAGE_DEVICE_POWER_CAP structure

Description

This structure is used as an input and output buffer for the IOCTL_STORAGE_DEVICE_POWER_CAP.

Members

Version

The version of this structure. This should be set to STORAGE_DEVICE_POWER_CAP_VERSION_V1.

Size

The size of this structure.

Units

The units of the MaxPower value, of type STORAGE_DEVICE_POWER_CAP_UNITS.

MaxPower

Contains 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.