Win32 API 日本語リファレンス
ホームSystem.Ioctl › STORAGE_PROPERTY_ID

STORAGE_PROPERTY_ID

列挙型
基底型i4

メンバー 40

名前10進16進説明
StorageDeviceProperty00x0呼び出し元がデバイス記述子 STORAGE_DEVICE_DESCRIPTOR を照会していることを示します。
StorageAdapterProperty10x1呼び出し元がアダプター記述子 STORAGE_ADAPTER_DESCRIPTOR を照会していることを示します。
StorageDeviceIdProperty20x2呼び出し元が SCSI バイタルプロダクトデータページで提供されるデバイス識別子を照会していることを示します。データは STORAGE_DEVICE_ID_DESCRIPTOR 構造体を使用して返されます。
StorageDeviceUniqueIdProperty30x3

ドライバーでの使用を想定しています。 呼び出し元が一意のデバイス識別子を照会していることを示します。データは STORAGE_DEVICE_UNIQUE_IDENTIFIER 構造体を使用して返されます (DDK の storduid.h ヘッダーを参照してください)。

Windows Server 2003 および Windows XP: この値は Windows Vista および Windows Server 2008 より前ではサポートされません。

StorageDeviceWriteCacheProperty40x4

呼び出し元がライトキャッシュのプロパティを照会していることを示します。データは STORAGE_WRITE_CACHE_PROPERTY 構造体を使用して返されます。

Windows Server 2003 および Windows XP: この値は Windows Vista および Windows Server 2008 より前ではサポートされません。

StorageMiniportProperty50x5システム用に予約済みです。
StorageAccessAlignmentProperty60x6

呼び出し元がアクセスアライメント記述子 STORAGE_ACCESS_ALIGNMENT_DESCRIPTOR を照会していることを示します。

Windows Server 2003 および Windows XP: この値は Windows Vista および Windows Server 2008 より前ではサポートされません。

StorageDeviceSeekPenaltyProperty70x7

呼び出し元がシークペナルティ記述子 DEVICE_SEEK_PENALTY_DESCRIPTOR を照会していることを示します。

Windows Server 2008、Windows Vista、Windows Server 2003 および Windows XP: この値は Windows 7 および Windows Server 2008 R2 より前ではサポートされません。

StorageDeviceTrimProperty80x8

呼び出し元が Trim 記述子 DEVICE_TRIM_DESCRIPTOR を照会していることを示します。

Windows Server 2008、Windows Vista、Windows Server 2003 および Windows XP: この値は Windows 7 および Windows Server 2008 R2 より前ではサポートされません。

StorageDeviceWriteAggregationProperty90x9システム用に予約済みです。
StorageDeviceDeviceTelemetryProperty100xAシステム用に予約済みです。
StorageDeviceLBProvisioningProperty110xB

呼び出し元が論理ブロックプロビジョニングのプロパティを照会していることを示します。データは DEVICE_LB_PROVISIONING_DESCRIPTOR 構造体を使用して返されます。

Windows 7、Windows Server 2008 R2、Windows Server 2008、Windows Vista、Windows Server 2003 および Windows XP: この値は Windows 8 および Windows Server 2012 より前ではサポートされません。

StorageDevicePowerProperty120xC

呼び出し元がデバイスの電源記述子を照会していることを示します。データは DEVICE_POWER_DESCRIPTOR 構造体を使用して返されます。

Windows 7、Windows Server 2008 R2、Windows Server 2008、Windows Vista、Windows Server 2003 および Windows XP: この値は Windows 8 および Windows Server 2012 より前ではサポートされません。

StorageDeviceCopyOffloadProperty130xD

呼び出し元がコピーオフロードパラメーターのプロパティを照会していることを示します。データは DEVICE_COPY_OFFLOAD_DESCRIPTOR 構造体を使用して返されます。

Windows 7、Windows Server 2008 R2、Windows Server 2008、Windows Vista、Windows Server 2003 および Windows XP: この値は Windows 8 および Windows Server 2012 より前ではサポートされません。

