// ntddstor.h
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;
View the official Windows Driver Kit DDI referenceNo description available.
STORAGE_REINITIALIZE_MEDIA is an optional structure that contains sanitize parameters for IOCTL_STORAGE_REINITIALIZE_MEDIA.
VersionThe version of this structure. Set to sizeof(STORAGE_REINITIALIZE_MEDIA).
SizeThe size of this structure, in bytes. Set to sizeof(STORAGE_REINITIALIZE_MEDIA).
TimeoutInSecondsTime out value for the sanitize, in seconds.
SanitizeOptionStructure that specifies sanitize operation options. SanitizeOption only applies to NVMe devices.
SanitizeOption.SanitizeMethodA STORAGE_SANITIZE_METHOD value that specifies the sanitize method to use.
SanitizeOption.DisallowUnrestrictedSanitizeExitIndicates whether unrestricted sanitize exit is allowed. By default, unrestricted sanitize exit is allowed (set to 1).
SanitizeOption.ReservedReserved. Do not use.
IOCTL_STORAGE_REINITIALIZE_MEDIA