SET_DISK_ATTRIBUTES - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// winioctl.h

typedef struct _SET_DISK_ATTRIBUTES {
  DWORD     Version;
  BOOLEAN   Persist;
  BYTE      Reserved1[3];
  DWORDLONG Attributes;
  DWORDLONG AttributesMask;
  DWORD     Reserved2[4];
} SET_DISK_ATTRIBUTES, *PSET_DISK_ATTRIBUTES;
View the official Win32 API reference

NtDoc

No description available.

Win32 API reference (ns-winioctl-set_disk_attributes)

SET_DISK_ATTRIBUTES structure

Description

Specifies the attributes to be set on a disk device. Passed as the input buffer to the IOCTL_DISK_SET_DISK_ATTRIBUTES control code.

Members

Version

Set to sizeof(GET_DISK_ATTRIBUTES).

Persist

If TRUE, these settings are persisted across reboots.

Reserved1

Reserved. Must be set to FALSE (0).

Attributes

Specifies attributes.

Value Meaning
DISK_ATTRIBUTE_OFFLINE

0x0000000000000001
The disk is offline.
DISK_ATTRIBUTE_READ_ONLY

0x0000000000000002
The disk is read-only.

AttributesMask

Indicates which attributes are being changed.

Value Meaning
DISK_ATTRIBUTE_OFFLINE

0x0000000000000001
The offline attribute is being changed.
DISK_ATTRIBUTE_READ_ONLY

0x0000000000000002
The read-only attribute is being changed.

Reserved2

Reserved. Must be set to 0.

See also

Disk Management Structures

GET_DISK_ATTRIBUTES

IOCTL_DISK_SET_DISK_ATTRIBUTES