StorageDeviceResiliencyProperty140xEシステム用に予約済みです。
StorageDeviceMediumProductType150xF呼び出し元がメディアの製品タイプを照会していることを示します。データは STORAGE_MEDIUM_PRODUCT_TYPE_DESCRIPTOR 構造体を使用して返されます。
StorageAdapterRpmbProperty160x10呼び出し元が RPMB のサポート状況とプロパティを照会していることを示します。データは STORAGE_RPMB_DESCRIPTOR 構造体を使用して返されます。
StorageAdapterCryptoProperty170x11ストレージアダプターの暗号化機能に関する情報を提供します。これは現在、UFS (Universal Flash Storage) アダプターでサポートされています。
StorageDeviceIoCapabilityProperty480x30呼び出し元がデバイスの I/O 機能プロパティを照会していることを示します。データは DEVICE_IO_CAPABILITY_DESCRIPTOR 構造体を使用して返されます。
StorageAdapterProtocolSpecificProperty490x31呼び出し元がアダプターからプロトコル固有のデータを照会していることを示します。データは STORAGE_PROTOCOL_DATA_DESCRIPTOR 構造体を使用して返されます。詳細については解説を参照してください。
StorageDeviceProtocolSpecificProperty500x32呼び出し元がデバイスからプロトコル固有のデータを照会していることを示します。データは STORAGE_PROTOCOL_DATA_DESCRIPTOR 構造体を使用して返されます。詳細については解説を参照してください。
StorageAdapterTemperatureProperty510x33呼び出し元がアダプターから温度データを照会していることを示します。データは STORAGE_TEMPERATURE_DATA_DESCRIPTOR 構造体を使用して返されます。
StorageDeviceTemperatureProperty520x34呼び出し元がデバイスから温度データを照会していることを示します。データは STORAGE_TEMPERATURE_DATA_DESCRIPTOR 構造体を使用して返されます。
StorageAdapterPhysicalTopologyProperty530x35呼び出し元がアダプターからトポロジ情報を照会していることを示します。データは STORAGE_PHYSICAL_TOPOLOGY_DESCRIPTOR 構造体を使用して返されます。
StorageDevicePhysicalTopologyProperty540x36呼び出し元がデバイスからトポロジ情報を照会していることを示します。データは STORAGE_PHYSICAL_TOPOLOGY_DESCRIPTOR 構造体を使用して返されます。
StorageDeviceAttributesProperty550x37将来の使用のために予約済みです。
StorageDeviceManagementStatus560x38ストレージデバイスの正常性情報を提供します (特に永続メモリスタック向けです)。
StorageAdapterSerialNumberProperty570x39呼び出し元がアダプターのシリアル番号を照会していることを示します。データは STORAGE_ADAPTER_SERIAL_NUMBER 構造体を使用して返されます。
StorageDeviceLocationProperty580x3Aシステム用に予約済みです。
StorageDeviceNumaProperty590x3Bストレージデバイスの NUMA (非均一メモリアクセス) ノードを提供します。
StorageDeviceZonedDeviceProperty600x3Cシステム用に予約済みです。
StorageDeviceUnsafeShutdownCount610x3D電源喪失イベント中にデバイスのデータが失われた可能性があるかどうかを判断するために使用される、安全でないシャットダウンの回数を提供します (特に永続メモリスタック向けです)。
StorageDeviceEnduranceProperty620x3Eソリッドステートドライブ (SSD) に対して読み取り/書き込みが行われたバイト数に関する情報を提供します。このプロパティは、特定の NVMe 機能を実装している Non-Volatile Memory Express (NVMe) デバイスでのみサポートされます。
StorageDeviceLedStateProperty630x3Fストレージデバイスに関連付けられた LED の状態に関する情報を提供します。これはサーバー向けの機能です。
StorageDeviceSelfEncryptionProperty640x40システム用に予約済みです。
StorageFruIdProperty650x41Field Replacement Unit (FRU) として物理的に交換可能なストレージデバイスの識別情報を提供します。
StorageStackProperty660x42
StorageAdapterProtocolSpecificPropertyEx670x43
StorageDeviceProtocolSpecificPropertyEx680x44
StorageHwCryptoProperty690x45

公式ドキュメント

ストレージデバイスまたはアダプターのプロパティを取得する IOCTL_STORAGE_QUERY_PROPERTY 要求への入力として渡される STORAGE_PROPERTY_QUERY 構造体の PropertyId メンバーに指定できる値を列挙します。

解説(Remarks)

