共用方式為


STORAGE_REINITIALIZE_MEDIA結構 (ntddstor.h)

STORAGE_REINITIALIZE_MEDIA是選擇性結構,其中包含 IOCTL_STORAGE_REINITIALIZE_MEDIA的參數。

語法

typedef struct _STORAGE_REINITIALIZE_MEDIA {
  ULONG  Version;
  ULONG  Size;
  ULONG  TimeoutInSeconds;
  struct {
    ULONG SanitizeMethod : 4;
    ULONG DisallowUnrestrictedSanitizeExit : 1;
    ULONG Reserved : 27;
  } SanitizeOption;
} STORAGE_REINITIALIZE_MEDIA, *PSTORAGE_REINITIALIZE_MEDIA;

成員

Version

這個結構的版本。 設定為 sizeof(STORAGE_REINITIALIZE_MEDIA)

Size

這個結構的大小,以位元組為單位。 設定為 sizeof(STORAGE_REINITIALIZE_MEDIA)

TimeoutInSeconds

清理的逾時值,以秒為單位。

SanitizeOption

指定清理作業選項的結構。 SanitizeOption 僅適用於 NVMe 裝置。

SanitizeOption.SanitizeMethod

STORAGE_SANITIZE_METHOD 值,指定要使用的清理方法。

SanitizeOption.DisallowUnrestrictedSanitizeExit

指出是否允許不受限制的清理結束。 根據預設,允許不受限制的清理結束 (設定為 1)。

SanitizeOption.Reserved

保留。 請勿使用。

要求

要求 價值
支援的最低伺服器 Windows Server 2022
標頭 ntddstor.h

另請參閱

IOCTL_STORAGE_REINITIALIZE_MEDIA

STORAGE_SANITIZE_METHOD