STORAGE_REINITIALIZE_MEDIA structure (ntddstor.h)

STORAGE_REINITIALIZE_MEDIA is an optional structure that contains sanitize parameters for IOCTL_STORAGE_REINITIALIZE_MEDIA.

Syntax

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;

Members

Version

The version of this structure. Set to sizeof(STORAGE_REINITIALIZE_MEDIA).

Size

The size of this structure, in bytes. Set to sizeof(STORAGE_REINITIALIZE_MEDIA).

TimeoutInSeconds

Time out value for the sanitize, in seconds.

SanitizeOption

Structure that specifies sanitize operation options. SanitizeOption only applies to NVMe devices.

SanitizeOption.SanitizeMethod

A STORAGE_SANITIZE_METHOD value that specifies the sanitize method to use.

SanitizeOption.DisallowUnrestrictedSanitizeExit

Indicates whether unrestricted sanitize exit is allowed. By default, unrestricted sanitize exit is allowed (set to 1).

SanitizeOption.Reserved

Reserved. Do not use.

Requirements

Requirement Value
Minimum supported server Windows Server 2022
Header ntddstor.h

See also

IOCTL_STORAGE_REINITIALIZE_MEDIA

STORAGE_SANITIZE_METHOD