IOCTL_STORAGE_QUERY_PROPERTY 制御コード要求の lpOutBuffer パラメーターを通じて返される省略可能な出力バッファーは、lpInBuffer パラメーターが指す STORAGE_PROPERTY_QUERY 構造体の PropertyId メンバーの値に応じて、複数の構造体のいずれかになります。STORAGE_PROPERTY_QUERYQueryType メンバーが PropertyExistsQuery に設定されている場合、構造体は返されません。

出典・ライセンス: 上記「公式ドキュメント」の内容は Microsoft の Win32 API ドキュメント(MicrosoftDocs/sdk-api)を日本語に翻訳・改変したものです。© Microsoft Corporation. CC BY 4.0 で提供。
Microsoft 公式リファレンス: 英語 (en-us) · 日本語 (ja-jp) · 原文ソース (GitHub)

各言語での定義

列挙メンバーの定義。HSP タブは #define global(値は16進)。

typedef enum STORAGE_PROPERTY_ID : int {
    StorageDeviceProperty = 0,
    StorageAdapterProperty = 1,
    StorageDeviceIdProperty = 2,
    StorageDeviceUniqueIdProperty = 3,
    StorageDeviceWriteCacheProperty = 4,
    StorageMiniportProperty = 5,
    StorageAccessAlignmentProperty = 6,
    StorageDeviceSeekPenaltyProperty = 7,
    StorageDeviceTrimProperty = 8,
    StorageDeviceWriteAggregationProperty = 9,
    StorageDeviceDeviceTelemetryProperty = 10,
    StorageDeviceLBProvisioningProperty = 11,
    StorageDevicePowerProperty = 12,
    StorageDeviceCopyOffloadProperty = 13,
    StorageDeviceResiliencyProperty = 14,
    StorageDeviceMediumProductType = 15,
    StorageAdapterRpmbProperty = 16,
    StorageAdapterCryptoProperty = 17,
    StorageDeviceIoCapabilityProperty = 48,
    StorageAdapterProtocolSpecificProperty = 49,
    StorageDeviceProtocolSpecificProperty = 50,
    StorageAdapterTemperatureProperty = 51,
    StorageDeviceTemperatureProperty = 52,
    StorageAdapterPhysicalTopologyProperty = 53,
    StorageDevicePhysicalTopologyProperty = 54,
    StorageDeviceAttributesProperty = 55,
    StorageDeviceManagementStatus = 56,
    StorageAdapterSerialNumberProperty = 57,
    StorageDeviceLocationProperty = 58,
    StorageDeviceNumaProperty = 59,
    StorageDeviceZonedDeviceProperty = 60,
    StorageDeviceUnsafeShutdownCount = 61,
    StorageDeviceEnduranceProperty = 62,
    StorageDeviceLedStateProperty = 63,
    StorageDeviceSelfEncryptionProperty = 64,
    StorageFruIdProperty = 65,
    StorageStackProperty = 66,
    StorageAdapterProtocolSpecificPropertyEx = 67,
    StorageDeviceProtocolSpecificPropertyEx = 68,
    StorageHwCryptoProperty = 69
} STORAGE_PROPERTY_ID;
public enum STORAGE_PROPERTY_ID : int
{
    StorageDeviceProperty = 0,
    StorageAdapterProperty = 1,
    StorageDeviceIdProperty = 2,
    StorageDeviceUniqueIdProperty = 3,
    StorageDeviceWriteCacheProperty = 4,
    StorageMiniportProperty = 5,
    StorageAccessAlignmentProperty = 6,
    StorageDeviceSeekPenaltyProperty = 7,
    StorageDeviceTrimProperty = 8,
    StorageDeviceWriteAggregationProperty = 9,
    StorageDeviceDeviceTelemetryProperty = 10,
    StorageDeviceLBProvisioningProperty = 11,
    StorageDevicePowerProperty = 12,
    StorageDeviceCopyOffloadProperty = 13,
    StorageDeviceResiliencyProperty = 14,
    StorageDeviceMediumProductType = 15,
    StorageAdapterRpmbProperty = 16,
    StorageAdapterCryptoProperty = 17,
    StorageDeviceIoCapabilityProperty = 48,
    StorageAdapterProtocolSpecificProperty = 49,
    StorageDeviceProtocolSpecificProperty = 50,
    StorageAdapterTemperatureProperty = 51,
    StorageDeviceTemperatureProperty = 52,
    StorageAdapterPhysicalTopologyProperty = 53,
    StorageDevicePhysicalTopologyProperty = 54,
    StorageDeviceAttributesProperty = 55,
    StorageDeviceManagementStatus = 56,
    StorageAdapterSerialNumberProperty = 57,
    StorageDeviceLocationProperty = 58,
    StorageDeviceNumaProperty = 59,
    StorageDeviceZonedDeviceProperty = 60,
    StorageDeviceUnsafeShutdownCount = 61,
    StorageDeviceEnduranceProperty = 62,
    StorageDeviceLedStateProperty = 63,
    StorageDeviceSelfEncryptionProperty = 64,
    StorageFruIdProperty = 65,
    StorageStackProperty = 66,
    StorageAdapterProtocolSpecificPropertyEx = 67,
    StorageDeviceProtocolSpecificPropertyEx = 68,
    StorageHwCryptoProperty = 69,
}
Public Enum STORAGE_PROPERTY_ID As Integer
    StorageDeviceProperty = 0
    StorageAdapterProperty = 1
    StorageDeviceIdProperty = 2
    StorageDeviceUniqueIdProperty = 3
    StorageDeviceWriteCacheProperty = 4
    StorageMiniportProperty = 5
    StorageAccessAlignmentProperty = 6
    StorageDeviceSeekPenaltyProperty = 7
    StorageDeviceTrimProperty = 8
    StorageDeviceWriteAggregationProperty = 9
    StorageDeviceDeviceTelemetryProperty = 10
    StorageDeviceLBProvisioningProperty = 11
    StorageDevicePowerProperty = 12
    StorageDeviceCopyOffloadProperty = 13
    StorageDeviceResiliencyProperty = 14
    StorageDeviceMediumProductType = 15
    StorageAdapterRpmbProperty = 16
    StorageAdapterCryptoProperty = 17
    StorageDeviceIoCapabilityProperty = 48
    StorageAdapterProtocolSpecificProperty = 49
    StorageDeviceProtocolSpecificProperty = 50
    StorageAdapterTemperatureProperty = 51
    StorageDeviceTemperatureProperty = 52
    StorageAdapterPhysicalTopologyProperty = 53
    StorageDevicePhysicalTopologyProperty = 54
    StorageDeviceAttributesProperty = 55
    StorageDeviceManagementStatus = 56
    StorageAdapterSerialNumberProperty = 57
    StorageDeviceLocationProperty = 58
    StorageDeviceNumaProperty = 59
    StorageDeviceZonedDeviceProperty = 60
    StorageDeviceUnsafeShutdownCount = 61
    StorageDeviceEnduranceProperty = 62
    StorageDeviceLedStateProperty = 63
    StorageDeviceSelfEncryptionProperty = 64
    StorageFruIdProperty = 65
    StorageStackProperty = 66
    StorageAdapterProtocolSpecificPropertyEx = 67
    StorageDeviceProtocolSpecificPropertyEx = 68
    StorageHwCryptoProperty = 69
End Enum
import enum

class STORAGE_PROPERTY_ID(enum.IntEnum):
    StorageDeviceProperty = 0
    StorageAdapterProperty = 1
    StorageDeviceIdProperty = 2
    StorageDeviceUniqueIdProperty = 3
    StorageDeviceWriteCacheProperty = 4
    StorageMiniportProperty = 5
    StorageAccessAlignmentProperty = 6
    StorageDeviceSeekPenaltyProperty = 7
    StorageDeviceTrimProperty = 8
    StorageDeviceWriteAggregationProperty = 9
    StorageDeviceDeviceTelemetryProperty = 10
    StorageDeviceLBProvisioningProperty = 11
    StorageDevicePowerProperty = 12
    StorageDeviceCopyOffloadProperty = 13
    StorageDeviceResiliencyProperty = 14
    StorageDeviceMediumProductType = 15
    StorageAdapterRpmbProperty = 16
    StorageAdapterCryptoProperty = 17
    StorageDeviceIoCapabilityProperty = 48
    StorageAdapterProtocolSpecificProperty = 49
    StorageDeviceProtocolSpecificProperty = 50
    StorageAdapterTemperatureProperty = 51
    StorageDeviceTemperatureProperty = 52
    StorageAdapterPhysicalTopologyProperty = 53
    StorageDevicePhysicalTopologyProperty = 54
    StorageDeviceAttributesProperty = 55
    StorageDeviceManagementStatus = 56
    StorageAdapterSerialNumberProperty = 57
    StorageDeviceLocationProperty = 58
    StorageDeviceNumaProperty = 59
    StorageDeviceZonedDeviceProperty = 60
    StorageDeviceUnsafeShutdownCount = 61
    StorageDeviceEnduranceProperty = 62
    StorageDeviceLedStateProperty = 63
    StorageDeviceSelfEncryptionProperty = 64
    StorageFruIdProperty = 65
    StorageStackProperty = 66
    StorageAdapterProtocolSpecificPropertyEx = 67
    StorageDeviceProtocolSpecificPropertyEx = 68
    StorageHwCryptoProperty = 69
// STORAGE_PROPERTY_ID
pub const StorageDeviceProperty: i32 = 0;
pub const StorageAdapterProperty: i32 = 1;
pub const StorageDeviceIdProperty: i32 = 2;
pub const StorageDeviceUniqueIdProperty: i32 = 3;
pub const StorageDeviceWriteCacheProperty: i32 = 4;
pub const StorageMiniportProperty: i32 = 5;
pub const StorageAccessAlignmentProperty: i32 = 6;
pub const StorageDeviceSeekPenaltyProperty: i32 = 7;
pub const StorageDeviceTrimProperty: i32 = 8;
pub const StorageDeviceWriteAggregationProperty: i32 = 9;
pub const StorageDeviceDeviceTelemetryProperty: i32 = 10;
pub const StorageDeviceLBProvisioningProperty: i32 = 11;
pub const StorageDevicePowerProperty: i32 = 12;
pub const StorageDeviceCopyOffloadProperty: i32 = 13;
pub const StorageDeviceResiliencyProperty: i32 = 14;
pub const StorageDeviceMediumProductType: i32 = 15;
pub const StorageAdapterRpmbProperty: i32 = 16;
pub const StorageAdapterCryptoProperty: i32 = 17;
pub const StorageDeviceIoCapabilityProperty: i32 = 48;
pub const StorageAdapterProtocolSpecificProperty: i32 = 49;
pub const StorageDeviceProtocolSpecificProperty: i32 = 50;
pub const StorageAdapterTemperatureProperty: i32 = 51;
pub const StorageDeviceTemperatureProperty: i32 = 52;
pub const StorageAdapterPhysicalTopologyProperty: i32 = 53;
pub const StorageDevicePhysicalTopologyProperty: i32 = 54;
pub const StorageDeviceAttributesProperty: i32 = 55;
pub const StorageDeviceManagementStatus: i32 = 56;
pub const StorageAdapterSerialNumberProperty: i32 = 57;
pub const StorageDeviceLocationProperty: i32 = 58;
pub const StorageDeviceNumaProperty: i32 = 59;
pub const StorageDeviceZonedDeviceProperty: i32 = 60;
pub const StorageDeviceUnsafeShutdownCount: i32 = 61;
pub const StorageDeviceEnduranceProperty: i32 = 62;
pub const StorageDeviceLedStateProperty: i32 = 63;
pub const StorageDeviceSelfEncryptionProperty: i32 = 64;
pub const StorageFruIdProperty: i32 = 65;
pub const StorageStackProperty: i32 = 66;
pub const StorageAdapterProtocolSpecificPropertyEx: i32 = 67;
pub const StorageDeviceProtocolSpecificPropertyEx: i32 = 68;
pub const StorageHwCryptoProperty: i32 = 69;
// STORAGE_PROPERTY_ID
const (
	StorageDeviceProperty int32 = 0
	StorageAdapterProperty int32 = 1
	StorageDeviceIdProperty int32 = 2
	StorageDeviceUniqueIdProperty int32 = 3
	StorageDeviceWriteCacheProperty int32 = 4
	StorageMiniportProperty int32 = 5
	StorageAccessAlignmentProperty int32 = 6
	StorageDeviceSeekPenaltyProperty int32 = 7
	StorageDeviceTrimProperty int32 = 8
	StorageDeviceWriteAggregationProperty int32 = 9
	StorageDeviceDeviceTelemetryProperty int32 = 10
	StorageDeviceLBProvisioningProperty int32 = 11
	StorageDevicePowerProperty int32 = 12
	StorageDeviceCopyOffloadProperty int32 = 13
	StorageDeviceResiliencyProperty int32 = 14
	StorageDeviceMediumProductType int32 = 15
	StorageAdapterRpmbProperty int32 = 16
	StorageAdapterCryptoProperty int32 = 17
	StorageDeviceIoCapabilityProperty int32 = 48
	StorageAdapterProtocolSpecificProperty int32 = 49
	StorageDeviceProtocolSpecificProperty int32 = 50
	StorageAdapterTemperatureProperty int32 = 51
	StorageDeviceTemperatureProperty int32 = 52
	StorageAdapterPhysicalTopologyProperty int32 = 53
	StorageDevicePhysicalTopologyProperty int32 = 54
	StorageDeviceAttributesProperty int32 = 55
	StorageDeviceManagementStatus int32 = 56
	StorageAdapterSerialNumberProperty int32 = 57
	StorageDeviceLocationProperty int32 = 58
	StorageDeviceNumaProperty int32 = 59
	StorageDeviceZonedDeviceProperty int32 = 60
	StorageDeviceUnsafeShutdownCount int32 = 61
	StorageDeviceEnduranceProperty int32 = 62
	StorageDeviceLedStateProperty int32 = 63
	StorageDeviceSelfEncryptionProperty int32 = 64
	StorageFruIdProperty int32 = 65
	StorageStackProperty int32 = 66
	StorageAdapterProtocolSpecificPropertyEx int32 = 67
	StorageDeviceProtocolSpecificPropertyEx int32 = 68
	StorageHwCryptoProperty int32 = 69
)
const
  StorageDeviceProperty = 0;
  StorageAdapterProperty = 1;
  StorageDeviceIdProperty = 2;
  StorageDeviceUniqueIdProperty = 3;
  StorageDeviceWriteCacheProperty = 4;
  StorageMiniportProperty = 5;
  StorageAccessAlignmentProperty = 6;
  StorageDeviceSeekPenaltyProperty = 7;
  StorageDeviceTrimProperty = 8;
  StorageDeviceWriteAggregationProperty = 9;
  StorageDeviceDeviceTelemetryProperty = 10;
  StorageDeviceLBProvisioningProperty = 11;
  StorageDevicePowerProperty = 12;
  StorageDeviceCopyOffloadProperty = 13;
  StorageDeviceResiliencyProperty = 14;
  StorageDeviceMediumProductType = 15;
  StorageAdapterRpmbProperty = 16;
  StorageAdapterCryptoProperty = 17;
  StorageDeviceIoCapabilityProperty = 48;
  StorageAdapterProtocolSpecificProperty = 49;
  StorageDeviceProtocolSpecificProperty = 50;
  StorageAdapterTemperatureProperty = 51;
  StorageDeviceTemperatureProperty = 52;
  StorageAdapterPhysicalTopologyProperty = 53;
  StorageDevicePhysicalTopologyProperty = 54;
  StorageDeviceAttributesProperty = 55;
  StorageDeviceManagementStatus = 56;
  StorageAdapterSerialNumberProperty = 57;
  StorageDeviceLocationProperty = 58;
  StorageDeviceNumaProperty = 59;
  StorageDeviceZonedDeviceProperty = 60;
  StorageDeviceUnsafeShutdownCount = 61;
  StorageDeviceEnduranceProperty = 62;
  StorageDeviceLedStateProperty = 63;
  StorageDeviceSelfEncryptionProperty = 64;
  StorageFruIdProperty = 65;
  StorageStackProperty = 66;
  StorageAdapterProtocolSpecificPropertyEx = 67;
  StorageDeviceProtocolSpecificPropertyEx = 68;
  StorageHwCryptoProperty = 69;
// STORAGE_PROPERTY_ID
pub const StorageDeviceProperty: i32 = 0;
pub const StorageAdapterProperty: i32 = 1;
pub const StorageDeviceIdProperty: i32 = 2;
pub const StorageDeviceUniqueIdProperty: i32 = 3;
pub const StorageDeviceWriteCacheProperty: i32 = 4;
pub const StorageMiniportProperty: i32 = 5;
pub const StorageAccessAlignmentProperty: i32 = 6;
pub const StorageDeviceSeekPenaltyProperty: i32 = 7;
pub const StorageDeviceTrimProperty: i32 = 8;
pub const StorageDeviceWriteAggregationProperty: i32 = 9;
pub const StorageDeviceDeviceTelemetryProperty: i32 = 10;
pub const StorageDeviceLBProvisioningProperty: i32 = 11;
pub const StorageDevicePowerProperty: i32 = 12;
pub const StorageDeviceCopyOffloadProperty: i32 = 13;
pub const StorageDeviceResiliencyProperty: i32 = 14;
pub const StorageDeviceMediumProductType: i32 = 15;
pub const StorageAdapterRpmbProperty: i32 = 16;
pub const StorageAdapterCryptoProperty: i32 = 17;
pub const StorageDeviceIoCapabilityProperty: i32 = 48;
pub const StorageAdapterProtocolSpecificProperty: i32 = 49;
pub const StorageDeviceProtocolSpecificProperty: i32 = 50;
pub const StorageAdapterTemperatureProperty: i32 = 51;
pub const StorageDeviceTemperatureProperty: i32 = 52;
pub const StorageAdapterPhysicalTopologyProperty: i32 = 53;
pub const StorageDevicePhysicalTopologyProperty: i32 = 54;
pub const StorageDeviceAttributesProperty: i32 = 55;
pub const StorageDeviceManagementStatus: i32 = 56;
pub const StorageAdapterSerialNumberProperty: i32 = 57;
pub const StorageDeviceLocationProperty: i32 = 58;
pub const StorageDeviceNumaProperty: i32 = 59;
pub const StorageDeviceZonedDeviceProperty: i32 = 60;
pub const StorageDeviceUnsafeShutdownCount: i32 = 61;
pub const StorageDeviceEnduranceProperty: i32 = 62;
pub const StorageDeviceLedStateProperty: i32 = 63;
pub const StorageDeviceSelfEncryptionProperty: i32 = 64;
pub const StorageFruIdProperty: i32 = 65;
pub const StorageStackProperty: i32 = 66;
pub const StorageAdapterProtocolSpecificPropertyEx: i32 = 67;
pub const StorageDeviceProtocolSpecificPropertyEx: i32 = 68;
pub const StorageHwCryptoProperty: i32 = 69;
const
  StorageDeviceProperty* = 0
  StorageAdapterProperty* = 1
  StorageDeviceIdProperty* = 2
  StorageDeviceUniqueIdProperty* = 3
  StorageDeviceWriteCacheProperty* = 4
  StorageMiniportProperty* = 5
  StorageAccessAlignmentProperty* = 6
  StorageDeviceSeekPenaltyProperty* = 7
  StorageDeviceTrimProperty* = 8
  StorageDeviceWriteAggregationProperty* = 9
  StorageDeviceDeviceTelemetryProperty* = 10
  StorageDeviceLBProvisioningProperty* = 11
  StorageDevicePowerProperty* = 12
  StorageDeviceCopyOffloadProperty* = 13
  StorageDeviceResiliencyProperty* = 14
  StorageDeviceMediumProductType* = 15
  StorageAdapterRpmbProperty* = 16
  StorageAdapterCryptoProperty* = 17
  StorageDeviceIoCapabilityProperty* = 48
  StorageAdapterProtocolSpecificProperty* = 49
  StorageDeviceProtocolSpecificProperty* = 50
  StorageAdapterTemperatureProperty* = 51
  StorageDeviceTemperatureProperty* = 52
  StorageAdapterPhysicalTopologyProperty* = 53
  StorageDevicePhysicalTopologyProperty* = 54
  StorageDeviceAttributesProperty* = 55
  StorageDeviceManagementStatus* = 56
  StorageAdapterSerialNumberProperty* = 57
  StorageDeviceLocationProperty* = 58
  StorageDeviceNumaProperty* = 59
  StorageDeviceZonedDeviceProperty* = 60
  StorageDeviceUnsafeShutdownCount* = 61
  StorageDeviceEnduranceProperty* = 62
  StorageDeviceLedStateProperty* = 63
  StorageDeviceSelfEncryptionProperty* = 64
  StorageFruIdProperty* = 65
  StorageStackProperty* = 66
  StorageAdapterProtocolSpecificPropertyEx* = 67
  StorageDeviceProtocolSpecificPropertyEx* = 68
  StorageHwCryptoProperty* = 69
enum STORAGE_PROPERTY_ID : int {
    StorageDeviceProperty = 0,
    StorageAdapterProperty = 1,
    StorageDeviceIdProperty = 2,
    StorageDeviceUniqueIdProperty = 3,
    StorageDeviceWriteCacheProperty = 4,
    StorageMiniportProperty = 5,
    StorageAccessAlignmentProperty = 6,
    StorageDeviceSeekPenaltyProperty = 7,
    StorageDeviceTrimProperty = 8,
    StorageDeviceWriteAggregationProperty = 9,
    StorageDeviceDeviceTelemetryProperty = 10,
    StorageDeviceLBProvisioningProperty = 11,
    StorageDevicePowerProperty = 12,
    StorageDeviceCopyOffloadProperty = 13,
    StorageDeviceResiliencyProperty = 14,
    StorageDeviceMediumProductType = 15,
    StorageAdapterRpmbProperty = 16,
    StorageAdapterCryptoProperty = 17,
    StorageDeviceIoCapabilityProperty = 48,
    StorageAdapterProtocolSpecificProperty = 49,
    StorageDeviceProtocolSpecificProperty = 50,
    StorageAdapterTemperatureProperty = 51,
    StorageDeviceTemperatureProperty = 52,
    StorageAdapterPhysicalTopologyProperty = 53,
    StorageDevicePhysicalTopologyProperty = 54,
    StorageDeviceAttributesProperty = 55,
    StorageDeviceManagementStatus = 56,
    StorageAdapterSerialNumberProperty = 57,
    StorageDeviceLocationProperty = 58,
    StorageDeviceNumaProperty = 59,
    StorageDeviceZonedDeviceProperty = 60,
    StorageDeviceUnsafeShutdownCount = 61,
    StorageDeviceEnduranceProperty = 62,
    StorageDeviceLedStateProperty = 63,
    StorageDeviceSelfEncryptionProperty = 64,
    StorageFruIdProperty = 65,
    StorageStackProperty = 66,
    StorageAdapterProtocolSpecificPropertyEx = 67,
    StorageDeviceProtocolSpecificPropertyEx = 68,
    StorageHwCryptoProperty = 69,
}
#define global StorageDeviceProperty                    0x0
#define global StorageAdapterProperty                   0x1
#define global StorageDeviceIdProperty                  0x2
#define global StorageDeviceUniqueIdProperty            0x3
#define global StorageDeviceWriteCacheProperty          0x4
#define global StorageMiniportProperty                  0x5
#define global StorageAccessAlignmentProperty           0x6
#define global StorageDeviceSeekPenaltyProperty         0x7
#define global StorageDeviceTrimProperty                0x8
#define global StorageDeviceWriteAggregationProperty    0x9
#define global StorageDeviceDeviceTelemetryProperty     0xA
#define global StorageDeviceLBProvisioningProperty      0xB
#define global StorageDevicePowerProperty               0xC
#define global StorageDeviceCopyOffloadProperty         0xD
#define global StorageDeviceResiliencyProperty          0xE
#define global StorageDeviceMediumProductType           0xF
#define global StorageAdapterRpmbProperty               0x10
#define global StorageAdapterCryptoProperty             0x11
#define global StorageDeviceIoCapabilityProperty        0x30
#define global StorageAdapterProtocolSpecificProperty   0x31
#define global StorageDeviceProtocolSpecificProperty    0x32
#define global StorageAdapterTemperatureProperty        0x33
#define global StorageDeviceTemperatureProperty         0x34
#define global StorageAdapterPhysicalTopologyProperty   0x35
#define global StorageDevicePhysicalTopologyProperty    0x36
#define global StorageDeviceAttributesProperty          0x37
#define global StorageDeviceManagementStatus            0x38
#define global StorageAdapterSerialNumberProperty       0x39
#define global StorageDeviceLocationProperty            0x3A
#define global StorageDeviceNumaProperty                0x3B
#define global StorageDeviceZonedDeviceProperty         0x3C
#define global StorageDeviceUnsafeShutdownCount         0x3D
#define global StorageDeviceEnduranceProperty           0x3E
#define global StorageDeviceLedStateProperty            0x3F
#define global StorageDeviceSelfEncryptionProperty      0x40
#define global StorageFruIdProperty                     0x41
#define global StorageStackProperty                     0x42
#define global StorageAdapterProtocolSpecificPropertyEx 0x43
#define global StorageDeviceProtocolSpecificPropertyEx  0x44
#define global StorageHwCryptoProperty                  0x45